Package org.eclipse.esmf.metamodel.impl
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 Summary
Modifier and TypeMethodDescriptionintbooleanOptional<org.eclipse.esmf.aspectmodel.urn.AspectModelUrn>The URN for the element, if present.A language specific description of the Element.org.eclipse.esmf.samm.KnownVersionReturns the metamodel version this model element is defined againstgetName()The name of the element.A language specific name for the Element.getSee()inthashCode()booleanDetermines whether this model element has a generated nameMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.eclipse.esmf.metamodel.ModelElement
accept, as, isMethods inherited from interface org.eclipse.esmf.metamodel.NamedElement
getDescription, getPreferredName
-
Method Details
-
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:
getAspectModelUrnin interfaceNamedElement- Returns:
- the URN.
-
getMetaModelVersion
public org.eclipse.esmf.samm.KnownVersion getMetaModelVersion()Returns the metamodel version this model element is defined against- Specified by:
getMetaModelVersionin interfaceModelElement- Returns:
- the version of the Aspect Meta Model on which the Aspect Model is based.
-
getName
The name of the element.- Specified by:
getNamein interfaceNamedElement- Returns:
- the name.
-
getPreferredNames
A language specific name for the Element. There may be multiple preferred names.- Specified by:
getPreferredNamesin interfaceNamedElement- Returns:
- the preferredNames.
-
getDescriptions
A language specific description of the Element. There may be multiple descriptions.- Specified by:
getDescriptionsin interfaceNamedElement- Returns:
- the descriptions.
-
getSee
- Specified by:
getSeein interfaceNamedElement- Returns:
- a
Listof links to an external taxonomy/ontology.
-
hasSyntheticName
public boolean hasSyntheticName()Description copied from interface:NamedElementDetermines whether this model element has a generated name- Specified by:
hasSyntheticNamein interfaceNamedElement- Returns:
- true if the name is synthetic (generated at load time), false if it is given in the model
-
equals
-
hashCode
public int hashCode() -
compareTo
- Specified by:
compareToin interfaceComparable<ModelElementImpl>
-