UML.Semantic.Foundation.ExtensionMechanisms
Class TaggedValue

java.lang.Object
  |
  +--UML.Semantic.Foundation.ExtensionMechanisms.TaggedValue
All Implemented Interfaces:
ElementAtt, LinkAtt

public class TaggedValue
extends java.lang.Object
implements ElementAtt, LinkAtt

A tagged value is a (Tag, Value) pair that permits arbitrary information to be attached to any model element. A tag is an arbitrary name; some tag names are predefined as Standard Elements. At most one tagged value pair with a given tag name may be attached to a given model element. In other words, there is a lookup table of values selected by tag strings that may be attached to any model element.

The interpretation of a tag is (intentionally) beyond the scope of UML; it must be determined by user or tool convention. It is expected that various model analysis tools will define tags to supply information needed for their operation beyond the basic semantics of UML. Such information could include code generation options, model management information, or user-specified additional semantics.


Constructor Summary
TaggedValue()
           
 
Method Summary
 void add(Locator locator)
          Adds a locator to the set of locators.
 boolean check()
          Checks if well-formedness rules are respected in this model element.
 java.lang.String getElementType()
           
 java.lang.String getHref()
          Gets the element href.
 java.lang.String getId()
          Gets the element identifier.
 java.lang.String getIdref()
          Gets the element identifier reference.
 java.lang.String getLabel()
          Gets the element label.
 java.util.Vector getLocator()
          Gets the set of locators.
 java.lang.String getTitle()
          Gets the element reference title.
 java.lang.String getUuid()
          Gets the element unique identifier.
 java.lang.String getUuidref()
          Gets the element unique identifier reference.
 java.lang.String getValue()
          Gets the value of the tagged value.
 void setElementType(java.lang.String type)
           
 void setHref(java.lang.String href)
          Sets the element href reference to given value.
 void setId(java.lang.String id)
          Sets the element identifier to given value.
 void setIdref(java.lang.String idref)
          Sets the element identifier reference to given value.
 void setLabel(java.lang.String label)
          Sets the element label to given value.
 void setTitle(java.lang.String title)
          Sets the element reference title to given value.
 void setUuid(java.lang.String uuid)
          Sets the element unique identifier to given value.
 void setUuidref(java.lang.String uuidref)
          Sets the element unique identifier reference to given value.
 void setValue(java.lang.String value)
          Sets the value of the tagged value to the given value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TaggedValue

public TaggedValue()
Method Detail

setId

public void setId(java.lang.String id)
Sets the element identifier to given value.

Specified by:
setId in interface ElementAtt

setLabel

public void setLabel(java.lang.String label)
Sets the element label to given value.

Specified by:
setLabel in interface ElementAtt

setUuid

public void setUuid(java.lang.String uuid)
Sets the element unique identifier to given value.

Specified by:
setUuid in interface ElementAtt

setHref

public void setHref(java.lang.String href)
Sets the element href reference to given value.

Specified by:
setHref in interface LinkAtt

setTitle

public void setTitle(java.lang.String title)
Sets the element reference title to given value.

Specified by:
setTitle in interface LinkAtt

add

public void add(Locator locator)
Adds a locator to the set of locators.


setIdref

public void setIdref(java.lang.String idref)
Sets the element identifier reference to given value.

Specified by:
setIdref in interface LinkAtt

setUuidref

public void setUuidref(java.lang.String uuidref)
Sets the element unique identifier reference to given value.

Specified by:
setUuidref in interface LinkAtt

getId

public java.lang.String getId()
Gets the element identifier.

Specified by:
getId in interface ElementAtt
Returns:
The identifier string.

getLabel

public java.lang.String getLabel()
Gets the element label.

Specified by:
getLabel in interface ElementAtt
Returns:
The label string.

getUuid

public java.lang.String getUuid()
Gets the element unique identifier.

Specified by:
getUuid in interface ElementAtt
Returns:
The unique identifier string.

getHref

public java.lang.String getHref()
Gets the element href.

Specified by:
getHref in interface LinkAtt
Returns:
The href string.

getTitle

public java.lang.String getTitle()
Gets the element reference title.

Returns:
The title string.

getLocator

public java.util.Vector getLocator()
Gets the set of locators.

Returns:
A set of locators.

getIdref

public java.lang.String getIdref()
Gets the element identifier reference.

Specified by:
getIdref in interface LinkAtt
Returns:
The identifier reference string.

getUuidref

public java.lang.String getUuidref()
Gets the element unique identifier reference.

Specified by:
getUuidref in interface LinkAtt
Returns:
The unique identifier reference string.

setValue

public void setValue(java.lang.String value)
Sets the value of the tagged value to the given value.


getValue

public java.lang.String getValue()
Gets the value of the tagged value.

Returns:
The value of the tagged value.

setElementType

public void setElementType(java.lang.String type)

getElementType

public java.lang.String getElementType()

check

public boolean check()
Checks if well-formedness rules are respected in this model element.

Returns:
True if check was successful, false otherwise.