Interface Attribute<T>

Type Parameters:
T -
All Known Implementing Classes:
AttributeImpl, BooleanAttribute, DoubleAttribute, EnumAttribute, IntegerAttribute, NamedEnumAttribute, StringAttribute

public interface Attribute<T>
Author:
meyerd
  • Method Details

    • getValue

      T getValue(ModelElementInstance modelElement)
      returns the value of the attribute.
      Returns:
      the value of the attribute.
    • setValue

      void setValue(ModelElementInstance modelElement, T value)
      sets the value of the attribute.
      Parameters:
      value - the value of the attribute.
    • setValue

      void setValue(ModelElementInstance modelElement, T value, boolean withReferenceUpdate)
      sets the value of the attribute.
      Parameters:
      value - the value of the attribute.
      withReferenceUpdate - true to update id references in other elements, false otherwise
    • getDefaultValue

      T getDefaultValue()
    • isRequired

      boolean isRequired()
    • getNamespaceUri

      String getNamespaceUri()
      Returns:
      the namespaceUri
    • getAttributeName

      String getAttributeName()
      Returns:
      the attributeName
    • isIdAttribute

      boolean isIdAttribute()
    • getOwningElementType

      ModelElementType getOwningElementType()
    • getIncomingReferences

      List<Reference<?>> getIncomingReferences()
    • getOutgoingReferences

      List<Reference<?>> getOutgoingReferences()