All Implemented Interfaces:
IDatatype, IDatatypeVisitable, IModelElement

public class Set extends Container
Realizes a set container.
Author:
heiko beck, Holger Eichelberger
  • Field Details

    • DTYPE

      static final DelegatingType DTYPE
    • TYPE

      public static final IDatatype TYPE
      This constant represents the common type of all sets. Each specific set type is assignable to this type.
    • AS_SET

      public static final Operation AS_SET
    • TO_SET

      public static final Operation TO_SET
    • AS_SEQUENCE

      public static final Operation AS_SEQUENCE
    • TO_SEQUENCE

      public static final Operation TO_SEQUENCE
    • UNION

      public static final Operation UNION
    • INTERSECTION

      public static final Operation INTERSECTION
    • EXCLUDING

      public static final Operation EXCLUDING
    • INCLUDING

      public static final Operation INCLUDING
    • DIFFERENCE

      public static final Operation DIFFERENCE
    • SYMMETRIC_DIFFERENCE

      public static final Operation SYMMETRIC_DIFFERENCE
    • ADD

      public static final Operation ADD
    • FLATTEN

      public static final Operation FLATTEN
    • EQUALS

      public static final Operation EQUALS
    • ASSIGNMENT

      public static final Operation ASSIGNMENT
  • Constructor Details

    • Set

      private Set()
      Creates the singleton instance.
    • Set

      public Set(String name, IDatatype type, IModelElement parent)
      Constructor for the container.
      Parameters:
      name - Name of the container
      type - data type of the container elements
      parent - the object, in which this specific one is embedded
  • Method Details

    • accept

      public void accept(IModelVisitor visitor)
      Accept method for the visitor.
      Specified by:
      accept in interface IModelElement
      Overrides:
      accept in class Container
      Parameters:
      visitor - The visitor, which should process this model element.
    • accept

      public void accept(IDatatypeVisitor visitor)
      Description copied from interface: IDatatypeVisitable
      Accepts a specialized visitor for creating a textual representation of the identity of this type.
      Specified by:
      accept in interface IDatatypeVisitable
      Overrides:
      accept in class Container
      Parameters:
      visitor - the visitor to accept
    • isSet

      public static final boolean isSet(IDatatype type, IDatatype... generics)
      Returns whether type is a squence and the given generics match.
      Parameters:
      type - the type to check for
      generics - the generics to be considered
      Returns:
      true if type is sequenceOf(generics), false else