Class Set

    • Field Detail

      • 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
      • 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
      • FLATTEN

        public static final Operation FLATTEN
      • EQUALS

        public static final Operation EQUALS
      • ASSIGNMENT

        public static final Operation ASSIGNMENT
    • Constructor Detail

      • Set

        private Set()
        Creates the singleton instance.
      • Set

        public Set​(java.lang.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 Detail

      • 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.
      • 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