Class DefaultCharacteristic

java.lang.Object
org.eclipse.esmf.metamodel.impl.ModelElementImpl
org.eclipse.esmf.metamodel.impl.DefaultCharacteristic
All Implemented Interfaces:
Comparable<ModelElementImpl>, Characteristic, ModelElement, NamedElement
Direct Known Subclasses:
DefaultCode, DefaultCollection, DefaultEither, DefaultEnumeration, DefaultQuantifiable, DefaultSingleEntity, DefaultStructuredValue, DefaultTrait

public class DefaultCharacteristic extends ModelElementImpl implements Characteristic
  • Constructor Details

  • Method Details

    • getDataType

      public Optional<Type> getDataType()
      Defines the data type of all Properties which use this Characteristic.
      Specified by:
      getDataType in interface Characteristic
      Returns:
      the dataType.
    • accept

      public <T, C> T accept(AspectVisitor<T,C> visitor, C context)
      Accepts an Aspect visitor
      Specified by:
      accept in interface ModelElement
      Type Parameters:
      T - The result type of the traversal operation
      C - The context of the visitor traversal
      Parameters:
      visitor - The visitor to accept
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class ModelElementImpl
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class ModelElementImpl