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

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:
Model:
Generated:
  • Method Details

    • 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:
      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:
      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

      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:
      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

      Object addConvertedValue(Object value) throws 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:
      IllegalArgumentException - in case value cannot be converted to suitable
      See Also:
    • convertValue

      Object convertValue(Object value) throws 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:
      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: