Package org.eclipse.esmf.metamodel.impl
Class DefaultProperty
java.lang.Object
org.eclipse.esmf.metamodel.impl.ModelElementImpl
org.eclipse.esmf.metamodel.impl.DefaultProperty
- All Implemented Interfaces:
Comparable<ModelElementImpl>,ModelElement,NamedElement,Property
- Direct Known Subclasses:
DefaultPropertyWrapper
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultProperty(MetaModelBaseAttributes metaModelBaseAttributes, Optional<Characteristic> characteristic, Optional<ScalarValue> exampleValue, boolean optional, boolean notInPayload, Optional<String> payloadName, boolean isAbstract, Optional<Property> extends_) -
Method Summary
Modifier and TypeMethodDescription<T,C> T accept(AspectVisitor<T, C> visitor, C context) Accepts an Aspect visitorbooleanThe Characteristic describing the semantics of the Property.A real world example value.inthashCode()booleanReturns true if the Property is abstractbooleanDefines whether a property is included in the runtime data of an Aspect.booleanDefines whether a property is optional.toString()Methods inherited from class org.eclipse.esmf.metamodel.impl.ModelElementImpl
compareTo, getAspectModelUrn, getDescriptions, getMetaModelVersion, getName, getPreferredNames, getSee, hasSyntheticNameMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.eclipse.esmf.metamodel.ModelElement
as, getMetaModelVersion, isMethods inherited from interface org.eclipse.esmf.metamodel.NamedElement
getAspectModelUrn, getDescription, getDescriptions, getName, getPreferredName, getPreferredNames, getSee, hasSyntheticNameMethods inherited from interface org.eclipse.esmf.metamodel.Property
getDataType, getEffectiveCharacteristic
-
Constructor Details
-
DefaultProperty
public DefaultProperty(MetaModelBaseAttributes metaModelBaseAttributes, Optional<Characteristic> characteristic, Optional<ScalarValue> exampleValue, boolean optional, boolean notInPayload, Optional<String> payloadName, boolean isAbstract, Optional<Property> extends_)
-
-
Method Details
-
getCharacteristic
The Characteristic describing the semantics of the Property.- Specified by:
getCharacteristicin interfaceProperty- Returns:
- the characteristic.
-
getExampleValue
A real world example value.- Specified by:
getExampleValuein interfaceProperty- Returns:
- the exampleValue.
-
isOptional
public boolean isOptional()Defines whether a property is optional.- Specified by:
isOptionalin interfaceProperty- Returns:
- the optional.
-
isNotInPayload
public boolean isNotInPayload()Defines whether a property is included in the runtime data of an Aspect.- Specified by:
isNotInPayloadin interfaceProperty- 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. - See Also:
-
getPayloadName
- Specified by:
getPayloadNamein interfaceProperty- Returns:
- the name of the Property used in the runtime payload.
-
isAbstract
public boolean isAbstract()Description copied from interface:PropertyReturns true if the Property is abstract- Specified by:
isAbstractin interfaceProperty- Returns:
-
getExtends
- Specified by:
getExtendsin interfaceProperty- Returns:
- the Property that is extended by this Property, if present
-
accept
Accepts an Aspect visitor- Specified by:
acceptin interfaceModelElement- Type Parameters:
T- The result type of the traversal operationC- The context of the visitor traversal- Parameters:
visitor- The visitor to accept
-
toString
-
equals
- Overrides:
equalsin classModelElementImpl
-
hashCode
public int hashCode()- Overrides:
hashCodein classModelElementImpl
-