Class ConstraintType
- java.lang.Object
-
- net.ssehub.easy.varModel.model.datatypes.BasisDatatype
-
- net.ssehub.easy.varModel.model.datatypes.ConstraintType
-
- All Implemented Interfaces:
IDatatype,IDatatypeVisitable
public class ConstraintType extends BasisDatatype
Defines the basis datatype for holding constraints. This datatype allows to define varying constraints (required by HIS).- Author:
- Holger Eichelberger
-
-
Field Summary
Fields Modifier and Type Field Description static OperationASSIGNMENTstatic OperationEQUALSstatic OperationIS_DEFINEDstatic IDatatypeTYPEstatic OperationTYPE_OFstatic OperationUNEQUALSstatic OperationUNEQUALS_ALIAS
-
Constructor Summary
Constructors Modifier Constructor Description privateConstraintType()Constructor for a new ConstraintType.
-
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.booleanisAssignableFrom(IDatatype type)Determines if the data type represented by this object is either the same as, or is a supertype oftype.static booleanisConstraint(IDatatype type)Returns whethertypeis a constraint.-
Methods inherited from class net.ssehub.easy.varModel.model.datatypes.BasisDatatype
getGenericType, getGenericTypeCount, getName, getNameSpace, getOperation, getOperationCount, getQualifiedName, getType, getTypeClass, getUniqueName, isPrimitive, isPseudoType
-
-
-
-
Field Detail
-
TYPE
public static final IDatatype TYPE
-
TYPE_OF
public static final Operation TYPE_OF
-
EQUALS
public static final Operation EQUALS
-
UNEQUALS
public static final Operation UNEQUALS
-
UNEQUALS_ALIAS
public static final Operation UNEQUALS_ALIAS
-
ASSIGNMENT
public static final Operation ASSIGNMENT
-
IS_DEFINED
public static final Operation IS_DEFINED
-
-
Method Detail
-
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- Specified by:
acceptin classBasisDatatype- Parameters:
visitor- the visitor to accept
-
isAssignableFrom
public boolean isAssignableFrom(IDatatype type)
Description copied from class:BasisDatatypeDetermines if the data type represented by this object is either the same as, or is a supertype oftype.- Specified by:
isAssignableFromin interfaceIDatatype- Overrides:
isAssignableFromin classBasisDatatype- Parameters:
type- the type being checked- Returns:
trueif this type is either the same or a supertype oftype,trueelse
-
isConstraint
public static boolean isConstraint(IDatatype type)
Returns whethertypeis a constraint. This method is required as constraints are assignable to Boolean.- Parameters:
type- the type- Returns:
truein case of a constraintfalseelse
-
-