com.ashridgetech.jamda.uml
Class ModelElement.TaggedValue

java.lang.Object
  |
  +--com.ashridgetech.jamda.uml.ModelElement.TaggedValue
Enclosing class:
ModelElement

public final class ModelElement.TaggedValue
extends java.lang.Object

Utility class to hold an Object which is stored in a Tagged Value. It is constructed with a StandardTagDef, and will get and set the tagged value defined by it when the get() and set(com.ashridgetech.jamda.uml.ModelElement) methods are called.

Version:
1.0
Author:
paulb

Constructor Summary
ModelElement.TaggedValue(StandardTagDef tagDef)
          Constructs a TaggedValue for a given StandardTagDef.
 
Method Summary
 java.lang.Object get()
          Gets the value of this TaggedValue
 StandardTagDef getTagDef()
          Gets the StandardTagDef used by this TaggedValue
 void set(boolean value)
          Sets the value of this TaggedValue to a boolean value.
 void set(ModelElement value)
          Sets the value of this TaggedValue to a ModelElement.
 void set(java.lang.String value)
          Sets the value of this TaggedValue to a String .
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ModelElement.TaggedValue

public ModelElement.TaggedValue(StandardTagDef tagDef)
Constructs a TaggedValue for a given StandardTagDef.

Parameters:
tagDef - the definition of the tag which stores the tagged value
Method Detail

getTagDef

public StandardTagDef getTagDef()
Gets the StandardTagDef used by this TaggedValue

Returns:
the tag definition

get

public java.lang.Object get()
Gets the value of this TaggedValue

Returns:
the value

set

public void set(ModelElement value)
Sets the value of this TaggedValue to a ModelElement. The StandardTagDef for this TaggedValue must have a TagDefinition.TagType of one of the model element types.

Parameters:
value - the value to store

set

public void set(java.lang.String value)
Sets the value of this TaggedValue to a String . The StandardTagDef for this TaggedValue must have a TagDefinition.TagType of STRING.

Parameters:
value - the value to store

set

public void set(boolean value)
Sets the value of this TaggedValue to a boolean value. The StandardTagDef for this TaggedValue must have a TagDefinition.TagType of BOOLEAN.

Parameters:
value - the value to store


Copyright © 2003 Ashridge Technologies Ltd. All Rights Reserved.