Class DefaultTrait
java.lang.Object
org.eclipse.esmf.metamodel.impl.ModelElementImpl
org.eclipse.esmf.metamodel.impl.DefaultCharacteristic
org.eclipse.esmf.characteristic.impl.DefaultTrait
- All Implemented Interfaces:
Comparable<ModelElementImpl>,Trait,Characteristic,ModelElement,NamedElement
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultTrait(MetaModelBaseAttributes metaModelBaseAttributes, Characteristic baseCharacteristic, List<Constraint> constraints) -
Method Summary
Modifier and TypeMethodDescription<T,C> T accept(AspectVisitor<T, C> visitor, C context) Accepts an Aspect visitorbooleanThe Characteristic which is wrapped by a Constraint.The Constraints to enforce on the base CharacteristicA Constraint's data type is its base Characteristic's data type.inthashCode()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, hasSyntheticName
-
Constructor Details
-
DefaultTrait
public DefaultTrait(MetaModelBaseAttributes metaModelBaseAttributes, Characteristic baseCharacteristic, List<Constraint> constraints)
-
-
Method Details
-
getBaseCharacteristic
The Characteristic which is wrapped by a Constraint.- Specified by:
getBaseCharacteristicin interfaceTrait- Returns:
- the Characteristic that is wrapped by this Constraint
-
getDataType
A Constraint's data type is its base Characteristic's data type.- Specified by:
getDataTypein interfaceCharacteristic- Overrides:
getDataTypein classDefaultCharacteristic- Returns:
- the base Characteristic's data type
-
getConstraints
Description copied from interface:TraitThe Constraints to enforce on the base Characteristic- Specified by:
getConstraintsin interfaceTrait- Returns:
- the collection of Constraints
-
equals
- Overrides:
equalsin classDefaultCharacteristic
-
hashCode
public int hashCode()- Overrides:
hashCodein classDefaultCharacteristic
-
accept
Accepts an Aspect visitor- Specified by:
acceptin interfaceModelElement- Overrides:
acceptin classDefaultCharacteristic- Type Parameters:
T- The result type of the traversal operationC- The context of the visitor traversal- Parameters:
visitor- The visitor to accept
-
toString
- Overrides:
toStringin classDefaultCharacteristic
-