org.qtitools.qti.node.content.xhtml.table
Class TableCell

java.lang.Object
  extended by org.qtitools.qti.node.AbstractNode
      extended by org.qtitools.qti.node.AbstractObject
          extended by org.qtitools.qti.node.content.BodyElement
              extended by org.qtitools.qti.node.content.xhtml.table.TableCell
All Implemented Interfaces:
java.io.Serializable, XmlNode, XmlObject, Validatable
Direct Known Subclasses:
Td, Th

public abstract class TableCell
extends BodyElement

In XHTML, table cells are represented by either th or td and these share the following attributes and content model: Attribute : headers [*]: identifier Attribute : scope [0..1]: tableCellScope Attribute : abbr [0..1]: string Attribute : axis [0..1]: string Attribute : rowspan [0..1]: integer Attribute : colspan [0..1]: integer Contains : flow [*]

Author:
Jonathon Hare
See Also:
Serialized Form

Field Summary
static java.lang.String ATTR_ABBR_NAME
          Name of abbr attribute in xml schema.
static java.lang.String ATTR_AXIS_NAME
          Name of axis attribute in xml schema.
static java.lang.String ATTR_COLSPAN_NAME
          Name of colspan attribute in xml schema.
static java.lang.String ATTR_HEADERS_NAME
          Name of headers attribute in xml schema.
static java.lang.String ATTR_ROWSPAN_NAME
          Name of rowspan attribute in xml schema.
static java.lang.String ATTR_SCOPE_NAME
          Name of scope attribute in xml schema.
static java.lang.String DISPLAY_NAME
          Name of this class in xml schema.
 
Fields inherited from class org.qtitools.qti.node.content.BodyElement
ATTR_CLASS_NAME, ATTR_ID_NAME, ATTR_LABEL_NAME, ATTR_LANG_NAME
 
Fields inherited from interface org.qtitools.qti.node.XmlNode
INDENT, NEW_LINE, SIMPLE_NAME_INNER_SEPARATOR, SIMPLE_NAMES_SEPARATOR
 
Constructor Summary
TableCell(XmlObject parent)
          Constructs object.
 
Method Summary
 java.lang.String getAbbr()
          Gets value of abbr attribute.
 java.lang.String getAxis()
          Gets value of axis attribute.
 java.util.List<? extends XmlNode> getChildren()
          Get A list of the content child nodes of this element
 java.lang.Integer getColspan()
          Gets value of colspan attribute.
 java.util.List<java.lang.String> getHeaders()
          Gets value of headers attribute.
 java.lang.Integer getRowspan()
          Gets value of rowspan attribute.
 TableCellScope getScope()
          Gets value of scope attribute.
 void setAbbr(java.lang.String abbr)
          Sets new value of abbr attribute.
 void setAxis(java.lang.String axis)
          Sets new value of axis attribute.
 void setColspan(java.lang.Integer colspan)
          Sets new value of colspan attribute.
 void setRowspan(java.lang.Integer rowspan)
          Sets new value of rowspan attribute.
 void setScope(TableCellScope scope)
          Sets new value of scope attribute.
 
Methods inherited from class org.qtitools.qti.node.content.BodyElement
appendChild, evaluate, getClassAttr, getFirstChild, getId, getLabel, getLang, getLastChild, insertBefore, removeChild, replaceChild, search, search, search, setId, setLabel, setLang
 
Methods inherited from class org.qtitools.qti.node.AbstractObject
getParent, getParentItem, getParentResult, getParentTest, setParent
 
Methods inherited from class org.qtitools.qti.node.AbstractNode
attrToXmlString, bodyToXmlString, getAttributes, getClassTag, getFullName, getIndent, getNode, getNode, getNode, getNodeGroups, getParentRoot, getSimpleName, getSourceFile, getSourceNode, getSourceString, getSourceUrl, hasChildNodes, load, load, load, load, loadAttributes, readChild, readChildren, setParent, setSourceFile, setSourceNode, setSourceString, setSourceUrl, toXmlString, toXmlString, validate, validateAttributes, validateChildren
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.qtitools.qti.node.XmlNode
getAttributes, getClassTag, getFullName, getNodeGroups, getParentRoot, getSimpleName, getSourceFile, getSourceNode, getSourceString, getSourceUrl, hasChildNodes, load, load, load, load, setSourceFile, setSourceNode, setSourceString, setSourceUrl, toXmlString, toXmlString
 
Methods inherited from interface org.qtitools.qti.validation.Validatable
validate
 

Field Detail

DISPLAY_NAME

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


ATTR_HEADERS_NAME

public static final java.lang.String ATTR_HEADERS_NAME
Name of headers attribute in xml schema.

See Also:
Constant Field Values

ATTR_SCOPE_NAME

public static final java.lang.String ATTR_SCOPE_NAME
Name of scope attribute in xml schema.

See Also:
Constant Field Values

ATTR_ABBR_NAME

public static final java.lang.String ATTR_ABBR_NAME
Name of abbr attribute in xml schema.

See Also:
Constant Field Values

ATTR_AXIS_NAME

public static final java.lang.String ATTR_AXIS_NAME
Name of axis attribute in xml schema.

See Also:
Constant Field Values

ATTR_ROWSPAN_NAME

public static final java.lang.String ATTR_ROWSPAN_NAME
Name of rowspan attribute in xml schema.

See Also:
Constant Field Values

ATTR_COLSPAN_NAME

public static final java.lang.String ATTR_COLSPAN_NAME
Name of colspan attribute in xml schema.

See Also:
Constant Field Values
Constructor Detail

TableCell

public TableCell(XmlObject parent)
Constructs object.

Parameters:
parent - parent of constructed object
Method Detail

getChildren

public java.util.List<? extends XmlNode> getChildren()
Description copied from class: BodyElement
Get A list of the content child nodes of this element

Specified by:
getChildren in class BodyElement
Returns:
List of child nodes

getHeaders

public java.util.List<java.lang.String> getHeaders()
Gets value of headers attribute.

Returns:
value of headers attribute

getScope

public TableCellScope getScope()
Gets value of scope attribute.

Returns:
value of scope attribute
See Also:
setScope(org.qtitools.qti.value.TableCellScope)

setScope

public void setScope(TableCellScope scope)
Sets new value of scope attribute.

Parameters:
scope - new value of scope attribute
See Also:
getScope()

getAbbr

public java.lang.String getAbbr()
Gets value of abbr attribute.

Returns:
value of abbr attribute
See Also:
setAbbr(java.lang.String)

setAbbr

public void setAbbr(java.lang.String abbr)
Sets new value of abbr attribute.

Parameters:
abbr - new value of abbr attribute
See Also:
getAbbr()

getAxis

public java.lang.String getAxis()
Gets value of axis attribute.

Returns:
value of axis attribute
See Also:
setAxis(java.lang.String)

setAxis

public void setAxis(java.lang.String axis)
Sets new value of axis attribute.

Parameters:
axis - new value of axis attribute
See Also:
getAxis()

getRowspan

public java.lang.Integer getRowspan()
Gets value of rowspan attribute.

Returns:
value of rowspan attribute
See Also:
setRowspan(java.lang.Integer)

setRowspan

public void setRowspan(java.lang.Integer rowspan)
Sets new value of rowspan attribute.

Parameters:
rowspan - new value of rowspan attribute
See Also:
getRowspan()

getColspan

public java.lang.Integer getColspan()
Gets value of colspan attribute.

Returns:
value of colspan attribute
See Also:
setColspan(java.lang.Integer)

setColspan

public void setColspan(java.lang.Integer colspan)
Sets new value of colspan attribute.

Parameters:
colspan - new value of colspan attribute
See Also:
getColspan()


Copyright © 2009. All Rights Reserved.