Package org.eclipse.esmf.metamodel
Interface Property
- All Superinterfaces:
ModelElement,NamedElement
- All Known Implementing Classes:
DefaultProperty,DefaultPropertyWrapper
A Property has a name that is unique to its use in an Aspect or an Entity, and a Characteristic (i.e., the
description of the Property). It describes a single piece of information in the Aspect or Entity.
- Since:
- SAMM 1.0.0
-
Method Summary
Modifier and TypeMethodDescriptiondefault Optional<Characteristic>Returns the Property's unconstrained Characteristic.default booleanReturns true if the Property is abstractdefault booleandefault booleanMethods inherited from interface org.eclipse.esmf.metamodel.ModelElement
accept, as, getMetaModelVersion, isMethods inherited from interface org.eclipse.esmf.metamodel.NamedElement
getAspectModelUrn, getDescription, getDescriptions, getName, getPreferredName, getPreferredNames, getSee, hasSyntheticName
-
Method Details
-
getCharacteristic
Optional<Characteristic> getCharacteristic()- Returns:
- the
Characteristicdescribing this Property. This can be empty when the Property is abstract.
-
getExampleValue
Optional<ScalarValue> getExampleValue()- Returns:
- an
Optionalwhich may contain an example value for the Property. The type of the value is determined by theTypereturned bygetDataType().
-
getPayloadName
String getPayloadName()- Returns:
- the name of the Property used in the runtime payload.
-
isOptional
default boolean isOptional()- Returns:
- a
booleanwhich determines whether the Property is optional. Properties are mandatory by default.
-
isNotInPayload
default boolean isNotInPayload()- Returns:
- a
booleanwhich determines whether the Property is included in the runtime data of an Aspect. By default Properties are included in the runtime data. - Since:
- SAMM 1.0.0
- See Also:
-
isAbstract
default boolean isAbstract()Returns true if the Property is abstract- Returns:
-
getEffectiveCharacteristic
Returns the Property's unconstrained Characteristic. This is undefined when the Property is abstract- Returns:
- The Property's Characteristic without Constraints, or empty, if
isAbstract()is true
-
getDataType
- Returns:
- the type for the Property.
-
getExtends
- Returns:
- the Property that is extended by this Property, if present
-