org.argouml.uml.notation
Class ValueHandler

java.lang.Object
  extended byorg.argouml.uml.notation.ValueHandler
All Implemented Interfaces:
NotationProvider4
Direct Known Subclasses:
ActionStateNotation, AssociationEndNameNotation, AssociationRoleNotation, AttributeNotation, CallStateNotation, ClassifierRoleNotation, ComponentInstanceNotation, ExtensionPointNotation, MessageNotation, ModelElementNameNotation, NodeInstanceNotation, ObjectFlowStateStateNotation, ObjectFlowStateTypeNotation, ObjectNotation, OperationNotation, StateBodyNotation, TransitionNotation

public abstract class ValueHandler
extends Object
implements NotationProvider4


Constructor Summary
ValueHandler()
           
 
Method Summary
 Object getValue(String key)
          Gets the Object associated with the specified key.
 boolean isValue(String key)
          Gets the boolean associated with the specified key.
 void putValue(String key, boolean newValue)
          Sets the Value associated with the specified key.
 void putValue(String key, Object newValue)
          Sets the Value associated with the specified key.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.argouml.notation.NotationProvider4
getParsingHelp, parse, toString
 

Constructor Detail

ValueHandler

public ValueHandler()
Method Detail

putValue

public void putValue(String key,
                     Object newValue)
Description copied from interface: NotationProvider4
Sets the Value associated with the specified key.

Specified by:
putValue in interface NotationProvider4
Parameters:
key - the String that identifies the stored object
newValue - the Object to store using this key
See Also:
NotationProvider4.putValue(java.lang.String, java.lang.Object)

getValue

public Object getValue(String key)
Gets the Object associated with the specified key.

Specified by:
getValue in interface NotationProvider4
Parameters:
key - a string containing the specified key
Returns:
the binding Object stored with this key; if there are no keys, it will return null
See Also:
Action.getValue(String)

putValue

public void putValue(String key,
                     boolean newValue)
Description copied from interface: NotationProvider4
Sets the Value associated with the specified key.

Specified by:
putValue in interface NotationProvider4
Parameters:
key - the String that identifies the stored object
newValue - the Object to store using this key
See Also:
NotationProvider4.putValue(java.lang.String, boolean)

isValue

public boolean isValue(String key)
Description copied from interface: NotationProvider4
Gets the boolean associated with the specified key.

Specified by:
isValue in interface NotationProvider4
Parameters:
key - a string containing the specified key
Returns:
the binding boolean stored with this key; if this key is not present, it will return false
See Also:
NotationProvider4.isValue(java.lang.String)


ArgoUML © 1996-2006ArgoUML HomepageArgoUML Developers' pageArgoUML Cookbook