org.qtitools.qti.node.content
Enum ContentType

java.lang.Object
  extended by java.lang.Enum<ContentType>
      extended by org.qtitools.qti.node.content.ContentType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<ContentType>

public enum ContentType
extends java.lang.Enum<ContentType>

All the types of content.

Author:
Jonathon Hare

Enum Constant Summary
A
          a
ABBR
          abbr
ACRONYM
          acronym
ADDRESS
          address
ASSOCIABLE_HOTSPOT
          associableHotspot
ASSOCIATE_INTERACTION
          associateInteraction
B
          b
BIG
          big
BLOCKQUOTE
          blockquote
BR
          br
CAPTION
          caption
CHOICE_INTERACTION
          choiceInteraction
CITE
          cite
CODE
          code
COL
          col
COLGROUP
          colgroup
CUSTOM_INTERACTION
          customInteraction
DD
          dd
DFN
          dfn
DIV
          div
DL
          dl
DRAWING_INTERACTION
          drawingInteraction
DT
          dt
EM
          em
END_ATTEMPT_INTERACTION
          endAttemptInteraction
EXTENDED_TEXT_INTERACTION
          extendedTextInteraction
FEEDBACK_BLOCK
          feedbackBlock
FEEDBACK_INLINE
          feedbackInline
GAP
          gap
GAP_IMG
          gapImg
GAP_MATCH_INTERACTION
          gapMatchInteraction
GAP_TEXT
          gapText
GRAPHIC_ASSOCIATE_INTERACTION
          graphicAssociateInteraction
GRAPHIC_GAP_MATCH_INTERACTION
          graphicGapMatchInteraction
GRAPHIC_ORDER_INTERACTION
          graphicOrderInteration
H1
          h1
H2
          h2
H3
          h3
H4
          h4
H5
          h5
H6
          h6
HOTSPOT_CHOICE
          hotspotChoice
HOTSPOT_INTERACTION
          hotspotInteraction
HOTTEXT
          hottext
HOTTEXT_INTERACTION
          hottextInteraction
HR
          hr
I
          i
IMG
          img
INLINE_CHOICE
          inlineChoice
INLINE_CHOICE_INTERACTION
          inlineChoiceInteraction
ITEM_BODY
          itemBody
KBD
          kbd
LI
          li
MATCH_INTERACTION
          matchInteraction
MATH
          math
MEDIA_INTERACTION
          mediaInteraction
OBJECT
          object
OL
          ol
ORDER_INTERACTION
          orderInteraction
P
          p
PARAM
          param
POSITION_OBJECT_INTERACTION
          positionObjectInteraction
POSITION_OBJECT_STAGE
          positionObjectStage
PRE
          pre
PRINTED_VARIABLE
          printedVariable
PROMPT
          prompt
Q
          q
RUBRIC_BLOCK
          rubricBlock
SAMP
          samp
SELECT_POINT_INTERACTION
          selectPointInteraction
SIMPLE_ASSOCIABLE_CHOICE
          simpleAssociableChoice
SIMPLE_CHOICE
          simpleChoice
SIMPLE_MATCH_SET
          simpleMatchSet
SLIDER_INTERACTION
          sliderInteraction
SMALL
          small
SPAN
          span
STRONG
          strong
SUB
          sub
SUP
          sup
TABLE
          table
TBODY
          tbody
TD
          td
TEMPLATE_BLOCK
          templateBlock
TEMPLATE_INLINE
          templateInline
TEXT_ENTRY_INTERACTION
          textEntyInteraction
TEXT_RUN
          textRun
TFOOT
          tfoot
TH
          th
THEAD
          thead
TR
          tr
TT
          tt
UL
          ul
UPLOAD_INTERACTION
          uploadInteraction
VAR
          var
 
Method Summary
static java.util.Collection<ContentType> blockStaticValues()
          Get blockStatic types
static java.util.Collection<ContentType> blockValues()
          Get block types
abstract  XmlObject create(XmlObject parent)
          Creates block element.
static java.util.Collection<ContentType> flowStaticValues()
          Get flowStatic types
static java.util.Collection<ContentType> flowValues()
          Get flow types
static java.util.Collection<ContentType> gapChoiceValues()
          Get gapChoice types
static Block getBlockInstance(XmlObject parent, java.lang.String classTag)
          Creates block element.
static BlockStatic getBlockStaticInstance(XmlObject parent, java.lang.String classTag)
          Creates blockStatic element.
 java.lang.String getClassTag()
          Gets CLASS_TAG of this block type.
 java.lang.Class getClazz()
          Gets QTI class of this block type.
static Flow getFlowInstance(XmlObject parent, java.lang.String classTag)
          Creates flow element.
static FlowStatic getFlowStaticInstance(XmlObject parent, java.lang.String classTag)
          Creates flowStatic element.
static GapChoice getGapChoiceInstance(XmlObject parent, java.lang.String classTag)
          Creates gapChoice element.
static Inline getInlineInstance(XmlObject parent, java.lang.String classTag)
          Creates inline element.
static InlineStatic getInlineStaticInstance(XmlObject parent, java.lang.String classTag)
          Creates inlineStatic element.
static XmlObject getInstance(XmlObject parent, java.lang.String classTag)
          Creates content element.
static Interaction getInteractionInstance(XmlObject parent, java.lang.String classTag)
          Creates interaction element.
static ObjectFlow getObjectFlowInstance(XmlObject parent, java.lang.String classTag)
          Creates objectFlow element.
static TextOrVariable getTextOrVariableInstance(XmlObject parent, java.lang.String classTag)
          Creates textOrVariable element.
static ContentType getType(java.lang.String classTag)
          Gets content type for given CLASS_TAG.
static java.util.Collection<ContentType> inlineStaticValues()
          Get inlineStatic types
static java.util.Collection<ContentType> inlineValues()
          Get inline types
static java.util.Collection<ContentType> interactionValues()
          Get interaction types
static java.util.Collection<ContentType> objectFlowValues()
          Get objectFlow types
static java.util.Collection<ContentType> textOrVariableValues()
          Get textOrVariable types
 java.lang.String toString()
           
static ContentType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static ContentType[] 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

ASSOCIATE_INTERACTION

public static final ContentType ASSOCIATE_INTERACTION
associateInteraction


CHOICE_INTERACTION

public static final ContentType CHOICE_INTERACTION
choiceInteraction


DRAWING_INTERACTION

public static final ContentType DRAWING_INTERACTION
drawingInteraction


EXTENDED_TEXT_INTERACTION

public static final ContentType EXTENDED_TEXT_INTERACTION
extendedTextInteraction


GAP_MATCH_INTERACTION

public static final ContentType GAP_MATCH_INTERACTION
gapMatchInteraction


GRAPHIC_ASSOCIATE_INTERACTION

public static final ContentType GRAPHIC_ASSOCIATE_INTERACTION
graphicAssociateInteraction


GRAPHIC_GAP_MATCH_INTERACTION

public static final ContentType GRAPHIC_GAP_MATCH_INTERACTION
graphicGapMatchInteraction


GRAPHIC_ORDER_INTERACTION

public static final ContentType GRAPHIC_ORDER_INTERACTION
graphicOrderInteration


HOTSPOT_INTERACTION

public static final ContentType HOTSPOT_INTERACTION
hotspotInteraction


SELECT_POINT_INTERACTION

public static final ContentType SELECT_POINT_INTERACTION
selectPointInteraction


HOTTEXT_INTERACTION

public static final ContentType HOTTEXT_INTERACTION
hottextInteraction


MATCH_INTERACTION

public static final ContentType MATCH_INTERACTION
matchInteraction


MEDIA_INTERACTION

public static final ContentType MEDIA_INTERACTION
mediaInteraction


ORDER_INTERACTION

public static final ContentType ORDER_INTERACTION
orderInteraction


SLIDER_INTERACTION

public static final ContentType SLIDER_INTERACTION
sliderInteraction


UPLOAD_INTERACTION

public static final ContentType UPLOAD_INTERACTION
uploadInteraction


ADDRESS

public static final ContentType ADDRESS
address


H1

public static final ContentType H1
h1


H2

public static final ContentType H2
h2


H3

public static final ContentType H3
h3


H4

public static final ContentType H4
h4


H5

public static final ContentType H5
h5


H6

public static final ContentType H6
h6


P

public static final ContentType P
p


PRE

public static final ContentType PRE
pre


DIV

public static final ContentType DIV
div


DL

public static final ContentType DL
dl


HR

public static final ContentType HR
hr


MATH

public static final ContentType MATH
math


OL

public static final ContentType OL
ol


BLOCKQUOTE

public static final ContentType BLOCKQUOTE
blockquote


FEEDBACK_BLOCK

public static final ContentType FEEDBACK_BLOCK
feedbackBlock


RUBRIC_BLOCK

public static final ContentType RUBRIC_BLOCK
rubricBlock


TABLE

public static final ContentType TABLE
table


UL

public static final ContentType UL
ul


CUSTOM_INTERACTION

public static final ContentType CUSTOM_INTERACTION
customInteraction


POSITION_OBJECT_STAGE

public static final ContentType POSITION_OBJECT_STAGE
positionObjectStage


POSITION_OBJECT_INTERACTION

public static final ContentType POSITION_OBJECT_INTERACTION
positionObjectInteraction


END_ATTEMPT_INTERACTION

public static final ContentType END_ATTEMPT_INTERACTION
endAttemptInteraction


INLINE_CHOICE_INTERACTION

public static final ContentType INLINE_CHOICE_INTERACTION
inlineChoiceInteraction


TEXT_ENTRY_INTERACTION

public static final ContentType TEXT_ENTRY_INTERACTION
textEntyInteraction


BR

public static final ContentType BR
br


IMG

public static final ContentType IMG
img


GAP

public static final ContentType GAP
gap


HOTTEXT

public static final ContentType HOTTEXT
hottext


OBJECT

public static final ContentType OBJECT
object


PRINTED_VARIABLE

public static final ContentType PRINTED_VARIABLE
printedVariable


A

public static final ContentType A
a


ABBR

public static final ContentType ABBR
abbr


ACRONYM

public static final ContentType ACRONYM
acronym


B

public static final ContentType B
b


BIG

public static final ContentType BIG
big


CITE

public static final ContentType CITE
cite


CODE

public static final ContentType CODE
code


DFN

public static final ContentType DFN
dfn


EM

public static final ContentType EM
em


FEEDBACK_INLINE

public static final ContentType FEEDBACK_INLINE
feedbackInline


I

public static final ContentType I
i


KBD

public static final ContentType KBD
kbd


Q

public static final ContentType Q
q


SAMP

public static final ContentType SAMP
samp


SMALL

public static final ContentType SMALL
small


SPAN

public static final ContentType SPAN
span


STRONG

public static final ContentType STRONG
strong


SUB

public static final ContentType SUB
sub


SUP

public static final ContentType SUP
sup


TT

public static final ContentType TT
tt


VAR

public static final ContentType VAR
var


TEMPLATE_INLINE

public static final ContentType TEMPLATE_INLINE
templateInline


TEXT_RUN

public static final ContentType TEXT_RUN
textRun


PARAM

public static final ContentType PARAM
param


CAPTION

public static final ContentType CAPTION
caption


SIMPLE_CHOICE

public static final ContentType SIMPLE_CHOICE
simpleChoice


SIMPLE_ASSOCIABLE_CHOICE

public static final ContentType SIMPLE_ASSOCIABLE_CHOICE
simpleAssociableChoice


SIMPLE_MATCH_SET

public static final ContentType SIMPLE_MATCH_SET
simpleMatchSet


GAP_IMG

public static final ContentType GAP_IMG
gapImg


GAP_TEXT

public static final ContentType GAP_TEXT
gapText


ASSOCIABLE_HOTSPOT

public static final ContentType ASSOCIABLE_HOTSPOT
associableHotspot


HOTSPOT_CHOICE

public static final ContentType HOTSPOT_CHOICE
hotspotChoice


INLINE_CHOICE

public static final ContentType INLINE_CHOICE
inlineChoice


COL

public static final ContentType COL
col


COLGROUP

public static final ContentType COLGROUP
colgroup


DD

public static final ContentType DD
dd


DT

public static final ContentType DT
dt


ITEM_BODY

public static final ContentType ITEM_BODY
itemBody


LI

public static final ContentType LI
li


PROMPT

public static final ContentType PROMPT
prompt


TD

public static final ContentType TD
td


TH

public static final ContentType TH
th


TBODY

public static final ContentType TBODY
tbody


TFOOT

public static final ContentType TFOOT
tfoot


THEAD

public static final ContentType THEAD
thead


TR

public static final ContentType TR
tr


TEMPLATE_BLOCK

public static final ContentType TEMPLATE_BLOCK
templateBlock

Method Detail

values

public static final ContentType[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(ContentType c : ContentType.values())
        System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they're declared

valueOf

public static ContentType valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name

blockValues

public static java.util.Collection<ContentType> blockValues()
Get block types

Returns:
block types

flowValues

public static java.util.Collection<ContentType> flowValues()
Get flow types

Returns:
flow types

inlineValues

public static java.util.Collection<ContentType> inlineValues()
Get inline types

Returns:
inline types

objectFlowValues

public static java.util.Collection<ContentType> objectFlowValues()
Get objectFlow types

Returns:
objectFlow types

inlineStaticValues

public static java.util.Collection<ContentType> inlineStaticValues()
Get inlineStatic types

Returns:
inlineStatic types

flowStaticValues

public static java.util.Collection<ContentType> flowStaticValues()
Get flowStatic types

Returns:
flowStatic types

textOrVariableValues

public static java.util.Collection<ContentType> textOrVariableValues()
Get textOrVariable types

Returns:
textOrVariable types

blockStaticValues

public static java.util.Collection<ContentType> blockStaticValues()
Get blockStatic types

Returns:
blockStatic types

gapChoiceValues

public static java.util.Collection<ContentType> gapChoiceValues()
Get gapChoice types

Returns:
gapChoice types

interactionValues

public static java.util.Collection<ContentType> interactionValues()
Get interaction types

Returns:
interaction types

getClassTag

public java.lang.String getClassTag()
Gets CLASS_TAG of this block type.

Returns:
CLASS_TAG of this block type

getClazz

public java.lang.Class getClazz()
Gets QTI class of this block type.

Returns:
clazz of this block type

create

public abstract XmlObject create(XmlObject parent)
Creates block element.

Parameters:
parent - parent of created block
Returns:
created block

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Enum<ContentType>

getType

public static ContentType getType(java.lang.String classTag)
Gets content type for given CLASS_TAG.

Parameters:
classTag - CLASS_TAG
Returns:
content type for given CLASS_TAG

getInstance

public static XmlObject getInstance(XmlObject parent,
                                    java.lang.String classTag)
Creates content element.

Parameters:
parent - parent of created content
classTag - CLASS_TAG of created content
Returns:
created content

getBlockInstance

public static Block getBlockInstance(XmlObject parent,
                                     java.lang.String classTag)
Creates block element.

Parameters:
parent - parent of created block
classTag - CLASS_TAG of created block
Returns:
created block

getInlineInstance

public static Inline getInlineInstance(XmlObject parent,
                                       java.lang.String classTag)
Creates inline element.

Parameters:
parent - parent of created inline
classTag - CLASS_TAG of created inline
Returns:
created inline

getFlowInstance

public static Flow getFlowInstance(XmlObject parent,
                                   java.lang.String classTag)
Creates flow element.

Parameters:
parent - parent of created flow
classTag - CLASS_TAG of created flow
Returns:
created flow

getObjectFlowInstance

public static ObjectFlow getObjectFlowInstance(XmlObject parent,
                                               java.lang.String classTag)
Creates objectFlow element.

Parameters:
parent - parent of created objectFlow
classTag - CLASS_TAG of created objectFlow
Returns:
created objectFlow

getInlineStaticInstance

public static InlineStatic getInlineStaticInstance(XmlObject parent,
                                                   java.lang.String classTag)
Creates inlineStatic element.

Parameters:
parent - parent of created inlineStatic
classTag - CLASS_TAG of created inlineStatic
Returns:
created inlineStatic

getFlowStaticInstance

public static FlowStatic getFlowStaticInstance(XmlObject parent,
                                               java.lang.String classTag)
Creates flowStatic element.

Parameters:
parent - parent of created flowStatic
classTag - CLASS_TAG of created flowStatic
Returns:
created flowStatic

getTextOrVariableInstance

public static TextOrVariable getTextOrVariableInstance(XmlObject parent,
                                                       java.lang.String classTag)
Creates textOrVariable element.

Parameters:
parent - parent of created textOrVariable
classTag - CLASS_TAG of created textOrVariable
Returns:
created textOrVariable

getBlockStaticInstance

public static BlockStatic getBlockStaticInstance(XmlObject parent,
                                                 java.lang.String classTag)
Creates blockStatic element.

Parameters:
parent - parent of created blockStatic
classTag - CLASS_TAG of created blockStatic
Returns:
created blockStatic

getGapChoiceInstance

public static GapChoice getGapChoiceInstance(XmlObject parent,
                                             java.lang.String classTag)
Creates gapChoice element.

Parameters:
parent - parent of created gapChoice
classTag - CLASS_TAG of created gapChoice
Returns:
created gapChoice

getInteractionInstance

public static Interaction getInteractionInstance(XmlObject parent,
                                                 java.lang.String classTag)
Creates interaction element.

Parameters:
parent - parent of created interaction
classTag - CLASS_TAG of created interaction
Returns:
created interaction


Copyright © 2009. All Rights Reserved.