org.qtitools.qti.node.content.xhtml.table
Enum TableCellType

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

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

tableCell types

Author:
Jonathon Hare

Enum Constant Summary
TD
          td
TH
          th
 
Method Summary
abstract  TableCell create(Tr parent)
          Creates tableCell element.
 java.lang.String getClassTag()
          Gets CLASS_TAG of this tableCell type.
static TableCell getInstance(Tr parent, java.lang.String classTag)
          Creates tableCell element.
static TableCellType getType(java.lang.String classTag)
          Gets tableCell type for given CLASS_TAG.
 java.lang.String toString()
           
static TableCellType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static TableCellType[] 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

TD

public static final TableCellType TD
td


TH

public static final TableCellType TH
th

Method Detail

values

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

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

valueOf

public static TableCellType 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 tableCell type.

Returns:
CLASS_TAG of this tableCell type

create

public abstract TableCell create(Tr parent)
Creates tableCell element.

Parameters:
parent - parent of created tableCell
Returns:
created tableCell

toString

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

getType

public static TableCellType getType(java.lang.String classTag)
Gets tableCell type for given CLASS_TAG.

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

getInstance

public static TableCell getInstance(Tr parent,
                                    java.lang.String classTag)
Creates tableCell element.

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


Copyright © 2009. All Rights Reserved.