net.sf.farrago.cwm.core
Interface CwmTaggedValue

All Superinterfaces:
CwmElement, RefBaseObject, RefFeatured, RefObject
All Known Implementing Classes:
CwmTaggedValue$Hib

public interface CwmTaggedValue
extends CwmElement

TaggedValue object instance interface. A tagged value allows information to be attached to any model element in the form of a "tagged value" pair (i.e., name = value). The interpretation of tagged value semantics is intentionally beyond the scope of CWM. It must be determined by user or tool conventions. It is expected that tools will define tags to supply information needed for their operations beyond the basic semantics of CWM. Such information could include code generation options, model management information, or user-specified semantics. Even though TaggedValues are a simple and straightforward extension technique, their use restricts semantic interchange of metadata to only those tools that share a common understanding of the specific tagged value names.

Note: This type should not be subclassed, implemented or directly instantiated by clients. It is generated from a MOF metamodel and implemented by Enki or MDR.


Method Summary
 CwmModelElement getModelElement()
          Returns the value of reference modelElement.
 CwmStereotype getStereotype()
          Returns the value of reference stereotype.
 String getTag()
          Returns the value of attribute tag.
 String getValue()
          Returns the value of attribute value.
 void setModelElement(CwmModelElement newValue)
          Sets the value of modelElement reference.
 void setStereotype(CwmStereotype newValue)
          Sets the value of stereotype reference.
 void setTag(String newValue)
          Sets the value of tag attribute.
 void setValue(String newValue)
          Sets the value of value attribute.
 
Methods inherited from interface javax.jmi.reflect.RefObject
refClass, refDelete, refImmediateComposite, refIsInstanceOf, refOutermostComposite
 
Methods inherited from interface javax.jmi.reflect.RefFeatured
refGetValue, refGetValue, refInvokeOperation, refInvokeOperation, refSetValue, refSetValue
 
Methods inherited from interface javax.jmi.reflect.RefBaseObject
equals, hashCode, refImmediatePackage, refMetaObject, refMofId, refOutermostPackage, refVerifyConstraints
 

Method Detail

getTag

String getTag()
Returns the value of attribute tag. Contains the name of the TaggedValue. This name determines the semantics that are applicable to the contents of the value attribute.

Returns:
Value of attribute tag.

setTag

void setTag(String newValue)
Sets the value of tag attribute. See getTag() for description on the attribute.

Parameters:
newValue - New value to be set.

getValue

String getValue()
Returns the value of attribute value. Contains the current value of the TaggedValue.

Returns:
Value of attribute value.

setValue

void setValue(String newValue)
Sets the value of value attribute. See getValue() for description on the attribute.

Parameters:
newValue - New value to be set.

getModelElement

CwmModelElement getModelElement()
Returns the value of reference modelElement.

Returns:
Value of reference modelElement.

setModelElement

void setModelElement(CwmModelElement newValue)
Sets the value of modelElement reference. See getModelElement() for description on the attribute.

Parameters:
newValue - New value to be set.

getStereotype

CwmStereotype getStereotype()
Returns the value of reference stereotype.

Returns:
Value of reference stereotype.

setStereotype

void setStereotype(CwmStereotype newValue)
Sets the value of stereotype reference. See getStereotype() for description on the attribute.

Parameters:
newValue - New value to be set.