|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<ParamType>
org.qtitools.qti.value.ParamType
public enum ParamType
This class describes paramType of A param. Supported paramTypes are:
DATA
REF
| Enum Constant Summary | |
|---|---|
DATA
DATA type. |
|
REF
REF type. |
|
| Field Summary | |
|---|---|
static java.lang.String |
CLASS_TAG
Name of this class in xml schema. |
| Method Summary | |
|---|---|
static ParamType[] |
intersection(ParamType[] firstSet,
ParamType[] secondSet)
Returns intersection of two given types sets (order is not important). |
boolean |
isData()
Returns true if this paramType is DATA; false otherwise. |
boolean |
isRef()
Returns true if this paramType is REF; false otherwise. |
static ParamType |
parseParamType(java.lang.String paramType)
Returns parsed ParamType from given String. |
java.lang.String |
toString()
|
static ParamType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static ParamType[] |
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 ParamType DATA
public static final ParamType REF
| Field Detail |
|---|
public static final java.lang.String CLASS_TAG
| Method Detail |
|---|
public static final ParamType[] values()
for(ParamType c : ParamType.values())
System.out.println(c);
public static ParamType 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 isData()
public boolean isRef()
public java.lang.String toString()
toString in class java.lang.Enum<ParamType>
public static ParamType parseParamType(java.lang.String paramType)
throws QTIParseException
ParamType from given String.
paramType - String representation of ParamType
ParamType from given String
QTIParseException - if given String is not valid ParamType
public static ParamType[] intersection(ParamType[] firstSet,
ParamType[] secondSet)
firstSet - first set of typessecondSet - second set of types
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||