Interface TaggedValue
- All Superinterfaces:
BaseElement
,Cloneable
,Comparable
,Element
,org.eclipse.emf.ecore.EObject
,MDObject
,com.dassault_systemes.modeler.foundation.model.ModelElement
,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
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:
- Model:
- Generated:
-
Method Summary
Modifier and TypeMethodDescriptionaddConvertedValue
(Object value) Converts and adds given value to value suitable for this TaggedValue.convertValue
(Object value) Converts given value to value suitable for this TaggedValue.Returns the value of the 'Tag Definition' reference.Returns the value of the 'Tagged Value Owner' container reference.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.List<?>
value()
Returns value of the tag.Methods inherited from interface com.nomagic.magicdraw.uml.BaseElement
accept, addPropertyChangeListener, canAdd, canAdd, canAddChild, canBeDeleted, firePropertyChange, getClassType, getHumanName, getHumanType, isEditable, removePropertyChangeListener, sGetID
Methods inherited from interface java.lang.Comparable
compareTo
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.dassault_systemes.modeler.foundation.model.ModelElement
canChangeElementOwner, eDynamicGet, getElementOwner, getLocalID, getObjectParent, setLocalID, sGetLocalID
Methods inherited from interface com.nomagic.uml2.ext.magicdraw.base.ModelObject
get_representationText, ignoringRefGetValue, ignoringRefGetValue, isSet, refGetValue, refGetValue, refSetValue, refSetValue, set_representationText
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
Methods inherited from interface javax.jmi.reflect.RefFeatured
refGetValue, refInvokeOperation, refInvokeOperation, refSetValue
Methods inherited from interface javax.jmi.reflect.RefObject
refClass, refDelete, refImmediateComposite, refIsInstanceOf, refOutermostComposite
-
Method Details
-
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:
- Model:
- opposite="definedTaggedValue"
- Generated:
-
setTagDefinition
Sets the value of the 'Tag Definition
' reference.- Parameters:
value
- the new value of the 'Tag Definition' reference.- See Also:
- 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:
- Model:
- opposite="taggedValue" transient="false"
- Generated:
-
setTaggedValueOwner
Sets the value of the 'Tagged Value Owner
' container reference.- Parameters:
value
- the new value of the 'Tagged Value Owner' container reference.- See Also:
- Generated:
-
value
List<?> value()Returns value of the tag.- Model:
- kind="operation" dataType="uml.EList<? extends org.eclipse.emf.ecore.EJavaObject>" unique="false"
- Generated:
-
getValue
List<?> getValue()Returns value of the tag.- Returns:
- tag value.
-
addConvertedValue
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:
IllegalArgumentException
- in case value cannot be converted to suitable- See Also:
-
convertValue
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:
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:
-