org.argouml.ocl
Class CriticOclEvaluator

java.lang.Object
  extended by org.argouml.ocl.CriticOclEvaluator

Deprecated. for 0.25.2 by tfmorris - use OCLEvaluator

@Deprecated
public class CriticOclEvaluator
extends java.lang.Object

CriticOclEvaluator is singleton version of OCLEvaluator which is used for evaluating simple OCL expressions used in the critiques.

Implementation History: As best I was able to reconstruct the history in early 2007, OclEvaluator was originally implemented as a singleton, but that was changed in September, 2004 because of some perceived problems, but then it was discovered that the Critic subsystem depended on the singleton pattern, so an earlier version of OclEvaluator was reintroduced with a new name. Because of the large amount of duplicate code between the two classes, this was refactored in March, 2007 to use an instance of the main OclEvaluator class.

Stereotype:
singleton

Method Summary
 java.lang.String evalToString(java.lang.Object self, java.lang.String expr)
          Deprecated.  
 java.lang.String evalToString(java.lang.Object self, java.lang.String expr, java.lang.String sep)
          Deprecated.  
static CriticOclEvaluator getInstance()
          Deprecated.  
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static final CriticOclEvaluator getInstance()
Deprecated. 
Returns:
the singleton of CriticOclEvaluator

evalToString

public java.lang.String evalToString(java.lang.Object self,
                                     java.lang.String expr)
                              throws org.tigris.gef.ocl.ExpansionException
Deprecated. 
Throws:
org.tigris.gef.ocl.ExpansionException

evalToString

public java.lang.String evalToString(java.lang.Object self,
                                     java.lang.String expr,
                                     java.lang.String sep)
                              throws org.tigris.gef.ocl.ExpansionException
Deprecated. 
Throws:
org.tigris.gef.ocl.ExpansionException


ArgoUML © 1996-2006ArgoUML HomepageArgoUML Cookbook