Class ModelElementImpl

java.lang.Object
org.eclipse.esmf.metamodel.impl.ModelElementImpl
All Implemented Interfaces:
Comparable<ModelElementImpl>, ModelElement, NamedElement
Direct Known Subclasses:
DefaultAspect, DefaultCharacteristic, DefaultComplexType, DefaultConstraint, DefaultEntityInstance, DefaultEvent, DefaultOperation, DefaultProperty, DefaultQuantityKind, DefaultUnit

public abstract class ModelElementImpl extends Object implements ModelElement, NamedElement, Comparable<ModelElementImpl>
The base implemenation of all model elements.
  • Method Details

    • getAspectModelUrn

      public Optional<org.eclipse.esmf.aspectmodel.urn.AspectModelUrn> getAspectModelUrn()
      The URN for the element, if present. Certain elements (such as Constraints) are allowed to not have URNs, which is why the URN is optional.
      Specified by:
      getAspectModelUrn in interface NamedElement
      Returns:
      the URN.
    • getMetaModelVersion

      public org.eclipse.esmf.samm.KnownVersion getMetaModelVersion()
      Returns the metamodel version this model element is defined against
      Specified by:
      getMetaModelVersion in interface ModelElement
      Returns:
      the version of the Aspect Meta Model on which the Aspect Model is based.
    • getName

      public String getName()
      The name of the element.
      Specified by:
      getName in interface NamedElement
      Returns:
      the name.
    • getPreferredNames

      public Set<LangString> getPreferredNames()
      A language specific name for the Element. There may be multiple preferred names.
      Specified by:
      getPreferredNames in interface NamedElement
      Returns:
      the preferredNames.
    • getDescriptions

      public Set<LangString> getDescriptions()
      A language specific description of the Element. There may be multiple descriptions.
      Specified by:
      getDescriptions in interface NamedElement
      Returns:
      the descriptions.
    • getSee

      public List<String> getSee()
      Specified by:
      getSee in interface NamedElement
      Returns:
      a List of links to an external taxonomy/ontology.
    • hasSyntheticName

      public boolean hasSyntheticName()
      Description copied from interface: NamedElement
      Determines whether this model element has a generated name
      Specified by:
      hasSyntheticName in interface NamedElement
      Returns:
      true if the name is synthetic (generated at load time), false if it is given in the model
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • compareTo

      public int compareTo(ModelElementImpl o)
      Specified by:
      compareTo in interface Comparable<ModelElementImpl>