org.argouml.uml.ui
Class UMLExpressionModel2

java.lang.Object
  extended byorg.argouml.uml.ui.UMLExpressionModel2
Direct Known Subclasses:
UMLConditionExpressionModel, UMLExpressionExpressionModel, UMLRecurrenceExpressionModel, UMLScriptExpressionModel, UMLTimeExpressionModel

public abstract class UMLExpressionModel2
extends Object


Constructor Summary
UMLExpressionModel2(UMLUserInterfaceContainer c, String name)
          The constructor.
 
Method Summary
 String getBody()
           
protected  UMLUserInterfaceContainer getContainer()
           
abstract  Object getExpression()
           
 String getLanguage()
           
abstract  Object newExpression()
           
 void setBody(String body)
           
abstract  void setExpression(Object expr)
           
 void setLanguage(String lang)
           
 void targetChanged()
          When the target is changed, we must refresh.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UMLExpressionModel2

public UMLExpressionModel2(UMLUserInterfaceContainer c,
                           String name)
The constructor.

Parameters:
c - the container of UML user interface components
name - the name of the property
Method Detail

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


ArgoUML © 1996-2006ArgoUML HomepageArgoUML Developers' pageArgoUML Cookbook