Class Set
- java.lang.Object
-
- All Implemented Interfaces:
IDatatype,IDatatypeVisitable,IModelElement
public class Set extends Container
Realizes a set container.- Author:
- heiko beck, Holger Eichelberger
-
-
Field Summary
Fields Modifier and Type Field Description static OperationADDstatic OperationAS_SEQUENCEstatic OperationAS_SETstatic OperationASSIGNMENTstatic OperationDIFFERENCE(package private) static DelegatingTypeDTYPEstatic OperationEQUALSstatic OperationEXCLUDINGstatic OperationFLATTENstatic OperationINCLUDINGstatic OperationINTERSECTIONstatic OperationSYMMETRIC_DIFFERENCEstatic OperationTO_SEQUENCEstatic OperationTO_SETstatic IDatatypeTYPEThis constant represents the common type of all sets.static OperationUNION-
Fields inherited from class net.ssehub.easy.varModel.model.datatypes.Container
ANY, APPLY, AVG, CLOSURE, COLLECT, COLLECT_NESTED, COPY, COUNT, EXCLUDES, EXCLUDES_ALL, EXISTS, FORALL, INCLUDES, INCLUDES_ALL, IS_ACYCLIC, IS_DEFINED, IS_EMPTY, IS_UNIQUE, ITERATE, MAX, MAX2, MIN, MIN2, NOT_EMPTY, ONE, PRODUCT, REJECT, SELECT, SELECT_BY_KIND, SELECT_BY_TYPE, SIZE, SORTED_BY, SUM, TYPE_OF, TYPE_REJECT, TYPE_SELECT, UNEQUALS, UNEQUALS_ALIAS
-
-
Constructor Summary
Constructors Modifier Constructor Description privateSet()Creates the singleton instance.Set(java.lang.String name, IDatatype type, IModelElement parent)Constructor for the container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(IDatatypeVisitor visitor)Accepts a specialized visitor for creating a textual representation of the identity of this type.voidaccept(IModelVisitor visitor)Accept method for the visitor.static booleanisSet(IDatatype type, IDatatype... generics)Returns whethertypeis a squence and the givengenericsmatch.-
Methods inherited from class net.ssehub.easy.varModel.model.datatypes.Container
getContainedType, getGenericType, getGenericTypeCount, isAssignableFrom, isConstraintContainer, isContainer, isReferencesContainer, isReferencesContainer
-
Methods inherited from class net.ssehub.easy.varModel.model.datatypes.CustomDatatype
getOperation, getOperationCount, getType, getTypeClass, isPrimitive, isPseudoType, isType
-
Methods inherited from class net.ssehub.easy.varModel.model.ContainableModelElement
getNameSpace, getParent, getProject, getQualifiedName, getTopLevelParent, isTopLevel, setParent
-
Methods inherited from class net.ssehub.easy.varModel.model.ModelElement
findAttribute, getComment, getName, getUniqueName, isTransparent, propagateAttribute, setComment, setName, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface net.ssehub.easy.varModel.model.datatypes.IDatatype
getName, getNameSpace, getQualifiedName, getUniqueName
-
-
-
-
Field Detail
-
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 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 containertype- data type of the container elementsparent- the object, in which this specific one is embedded
-
-
Method Detail
-
accept
public void accept(IModelVisitor visitor)
Accept method for the visitor.- Specified by:
acceptin interfaceIModelElement- Overrides:
acceptin classContainer- Parameters:
visitor- The visitor, which should process this model element.
-
accept
public void accept(IDatatypeVisitor visitor)
Description copied from interface:IDatatypeVisitableAccepts a specialized visitor for creating a textual representation of the identity of this type.- Specified by:
acceptin interfaceIDatatypeVisitable- Overrides:
acceptin classContainer- Parameters:
visitor- the visitor to accept
-
-