org.argouml.uml.notation
Class ValueHandler
java.lang.Object
org.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
|
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 |
ValueHandler
public ValueHandler()
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 objectnewValue - 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 objectnewValue - 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)