Class Sequence

    • Field Detail

      • TYPE

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

        public static final Operation INDEX_ACCESS
      • 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
      • APPEND

        public static final Operation APPEND
      • PREPEND

        public static final Operation PREPEND
      • INSERT_AT

        public static final Operation INSERT_AT
      • INDEX_OF

        public static final Operation INDEX_OF
      • HAS_DUPLICATES

        public static final Operation HAS_DUPLICATES
      • EXCLUDING

        public static final Operation EXCLUDING
      • INCLUDING

        public static final Operation INCLUDING
      • REVERSE

        public static final Operation REVERSE
      • SUBSEQUENCE

        public static final Operation SUBSEQUENCE
      • ISSUBSEQUENCE

        public static final Operation ISSUBSEQUENCE
      • OVERLAPS

        public static final Operation OVERLAPS
      • FLATTEN

        public static final Operation FLATTEN
      • EQUALS

        public static final Operation EQUALS
      • ASSIGNMENT

        public static final Operation ASSIGNMENT
    • Constructor Detail

      • Sequence

        private Sequence()
        Creates the singleton instance.
      • Sequence

        public Sequence​(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.
      • isSequence

        public static final boolean isSequence​(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