org.qtitools.qti.node.content.xhtml.list
Enum DlElementType

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

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

dlElement types

Author:
Jonathon Hare

Enum Constant Summary
DD
          dd
DT
          dt
 
Method Summary
abstract  DlElement create(BodyElement parent)
          Creates dlElement element.
 java.lang.String getClassTag()
          Gets CLASS_TAG of this dlElement type.
static DlElement getInstance(BodyElement parent, java.lang.String classTag)
          Creates dlElement element.
static DlElementType getType(java.lang.String classTag)
          Gets dlElement type for given CLASS_TAG.
 java.lang.String toString()
           
static DlElementType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static DlElementType[] 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

DD

public static final DlElementType DD
dd


DT

public static final DlElementType DT
dt

Method Detail

values

public static final DlElementType[] 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(DlElementType c : DlElementType.values())
        System.out.println(c);

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

valueOf

public static DlElementType 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

getClassTag

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

Returns:
CLASS_TAG of this dlElement type

create

public abstract DlElement create(BodyElement parent)
Creates dlElement element.

Parameters:
parent - parent of created dlElement
Returns:
created dlElement

toString

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

getType

public static DlElementType getType(java.lang.String classTag)
Gets dlElement type for given CLASS_TAG.

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

getInstance

public static DlElement getInstance(BodyElement parent,
                                    java.lang.String classTag)
Creates dlElement element.

Parameters:
parent - parent of created dlElement
classTag - CLASS_TAG of created dlElement
Returns:
created expression


Copyright © 2009. All Rights Reserved.