Package org.eclipse.esmf.metamodel
Interface NamedElement
- All Superinterfaces:
ModelElement
- All Known Subinterfaces:
AbstractEntity,Aspect,Characteristic,Code,Collection,ComplexType,Constraint,Duration,Either,EncodingConstraint,Entity,EntityInstance,Enumeration,Event,FixedPointConstraint,LanguageConstraint,LengthConstraint,List,LocaleConstraint,Measurement,Operation,Property,Quantifiable,QuantityKind,RangeConstraint,RegularExpressionConstraint,Set,SingleEntity,SortedSet,State,StructuredValue,StructureElement,TimeSeries,Trait,Unit
- All Known Implementing Classes:
DefaultAbstractEntity,DefaultAspect,DefaultCharacteristic,DefaultCode,DefaultCollection,DefaultComplexType,DefaultConstraint,DefaultDuration,DefaultEither,DefaultEncodingConstraint,DefaultEntity,DefaultEntityInstance,DefaultEnumeration,DefaultEvent,DefaultFixedPointConstraint,DefaultLanguageConstraint,DefaultLengthConstraint,DefaultList,DefaultLocaleConstraint,DefaultMeasurement,DefaultOperation,DefaultProperty,DefaultPropertyWrapper,DefaultQuantifiable,DefaultQuantityKind,DefaultRangeConstraint,DefaultRegularExpressionConstraint,DefaultSet,DefaultSingleEntity,DefaultSortedSet,DefaultState,DefaultStructuredValue,DefaultTimeSeries,DefaultTrait,DefaultUnit,ModelElementImpl,QuantityKinds
Represents model elements that have human-readable names and descriptions
-
Method Summary
Modifier and TypeMethodDescriptionOptional<org.eclipse.esmf.aspectmodel.urn.AspectModelUrn>default StringgetDescription(Locale locale) Gets the description for the Aspect Model element for a specific language, if the language is present.default Set<LangString>getName()default StringgetPreferredName(Locale locale) A language specific name for the Element.default Set<LangString>getSee()default booleanDetermines whether this model element has a generated nameMethods inherited from interface org.eclipse.esmf.metamodel.ModelElement
accept, as, getMetaModelVersion, is
-
Method Details
-
getAspectModelUrn
Optional<org.eclipse.esmf.aspectmodel.urn.AspectModelUrn> getAspectModelUrn()- Returns:
- the URN which identifies an Aspect Model element.
-
getName
String getName()- Returns:
- the name of the Aspect Model element.
-
hasSyntheticName
default boolean hasSyntheticName()Determines whether this model element has a generated name- Returns:
- true if the name is synthetic (generated at load time), false if it is given in the model
-
getSee
- Returns:
- a
Listof links to an external taxonomy/ontology.
-
getPreferredNames
- Returns:
- a
Setcontaining language specific names for the Aspect Model element.
-
getDescriptions
- Returns:
- a
Setcontaining language specific descriptions for the Aspect Model element.
-
getPreferredName
A language specific name for the Element. There may be multiple preferred names.- Parameters:
locale- of the specific text- Returns:
- the language specific text.
-
getDescription
Gets the description for the Aspect Model element for a specific language, if the language is present. If the language is not present, the description in English is returned. If there is also not description in English, returns null.- Parameters:
locale- of the specific text- Returns:
- the language specific text or null
-