|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<TextFormat>
org.qtitools.qti.value.TextFormat
public enum TextFormat
plain - Indicates that the text to be entered by the candidate is plain text. This format is suitable for short unstructured responses. Delivery engines should preserve white-space characters in candidate input except where a response consists only of white-space characters, in which case it should be treated as an empty string (NULL).
preFormatted - Indicates that the text to be entered by the candidate is pre-formatted and should be rendered in a way consistent with the definition of pre in [XHTML]. Delivery engines must preserve white-space characters except where a response consists only of white-space characters, in which case it should be treated as an empty string (NULL).
xhtml - Indicates that the text to be entered by the candidate is structured text. The value of the response variable is text marked up in XHTML. The delivery engine should present an interface suitable for capturing structured text, this might be plain typed text interpreted with a set of simple text markup conventions such as those used in wiki page editors or a complete WYSIWYG editor.
| Enum Constant Summary | |
|---|---|
PLAIN
plain type. |
|
PRE_FORMATTED
preFormatted type. |
|
XHTML
xhtml type. |
|
| Field Summary | |
|---|---|
static java.lang.String |
CLASS_TAG
Name of this class in xml schema. |
| Method Summary | |
|---|---|
static TextFormat[] |
intersection(TextFormat[] firstSet,
TextFormat[] secondSet)
Returns intersection of two given types sets (order is not important). |
boolean |
isPlain()
Returns true if this textFormat is plain; false otherwise. |
boolean |
isPreFormatted()
Returns true if this textFormat is preFormatted; false otherwise. |
boolean |
isXhtml()
Returns true if this textFormat is xhtml; false otherwise. |
static TextFormat |
parseTextFormat(java.lang.String textFormat)
Returns parsed TextFormat from given String. |
java.lang.String |
toString()
|
static TextFormat |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static TextFormat[] |
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 TextFormat PLAIN
public static final TextFormat PRE_FORMATTED
public static final TextFormat XHTML
| Field Detail |
|---|
public static final java.lang.String CLASS_TAG
| Method Detail |
|---|
public static final TextFormat[] values()
for(TextFormat c : TextFormat.values())
System.out.println(c);
public static TextFormat 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 isPlain()
public boolean isPreFormatted()
public boolean isXhtml()
public java.lang.String toString()
toString in class java.lang.Enum<TextFormat>
public static TextFormat parseTextFormat(java.lang.String textFormat)
throws QTIParseException
TextFormat from given String.
textFormat - String representation of TextFormat
TextFormat from given String
QTIParseException - if given String is not valid TextFormat
public static TextFormat[] intersection(TextFormat[] firstSet,
TextFormat[] 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 | |||||||||