org.argouml.uml.ui
Class UMLExpressionModel2
java.lang.Object
org.argouml.uml.ui.UMLExpressionModel2
- Direct Known Subclasses:
- UMLConditionExpressionModel, UMLExpressionExpressionModel, UMLScriptExpressionModel
- public abstract class UMLExpressionModel2
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LOG
private static final Logger LOG
container
private UMLUserInterfaceContainer container
propertyName
private String propertyName
expression
private Object expression
mustRefresh
private boolean mustRefresh
EMPTYSTRING
private static final String EMPTYSTRING
- See Also:
- Constant Field Values
UMLExpressionModel2
public UMLExpressionModel2(UMLUserInterfaceContainer c,
String name)
- The constructor.
- Parameters:
c
- the container of UML user interface componentsname
- the name of the property
targetChanged
public void targetChanged()
- When the target is changed, we must refresh.
propertySet
public boolean propertySet(ru.novosoft.uml.MElementEvent event)
- Parameters:
event
- the event
- Returns:
- true if the property is affected
getExpression
public abstract Object getExpression()
- Returns:
- the expression
setExpression
public abstract void setExpression(Object expr)
- Parameters:
expr
- the expression
newExpression
public abstract Object newExpression()
- Returns:
- a new expression
getLanguage
public String getLanguage()
- Returns:
- the language of the expression
getBody
public Object getBody()
- Returns:
- the body text of the expression
setLanguage
public void setLanguage(String lang)
- Parameters:
lang
- the language of the expression
setBody
public void setBody(Object body)
- Parameters:
body
- the body text of the expression
setExpression
private void setExpression(String lang,
Object body)
- Parameters:
lang
- the language of the expressionbody
- the body text of the expression
getContainer
protected UMLUserInterfaceContainer getContainer()
- Returns:
- the container