org.argouml.uml.ui
Class UMLExpressionModel2

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

public abstract class UMLExpressionModel2
extends Object


Field Summary
private  UMLUserInterfaceContainer container
           
private static String EMPTYSTRING
           
private  Object expression
           
private static Logger LOG
           
private  boolean mustRefresh
           
private  String propertyName
           
 
Constructor Summary
UMLExpressionModel2(UMLUserInterfaceContainer c, String name)
          The constructor.
 
Method Summary
 Object getBody()
           
protected  UMLUserInterfaceContainer getContainer()
           
abstract  Object getExpression()
           
 String getLanguage()
           
abstract  Object newExpression()
           
 boolean propertySet(ru.novosoft.uml.MElementEvent event)
           
 void setBody(Object body)
           
abstract  void setExpression(Object expr)
           
private  void setExpression(String lang, Object body)
           
 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
 

Field Detail

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
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.


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 expression
body - the body text of the expression

getContainer

protected UMLUserInterfaceContainer getContainer()
Returns:
the container


ArgoUML © 1996-2004 (20050222)ArgoUML HomepageArgoUML Developers' pageArgoUML Cookbook