Package com.nomagic.uml2.ext.jmi.reflect
Class ExpressionEvaluationManager
- java.lang.Object
-
- com.nomagic.uml2.ext.jmi.reflect.ExpressionEvaluationManager
-
@ThreadSafe public class ExpressionEvaluationManager extends java.lang.Object
Expression evaluation manager in general should be used by AbstractRefObject. All other access should be used for testing purposes only.- Version:
- 1.0
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ExpressionEvaluationManager.Key
Helper class.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clearEvaluationStatus(javax.jmi.reflect.RefObject object, java.lang.String property)
Clears evaluation status of the specified object and specified property.java.util.Collection<ExpressionEvaluationManager.Key>
getEvaluatedProperties()
Returns evaluated properties or null if no properties was evaluated.static ExpressionEvaluationManager
getInstance(AbstractRepository repository)
Returns instance of ExpressionEvaluationManager by repository.boolean
isEvaluated(javax.jmi.reflect.RefObject object, java.lang.String property)
Checks the fact whether the property is evaluated for the specified object.void
setAsEvaluated(javax.jmi.reflect.RefObject object, java.lang.String property)
Sets specified object specified property as evaluated.
-
-
-
Method Detail
-
getInstance
public static ExpressionEvaluationManager getInstance(AbstractRepository repository)
Returns instance of ExpressionEvaluationManager by repository.- Parameters:
repository
- a repository.- Returns:
- ExpressionEvaluationHelper of the repository.
-
isEvaluated
public boolean isEvaluated(javax.jmi.reflect.RefObject object, java.lang.String property)
Checks the fact whether the property is evaluated for the specified object.- Parameters:
object
- an object.property
- a property.- Returns:
- true if the property value was evaluated.
-
getEvaluatedProperties
public java.util.Collection<ExpressionEvaluationManager.Key> getEvaluatedProperties()
Returns evaluated properties or null if no properties was evaluated. This is intended for testing only.- Returns:
- evaluated properties.
-
setAsEvaluated
public void setAsEvaluated(javax.jmi.reflect.RefObject object, java.lang.String property)
Sets specified object specified property as evaluated.- Parameters:
object
- an object.property
- a property.
-
clearEvaluationStatus
public void clearEvaluationStatus(javax.jmi.reflect.RefObject object, java.lang.String property)
Clears evaluation status of the specified object and specified property.- Parameters:
object
- an object.property
- a property.
-
-