Interface TaggedValue
-
- All Superinterfaces:
BaseElement
,java.lang.Cloneable
,java.lang.Comparable
,Element
,org.eclipse.emf.ecore.EObject
,MDObject
,ModelObject
,org.eclipse.emf.common.notify.Notifier
,javax.jmi.reflect.RefBaseObject
,javax.jmi.reflect.RefFeatured
,javax.jmi.reflect.RefObject
- All Known Subinterfaces:
BooleanTaggedValue
,ElementTaggedValue
,IntegerTaggedValue
,RealTaggedValue
,StringTaggedValue
public interface TaggedValue extends Element
A representation of the model object 'Tagged Value'.A TaggedValue designates that an entity modeled by an Element has a tagged value or values.
The following features are supported:
- See Also:
UMLPackage.getTaggedValue()
- Model:
- Generated:
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.Object
addConvertedValue(java.lang.Object value)
Converts and adds given value to value suitable for this TaggedValue.java.lang.Object
convertValue(java.lang.Object value)
Converts given value to value suitable for this TaggedValue.Property
getTagDefinition()
Returns the value of the 'Tag Definition' reference.Element
getTaggedValueOwner()
Returns the value of the 'Tagged Value Owner' container reference.java.util.List<?>
getValue()
Returns value of the tag.boolean
hasValue()
Checks if TaggedValue has any valuevoid
setTagDefinition(Property value)
Sets the value of the 'Tag Definition
' reference.void
setTaggedValueOwner(Element value)
Sets the value of the 'Tagged Value Owner
' container reference.java.util.List<?>
value()
Returns value of the tag.-
Methods inherited from interface com.nomagic.magicdraw.uml.BaseElement
accept, addPropertyChangeListener, atInsert, canAdd, canAdd, canAddChild, canAddInstance, canBeDeleted, canChangeParent, canDeleteChild, clone, dispose, firePropertyChange, getClassType, getHumanName, getHumanType, getObjectParent, isEditable, isParentOf, removeAllPropertyChangeListeners, removePropertyChangeListener, sGetID
-
Methods inherited from interface com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Element
get_activityPartitionOfRepresents, get_commentOfAnnotatedElement, get_constraintOfConstrainedElement, get_diagramOfContext, get_directedRelationshipOfSource, get_directedRelationshipOfTarget, get_elementOfSyncElement, get_elementTaggedValue, get_elementValueOfElement, get_relationshipOfRelatedElement, getAppliedStereotype, getOwnedComment, getOwnedElement, getOwner, getSyncElement, getTaggedValue, has_activityPartitionOfRepresents, has_commentOfAnnotatedElement, has_constraintOfConstrainedElement, has_diagramOfContext, has_directedRelationshipOfSource, has_directedRelationshipOfTarget, has_elementOfSyncElement, has_elementValueOfElement, has_relationshipOfRelatedElement, hasAppliedStereotype, hasElementTaggedValue, hasOwnedComment, hasOwnedElement, hasTaggedValue, setOwner, setSyncElement
-
Methods inherited from interface org.eclipse.emf.ecore.EObject
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnset
-
Methods inherited from interface com.nomagic.magicdraw.foundation.MDObject
getID, getMDExtension, getMdExtensions, setID
-
Methods inherited from interface com.nomagic.uml2.ext.magicdraw.base.ModelObject
get_representationText, getLocalID, ignoringRefGetValue, isInvalid, set_representationText, setLocalID, sGetLocalID
-
Methods inherited from interface org.eclipse.emf.common.notify.Notifier
eAdapters, eDeliver, eNotify, eSetDeliver
-
Methods inherited from interface javax.jmi.reflect.RefBaseObject
equals, hashCode, refImmediatePackage, refMetaObject, refMofId, refOutermostPackage, refVerifyConstraints
-
-
-
-
Method Detail
-
getTagDefinition
@CheckForNull Property getTagDefinition()
Returns the value of the 'Tag Definition' reference. It is bidirectional and its opposite is 'Defined Tagged Value
'. The Property that specifies the values that may be held by the TaggedValue.- Returns:
- the value of the 'Tag Definition' reference.
- See Also:
setTagDefinition(Property)
,UMLPackage.getTaggedValue_TagDefinition()
,Property.get_definedTaggedValue()
- Model:
- opposite="definedTaggedValue"
- Generated:
-
setTagDefinition
void setTagDefinition(@CheckForNull Property value)
Sets the value of the 'Tag Definition
' reference.- Parameters:
value
- the new value of the 'Tag Definition' reference.- See Also:
getTagDefinition()
- Generated:
-
getTaggedValueOwner
Element getTaggedValueOwner()
Returns the value of the 'Tagged Value Owner' container reference. It is bidirectional and its opposite is 'Tagged Value
'. The Element that owns this TaggedValue.- Returns:
- the value of the 'Tagged Value Owner' container reference.
- See Also:
setTaggedValueOwner(Element)
,UMLPackage.getTaggedValue_TaggedValueOwner()
,Element.getTaggedValue()
- Model:
- opposite="taggedValue" transient="false"
- Generated:
-
setTaggedValueOwner
void setTaggedValueOwner(Element value)
Sets the value of the 'Tagged Value Owner
' container reference.- Parameters:
value
- the new value of the 'Tagged Value Owner' container reference.- See Also:
getTaggedValueOwner()
- Generated:
-
value
java.util.List<?> value()
Returns value of the tag.- Model:
- kind="operation" dataType="uml.EList<? extends org.eclipse.emf.ecore.EJavaObject>" unique="false"
- Generated:
-
getValue
java.util.List<?> getValue()
Returns value of the tag.- Returns:
- tag value.
-
addConvertedValue
java.lang.Object addConvertedValue(java.lang.Object value) throws java.lang.IllegalArgumentException
Converts and adds given value to value suitable for this TaggedValue. For example Object to String.- Parameters:
value
- value to add- Returns:
- added value (converted one)
- Throws:
java.lang.IllegalArgumentException
- in case value cannot be converted to suitable- See Also:
convertValue(Object)
,getValue()
-
convertValue
java.lang.Object convertValue(java.lang.Object value) throws java.lang.IllegalArgumentException
Converts given value to value suitable for this TaggedValue. For example Object to String.- Parameters:
value
- value to convert- Returns:
- converter value or same value if it is suitable
- Throws:
java.lang.IllegalArgumentException
- in case value cannot be converted to suitable
-
hasValue
boolean hasValue()
Checks if TaggedValue has any value- Returns:
- true if value is not empty
- See Also:
getValue()
-
-