|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<Orientation>
org.qtitools.qti.value.Orientation
public enum Orientation
This class describes orientation. Supported cardinalities are:
horizontal
vertical
| Enum Constant Summary | |
|---|---|
HORIZONTAL
horizontal |
|
VERTICAL
vertical |
|
| Field Summary | |
|---|---|
static java.lang.String |
CLASS_TAG
Name of this class in xml schema. |
| Method Summary | |
|---|---|
boolean |
isHorizontal()
Returns true if this orientation is horizontal; false otherwise. |
boolean |
isVertical()
Returns true if this orientation is vertical; false otherwise. |
static Orientation |
parseOrientation(java.lang.String orientation)
Returns parsed Orientation from given String. |
java.lang.String |
toString()
|
static Orientation |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static Orientation[] |
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 Orientation HORIZONTAL
public static final Orientation VERTICAL
| Field Detail |
|---|
public static final java.lang.String CLASS_TAG
| Method Detail |
|---|
public static final Orientation[] values()
for(Orientation c : Orientation.values())
System.out.println(c);
public static Orientation 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 isHorizontal()
public boolean isVertical()
public java.lang.String toString()
toString in class java.lang.Enum<Orientation>
public static Orientation parseOrientation(java.lang.String orientation)
throws QTIParseException
Orientation from given String.
orientation - String representation of Orientation
Orientation from given String
QTIParseException - if given String is not valid Orientation
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||