|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ashridgetech.jamda.uml.ModelElement.TaggedValue
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.
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 |
public ModelElement.TaggedValue(StandardTagDef tagDef)
TaggedValue
for a given StandardTagDef
.
tagDef
- the definition of the tag which stores the tagged valueMethod Detail |
public StandardTagDef getTagDef()
StandardTagDef
used by this TaggedValue
public java.lang.Object get()
TaggedValue
public void set(ModelElement value)
TaggedValue
to a ModelElement
.
The StandardTagDef
for this TaggedValue
must have
a TagDefinition.TagType
of one of the model element types.
value
- the value to storepublic void set(java.lang.String value)
TaggedValue
to a String
.
The StandardTagDef
for this TaggedValue
must have
a TagDefinition.TagType
of STRING
.
value
- the value to storepublic void set(boolean value)
TaggedValue
to a boolean value.
The StandardTagDef
for this TaggedValue
must have
a TagDefinition.TagType
of BOOLEAN
.
value
- the value to store
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |