org.argouml.uml.ui
Class UMLExpressionModel2
java.lang.Object
org.argouml.uml.ui.UMLExpressionModel2
- Direct Known Subclasses:
- UMLConditionExpressionModel, UMLExpressionExpressionModel, UMLRecurrenceExpressionModel, UMLScriptExpressionModel, UMLTimeExpressionModel
- public abstract class UMLExpressionModel2
- extends Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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.
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 String 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(String body)
- Parameters:
body - the body text of the expression
getContainer
protected UMLUserInterfaceContainer getContainer()
- Returns:
- the container