org.qtitools.qti.value
Enum TableCellScope

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

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

row

col

rowgroup

colgroup

Author:
Jiri Kajaba

Enum Constant Summary
COL
          Col type.
COLGROUP
          Colgroup type.
ROW
          Row type.
ROWGROUP
          Rowgroup type.
 
Field Summary
static java.lang.String CLASS_TAG
          Name of this class in xml schema.
 
Method Summary
static TableCellScope[] intersection(TableCellScope[] firstSet, TableCellScope[] secondSet)
          Returns intersection of two given types sets (order is not important).
 boolean isCol()
          Returns true if this tableCellScope is col; false otherwise.
 boolean isColgroup()
          Returns true if this tableCellScope is colgroup; false otherwise.
 boolean isRow()
          Returns true if this tableCellScope is row; false otherwise.
 boolean isRowgroup()
          Returns true if this tableCellScope is rowgroup; false otherwise.
static TableCellScope parseTableCellScope(java.lang.String tableCellScope)
          Returns parsed TableCellScopeType from given String.
 java.lang.String toString()
           
static TableCellScope valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static TableCellScope[] 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

ROW

public static final TableCellScope ROW
Row type.


COL

public static final TableCellScope COL
Col type.


ROWGROUP

public static final TableCellScope ROWGROUP
Rowgroup type.


COLGROUP

public static final TableCellScope COLGROUP
Colgroup type.

Field Detail

CLASS_TAG

public static final java.lang.String CLASS_TAG
Name of this class in xml schema.

See Also:
Constant Field Values
Method Detail

values

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

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

valueOf

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

isRow

public boolean isRow()
Returns true if this tableCellScope is row; false otherwise.

Returns:
true if this tableCellScope is row; false otherwise

isCol

public boolean isCol()
Returns true if this tableCellScope is col; false otherwise.

Returns:
true if this tableCellScope is col; false otherwise

isRowgroup

public boolean isRowgroup()
Returns true if this tableCellScope is rowgroup; false otherwise.

Returns:
true if this tableCellScope is rowgroup; false otherwise

isColgroup

public boolean isColgroup()
Returns true if this tableCellScope is colgroup; false otherwise.

Returns:
true if this tableCellScope is colgroup; false otherwise

toString

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

parseTableCellScope

public static TableCellScope parseTableCellScope(java.lang.String tableCellScope)
                                          throws QTIParseException
Returns parsed TableCellScopeType from given String.

Parameters:
tableCellScope - String representation of TableCellScopeType
Returns:
parsed TableCellScopeType from given String
Throws:
QTIParseException - if given String is not valid TableCellScopeType

intersection

public static TableCellScope[] intersection(TableCellScope[] firstSet,
                                            TableCellScope[] secondSet)
Returns intersection of two given types sets (order is not important).

Parameters:
firstSet - first set of types
secondSet - second set of types
Returns:
intersection of two given types sets


Copyright © 2009. All Rights Reserved.