|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<BaseType>
org.qtitools.qti.value.BaseType
public enum BaseType
This class describes single data types.
Supported single data types: identifier, boolean, integer, float, string, point, pair, directedPair, duration, file, uri.
IdentifierValue,
BooleanValue,
IntegerValue,
FloatValue,
StringValue,
PointValue,
PairValue,
DirectedPairValue,
DurationValue,
FileValue,
UriValue| Enum Constant Summary | |
|---|---|
BOOLEAN
Boolean baseType. |
|
DIRECTED_PAIR
DirectedPair baseType. |
|
DURATION
Duration baseType. |
|
FILE
File baseType. |
|
FLOAT
Float baseType. |
|
IDENTIFIER
Identifier baseType. |
|
INTEGER
Integer baseType. |
|
PAIR
Pair baseType. |
|
POINT
Point baseType. |
|
STRING
String baseType. |
|
URI
URI baseType. |
|
| Field Summary | |
|---|---|
static java.lang.String |
CLASS_TAG
Name of this class in xml schema. |
| Method Summary | |
|---|---|
static BaseType[] |
intersection(BaseType[] firstSet,
BaseType[] secondSet)
Returns intersection of two given baseTypes sets (order is not important). |
boolean |
isBoolean()
Returns true if this baseType is boolean; false otherwise. |
boolean |
isDirectedPair()
Returns true if this baseType is directedPair; false otherwise. |
boolean |
isDuration()
Returns true if this baseType is duration; false otherwise. |
boolean |
isFile()
Returns true if this baseType is file; false otherwise. |
boolean |
isFloat()
Returns true if this baseType is float; false otherwise. |
boolean |
isIdentifier()
Returns true if this baseType is identifier; false otherwise. |
boolean |
isInteger()
Returns true if this baseType is integer; false otherwise. |
boolean |
isNumeric()
Returns true if this baseType is integer or float; false otherwise. |
boolean |
isPair()
Returns true if this baseType is pair; false otherwise. |
boolean |
isPoint()
Returns true if this baseType is point; false otherwise. |
boolean |
isString()
Returns true if this baseType is string; false otherwise. |
boolean |
isUri()
Returns true if this baseType is uri; false otherwise. |
static BaseType |
parseBaseType(java.lang.String baseType)
Returns parsed BaseType from given String. |
abstract SingleValue |
parseSingleValue(java.lang.String singleValue)
Parses the String argument as A SingleValue. |
java.lang.String |
toString()
|
static BaseType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static BaseType[] |
values()
Returns an array containing the constants of this enum type, in the order they're declared. |
static BaseType[] |
values(BaseType[] exclude)
Returns all supported baseTypes except of baseTypes in given parameter. |
| 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 BaseType IDENTIFIER
IdentifierValuepublic static final BaseType BOOLEAN
BooleanValuepublic static final BaseType INTEGER
IntegerValuepublic static final BaseType FLOAT
FloatValuepublic static final BaseType STRING
StringValuepublic static final BaseType POINT
PointValuepublic static final BaseType PAIR
PairValuepublic static final BaseType DIRECTED_PAIR
DirectedPairValuepublic static final BaseType DURATION
DurationValuepublic static final BaseType FILE
FileValuepublic static final BaseType URI
UriValue| Field Detail |
|---|
public static final java.lang.String CLASS_TAG
| Method Detail |
|---|
public static final BaseType[] values()
for(BaseType c : BaseType.values())
System.out.println(c);
public static BaseType 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 boolean isIdentifier()
public boolean isBoolean()
public boolean isNumeric()
public boolean isInteger()
public boolean isFloat()
public boolean isString()
public boolean isPoint()
public boolean isPair()
public boolean isDirectedPair()
public boolean isDuration()
public boolean isFile()
public boolean isUri()
public abstract SingleValue parseSingleValue(java.lang.String singleValue)
throws QTIParseException
String argument as A SingleValue.
singleValue - String representation of SingleValue
SingleValue
QTIParseException - if String representation of SingleValue is not validpublic java.lang.String toString()
toString in class java.lang.Enum<BaseType>
public static BaseType parseBaseType(java.lang.String baseType)
throws QTIParseException
BaseType from given String.
baseType - String representation of BaseType
BaseType from given String
QTIParseException - if given String is not valid BaseTypepublic static BaseType[] values(BaseType[] exclude)
exclude - excluded baseTypes
public static BaseType[] intersection(BaseType[] firstSet,
BaseType[] secondSet)
firstSet - first set of baseTypessecondSet - second set of baseType
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||