anon.terms.template
Class Paragraph

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

public class Paragraph
extends TCComponent
implements IXMLEncodable


Field Summary
private  java.util.Vector elementNodes
           
private  boolean hasElementNodes
           
static java.lang.String XML_ELEMENT_CONTAINER_NAME
           
static java.lang.String XML_ELEMENT_NAME
           
 
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
Paragraph()
           
Paragraph(double id)
           
Paragraph(org.w3c.dom.Node root)
           
 
Method Summary
 java.lang.Object clone()
           
private  java.util.Vector contentNodes()
           
 java.lang.Object getContent()
           
 boolean hasContent()
           
 boolean hasElementNodes()
           
 void replaceElementNodes(org.w3c.dom.NodeList nodes)
           
 void setContent(java.lang.Object o)
           
 void setContentBold()
           
static org.w3c.dom.NodeList toNodeList(org.w3c.dom.Node[] nodeArray)
           
 java.lang.String toString()
           
 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.TCComponent
equals, getId, 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

elementNodes

private java.util.Vector elementNodes

hasElementNodes

private boolean hasElementNodes
Constructor Detail

Paragraph

public Paragraph()

Paragraph

public Paragraph(double id)

Paragraph

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

replaceElementNodes

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

hasElementNodes

public boolean hasElementNodes()

setContent

public void setContent(java.lang.Object o)
Overrides:
setContent in class TCComponent

getContent

public java.lang.Object getContent()
Overrides:
getContent in class TCComponent

setContentBold

public void setContentBold()

contentNodes

private java.util.Vector contentNodes()

hasContent

public boolean hasContent()
Overrides:
hasContent in class TCComponent

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)

clone

public java.lang.Object clone()
Specified by:
clone in class TCComponent

toString

public java.lang.String toString()
Overrides:
toString in class TCComponent

toNodeList

public static org.w3c.dom.NodeList toNodeList(org.w3c.dom.Node[] nodeArray)