|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<ExpressionType>
org.qtitools.qti.node.expression.ExpressionType
public enum ExpressionType
This class creates all supported expressions from given CLASS_TAG.
Supported expressions: and, anyN, baseValue, containerSize, contains, correct, customOperator, default, delete, divide, durationGTE, durationLT, equal, equalRounded, fieldValue, gt, gte, index, inside, integerDivide, integerModulus, integerToFloat, isNull, lt, lte, mapResponse, mapResponsePoint, match, member, multiple, not, null, numberCorrect, numberIncorrect, numberPresented, numberResponded, numberSelected, or, ordered, outcomeMaximum, outcomeMinimum, patternMatch, power, product, random, randomFloat, randomInteger, round, stringMatch, substring, subtract, sum, testVariables, truncate, variable, customOperator, mapResponse, mapResponsePoint.
Additional expressions: randomFloatEx, randomIntegerEx, randomEx, recordEx
| Enum Constant Summary | |
|---|---|
AND
Creates and expression. |
|
ANY_N
Creates anyN expression. |
|
BASE_VALUE
Creates baseValue expression. |
|
CONTAINER_SIZE
Creates containerSize expression. |
|
CONTAINS
Creates contains expression. |
|
CORRECT
Creates correct expression. |
|
CUSTOM_OPERATOR
Creates correct expression. |
|
DEFAULT
Creates default expression. |
|
DELETE
Creates delete expression. |
|
DIVIDE
Creates divide expression. |
|
DURATION_GTE
Creates durationGTE expression. |
|
DURATION_LT
Creates durationLT expression. |
|
EQUAL
Creates equal expression. |
|
EQUAL_ROUNDED
Creates equalRounded expression. |
|
FIELD_VALUE
Creates fieldValue expression. |
|
GT
Creates gt expression. |
|
GTE
Creates gte expression. |
|
INDEX
Creates index expression. |
|
INSIDE
Creates inside expression. |
|
INTEGER_DIVIDE
Creates integerDivide expression. |
|
INTEGER_MODULUS
Creates integerModulus expression. |
|
INTEGER_TO_FLOAT
Creates integerToFloat expression. |
|
IS_NULL
Creates isNull expression. |
|
LT
Creates lt expression. |
|
LTE
Creates lte expression. |
|
MAP_RESPONSE
Creates mapResponse expression. |
|
MAP_RESPONSE_POINT
Creates mapResponsePoint expression. |
|
MATCH
Creates match expression. |
|
MEMBER
Creates member expression. |
|
MULTIPLE
Creates multiple expression. |
|
NOT
Creates not expression. |
|
NULL
Creates null expression. |
|
NUMBER_CORRECT
Creates numberCorrect expression. |
|
NUMBER_INCORRECT
Creates numberIncorrect expression. |
|
NUMBER_PRESENTED
Creates numberPresented expression. |
|
NUMBER_RESPONDED
Creates numberResponded expression. |
|
NUMBER_SELECTED
Creates numberSelected expression. |
|
OR
Creates or expression. |
|
ORDERED
Creates ordered expression. |
|
OUTCOME_MAXIMUM
Creates outcomeMaximum expression. |
|
OUTCOME_MINIMUM
Creates outcomeMinimum expression. |
|
PATTERN_MATCH
Creates patternMatch expression. |
|
POWER
Creates power expression. |
|
PRODUCT
Creates product expression. |
|
RANDOM
Creates random expression. |
|
RANDOM_EX
Creates randomEx expression. |
|
RANDOM_FLOAT
Creates randomFloat expression. |
|
RANDOM_FLOAT_EX
Creates randomFloatEx expression. |
|
RANDOM_INTEGER
Creates randomInteger expression. |
|
RANDOM_INTEGER_EX
Creates randomIntegerEx expression. |
|
RECORD_EX
Creates recordEx expression. |
|
ROUND
Creates round expression. |
|
STRING_MATCH
Creates stringMatch expression. |
|
SUBSTRING
Creates substring expression. |
|
SUBTRACT
Creates subtract expression. |
|
SUM
Creates sum expression. |
|
TEST_VARIABLES
Creates testVariables expression. |
|
TRUNCATE
Creates truncate expression. |
|
VARIABLE
Creates variable expression. |
|
| Method Summary | |
|---|---|
abstract Expression |
create(ExpressionParent parent)
Creates expression. |
java.lang.String |
getClassTag()
Gets CLASS_TAG of this expression type. |
static Expression |
getInstance(ExpressionParent parent,
java.lang.String classTag)
Creates expression. |
java.lang.Integer |
getMaximum()
Gets maximum allowed children or null. |
java.lang.Integer |
getMinimum()
Gets minimum required children or null. |
BaseType[] |
getProducedBaseTypes()
Gets list of all produced baseTypes. |
Cardinality[] |
getProducedCardinalities()
Gets list of all produced cardinalities. |
BaseType[] |
getRequiredBaseTypes(int index)
Gets list of all acceptable baseTypes for given position. |
Cardinality[] |
getRequiredCardinalities(int index)
Gets list of all acceptable cardinalities for given position. |
static ExpressionType[] |
getSupportedTypes(Cardinality[] requiredCardinalities,
BaseType[] requiredBaseTypes)
Gets all supported expression types for given requirements. |
static ExpressionType |
getType(java.lang.String classTag)
Gets expression type for given CLASS_TAG. |
java.lang.String |
toString()
|
static ExpressionType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static ExpressionType[] |
values()
Returns an array containing the constants of this enum type, in the order they're declared. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, valueOf |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final ExpressionType AND
Andpublic static final ExpressionType ANY_N
AnyNpublic static final ExpressionType BASE_VALUE
BaseValuepublic static final ExpressionType CONTAINER_SIZE
ContainerSizepublic static final ExpressionType CONTAINS
Containspublic static final ExpressionType CORRECT
Correctpublic static final ExpressionType CUSTOM_OPERATOR
Correctpublic static final ExpressionType DEFAULT
Defaultpublic static final ExpressionType DELETE
Deletepublic static final ExpressionType DIVIDE
Dividepublic static final ExpressionType DURATION_GTE
DurationGtepublic static final ExpressionType DURATION_LT
DurationLtpublic static final ExpressionType EQUAL
Equalpublic static final ExpressionType EQUAL_ROUNDED
EqualRoundedpublic static final ExpressionType FIELD_VALUE
FieldValuepublic static final ExpressionType GT
Gtpublic static final ExpressionType GTE
Gtepublic static final ExpressionType INDEX
Indexpublic static final ExpressionType INSIDE
Insidepublic static final ExpressionType INTEGER_DIVIDE
IntegerDividepublic static final ExpressionType INTEGER_MODULUS
IntegerModuluspublic static final ExpressionType INTEGER_TO_FLOAT
IntegerToFloatpublic static final ExpressionType IS_NULL
IsNullpublic static final ExpressionType LT
Ltpublic static final ExpressionType LTE
Ltepublic static final ExpressionType MAP_RESPONSE
MapResponsepublic static final ExpressionType MAP_RESPONSE_POINT
MapResponsePointpublic static final ExpressionType MATCH
Matchpublic static final ExpressionType MEMBER
Memberpublic static final ExpressionType MULTIPLE
Multiplepublic static final ExpressionType NOT
Notpublic static final ExpressionType NULL
Nullpublic static final ExpressionType NUMBER_CORRECT
NumberCorrectpublic static final ExpressionType NUMBER_INCORRECT
NumberIncorrectpublic static final ExpressionType NUMBER_PRESENTED
NumberPresentedpublic static final ExpressionType NUMBER_RESPONDED
NumberRespondedpublic static final ExpressionType NUMBER_SELECTED
NumberSelectedpublic static final ExpressionType OR
Orpublic static final ExpressionType OUTCOME_MAXIMUM
OutcomeMaximumpublic static final ExpressionType OUTCOME_MINIMUM
OutcomeMinimumpublic static final ExpressionType ORDERED
Orderedpublic static final ExpressionType PATTERN_MATCH
PatternMatchpublic static final ExpressionType POWER
Powerpublic static final ExpressionType PRODUCT
Productpublic static final ExpressionType RANDOM
Randompublic static final ExpressionType RANDOM_EX
RandomExpublic static final ExpressionType RANDOM_FLOAT
RandomFloatpublic static final ExpressionType RANDOM_FLOAT_EX
RandomFloatExpublic static final ExpressionType RANDOM_INTEGER
RandomIntegerpublic static final ExpressionType RANDOM_INTEGER_EX
RandomIntegerExpublic static final ExpressionType RECORD_EX
RecordExpublic static final ExpressionType ROUND
Roundpublic static final ExpressionType STRING_MATCH
StringMatchpublic static final ExpressionType SUBSTRING
Substringpublic static final ExpressionType SUBTRACT
Subtractpublic static final ExpressionType SUM
Sumpublic static final ExpressionType TEST_VARIABLES
TestVariablespublic static final ExpressionType TRUNCATE
Truncatepublic static final ExpressionType VARIABLE
Variable| Method Detail |
|---|
public static final ExpressionType[] values()
for(ExpressionType c : ExpressionType.values())
System.out.println(c);
public static ExpressionType valueOf(java.lang.String name)
name - the name of the enum constant to be returned.
java.lang.IllegalArgumentException - if this enum type has no constant
with the specified namepublic java.lang.String getClassTag()
public java.lang.Integer getMinimum()
public java.lang.Integer getMaximum()
public Cardinality[] getRequiredCardinalities(int index)
index - position
ExpressionParent.getRequiredCardinalities(int)public BaseType[] getRequiredBaseTypes(int index)
index - position
ExpressionParent.getRequiredBaseTypes(int)public Cardinality[] getProducedCardinalities()
Expression.getProducedCardinalities()public BaseType[] getProducedBaseTypes()
Expression.getProducedBaseTypes()public abstract Expression create(ExpressionParent parent)
parent - parent of created expression
public java.lang.String toString()
toString in class java.lang.Enum<ExpressionType>public static ExpressionType getType(java.lang.String classTag)
classTag - CLASS_TAG
public static ExpressionType[] getSupportedTypes(Cardinality[] requiredCardinalities,
BaseType[] requiredBaseTypes)
requiredCardinalities - required cardinalitiesrequiredBaseTypes - required baseTypes
public static Expression getInstance(ExpressionParent parent,
java.lang.String classTag)
parent - parent of created expressionclassTag - CLASS_TAG of created expression
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||