Class DefaultAspect

java.lang.Object
org.eclipse.esmf.metamodel.impl.ModelElementImpl
org.eclipse.esmf.metamodel.impl.DefaultAspect
All Implemented Interfaces:
Comparable<ModelElementImpl>, Aspect, HasProperties, ModelElement, NamedElement, StructureElement

public class DefaultAspect extends ModelElementImpl implements Aspect
  • Constructor Details

  • Method Details

    • getProperties

      public List<Property> getProperties()
      A list of Properties exposed by the Aspect.
      Specified by:
      getProperties in interface HasProperties
      Returns:
      the properties.
    • getOperations

      public List<Operation> getOperations()
      A list of Operations exposed by the Aspect.
      Specified by:
      getOperations in interface Aspect
      Returns:
      the operations.
    • getEvents

      public List<Event> getEvents()
      A list of Events provided by the Aspect.
      Specified by:
      getEvents in interface Aspect
      Returns:
      the events.
    • 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
    • isCollectionAspect

      public boolean isCollectionAspect()
      Specified by:
      isCollectionAspect in interface StructureElement
      Returns:
      a boolean which indicates whether the structure element is a Collection Aspect
    • 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