anon.terms.template
Class Section

java.lang.Object
  extended by anon.terms.TCComponent
      extended by anon.terms.TCComposite
          extended by anon.terms.template.Section
All Implemented Interfaces:
IXMLEncodable

public class Section
extends TCComposite
implements IXMLEncodable


Field Summary
static java.lang.String XML_ATTR_NAME
           
static java.lang.String XML_ELEMENT_CONTAINER_NAME
           
static java.lang.String XML_ELEMENT_NAME
           
 
Fields inherited from class anon.terms.TCComposite
tcComponents
 
Fields inherited from class anon.terms.TCComponent
content, id
 
Fields inherited from interface anon.util.IXMLEncodable
FIELD_XML_ELEMENT_CONTAINER_NAME, FIELD_XML_ELEMENT_NAME, XML_ATTR_ID, XML_ATTR_LANGUAGE, XML_ATTR_VERSION
 
Constructor Summary
Section()
           
Section(double id, java.lang.Object content)
           
Section(org.w3c.dom.Node root)
           
 
Method Summary
 void replaceElementNodes(org.w3c.dom.NodeList nodes)
           
 org.w3c.dom.Element toXmlElement(org.w3c.dom.Document ownerDoc)
          Return an element that can be appended to the document.
 org.w3c.dom.Element toXmlElement(org.w3c.dom.Document ownerDoc, boolean outputEmpty)
           
 
Methods inherited from class anon.terms.TCComposite
addTCComponent, clone, getTCComponent, getTCComponentCount, getTCComponents, hasContent, removeTCComponent, toString
 
Methods inherited from class anon.terms.TCComponent
equals, getContent, getId, setContent, setId
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

XML_ELEMENT_CONTAINER_NAME

public static java.lang.String XML_ELEMENT_CONTAINER_NAME

XML_ELEMENT_NAME

public static java.lang.String XML_ELEMENT_NAME

XML_ATTR_NAME

public static java.lang.String XML_ATTR_NAME
Constructor Detail

Section

public Section()

Section

public Section(double id,
               java.lang.Object content)

Section

public Section(org.w3c.dom.Node root)
        throws XMLParseException
Throws:
XMLParseException
Method Detail

replaceElementNodes

public void replaceElementNodes(org.w3c.dom.NodeList nodes)

toXmlElement

public org.w3c.dom.Element toXmlElement(org.w3c.dom.Document ownerDoc)
Description copied from interface: IXMLEncodable
Return an element that can be appended to the document. This Method must not change the document in any way!

Specified by:
toXmlElement in interface IXMLEncodable
Parameters:
ownerDoc - a document
Returns:
the interface as xml element

toXmlElement

public org.w3c.dom.Element toXmlElement(org.w3c.dom.Document ownerDoc,
                                        boolean outputEmpty)