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

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.Table
All Implemented Interfaces:
java.io.Serializable, Block, BlockStatic, Flow, FlowStatic, ObjectFlow, XmlNode, XmlObject, Validatable

public class Table
extends BodyElement
implements BlockStatic, FlowStatic

Attribute : summary [0..1]: string Contains : caption [0..1] Contains : col [*] If A table directly contains A col then it must not contain any colgroup elements. Contains : colgroup [*] If A table contains A colgroup it must not directly contain any col elements. Contains : thead [0..1] Contains : tfoot [0..1] Contains : tbody [1..*]

Author:
Jonathon Hare
See Also:
Serialized Form

Field Summary
static java.lang.String ATTR_SUMMARY_NAME
          Name of summary attribute in xml schema.
static java.lang.String CLASS_TAG
          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, DISPLAY_NAME
 
Fields inherited from interface org.qtitools.qti.node.content.basic.BlockStatic
DISPLAY_NAME
 
Fields inherited from interface org.qtitools.qti.node.content.basic.FlowStatic
DISPLAY_NAME
 
Constructor Summary
Table(XmlObject parent)
          Constructs object.
 
Method Summary
 Caption getCaption()
          Gets caption child.
 java.util.List<? extends XmlNode> getChildren()
          Gets an unmodifiable list of the child elements.
 java.lang.String getClassTag()
          Gets QTI class name of this node.
 java.util.List<Colgroup> getColgroups()
          Gets colgroup children.
 java.util.List<Col> getCols()
          Gets col children.
 java.lang.String getSummary()
          Gets value of summary attribute.
 java.util.List<Tbody> getTbodys()
          Gets tbody children.
 Tfoot getTfoot()
          Gets tfoot child.
 Thead getThead()
          Gets thead child.
 void setCaption(Caption caption)
          Sets caption child.
 void setSummary(java.lang.String summary)
          Sets new value of summary attribute.
 void setTfoot(Tfoot tfoot)
          Sets Tfoot child.
 void setThead(Thead thead)
          Sets Thead child.
 ValidationResult validate()
          Validates this object.
 
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, 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, validateAttributes, validateChildren
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CLASS_TAG

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


ATTR_SUMMARY_NAME

public static final java.lang.String ATTR_SUMMARY_NAME
Name of summary attribute in xml schema.

See Also:
Constant Field Values
Constructor Detail

Table

public Table(XmlObject parent)
Constructs object.

Parameters:
parent - parent of constructed object
Method Detail

getClassTag

public java.lang.String getClassTag()
Description copied from interface: XmlNode
Gets QTI class name of this node.

QTI class name has very important role during loading/saving nodes.

For example: Java class name is AssessmentTest; QTI class name is assessmentTest.

Specified by:
getClassTag in interface XmlNode
Specified by:
getClassTag in class AbstractNode
Returns:
QTI class name of this node

getCols

public java.util.List<Col> getCols()
Gets col children.

Returns:
col children

getColgroups

public java.util.List<Colgroup> getColgroups()
Gets colgroup children.

Returns:
colgroup children

getTbodys

public java.util.List<Tbody> getTbodys()
Gets tbody children.

Returns:
tbody children

getCaption

public Caption getCaption()
Gets caption child.

Returns:
caption child

setCaption

public void setCaption(Caption caption)
Sets caption child.

Parameters:
caption - Caption to set

getThead

public Thead getThead()
Gets thead child.

Returns:
thead child

setThead

public void setThead(Thead thead)
Sets Thead child.

Parameters:
thead - Thead to set

getTfoot

public Tfoot getTfoot()
Gets tfoot child.

Returns:
tfoot child

setTfoot

public void setTfoot(Tfoot tfoot)
Sets Tfoot child.

Parameters:
tfoot - Tfoot to set

getChildren

public java.util.List<? extends XmlNode> getChildren()
Gets an unmodifiable list of the child elements. Use the other methods on Table to add children to the correct group.

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

getSummary

public java.lang.String getSummary()
Gets value of summary attribute.

Returns:
value of summary attribute
See Also:
setSummary(java.lang.String)

setSummary

public void setSummary(java.lang.String summary)
Sets new value of summary attribute.

Parameters:
summary - new value of summary attribute
See Also:
getSummary()

validate

public ValidationResult validate()
Description copied from interface: Validatable
Validates this object.

Specified by:
validate in interface Validatable
Overrides:
validate in class AbstractNode
Returns:
validation result


Copyright © 2009. All Rights Reserved.