|
JGAP | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jgap.data.DocumentBuilderBase
public abstract class DocumentBuilderBase
| Constructor Summary | |
|---|---|
DocumentBuilderBase()
|
|
| Method Summary | |
|---|---|
java.lang.Object |
buildDocument(IDataCreators a_dataholder,
java.lang.Object a_document)
Builds a document from the given input (input data + existing document). |
protected abstract java.lang.Object |
createElement(java.lang.Object a_document,
java.lang.Object a_element,
java.lang.String a_tagName)
Creates an element with help for a given document. |
protected abstract java.lang.Object |
documentAppendChild(java.lang.Object a_document,
java.lang.Object a_element)
Append a child to a given document. |
protected abstract java.lang.Object |
elementAppendChild(java.lang.Object a_rootElement,
java.lang.Object a_childElement)
Append a child to a given element. |
protected abstract void |
setAttribute(java.lang.Object a_element,
java.lang.String a_key,
java.lang.String a_value)
Sets an attribute for a given Element. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DocumentBuilderBase()
| Method Detail |
|---|
public java.lang.Object buildDocument(IDataCreators a_dataholder,
java.lang.Object a_document)
throws java.lang.Exception
a_dataholder - the input structure holding the data to
be represented as a generic documenta_document - the document to put the elements in
java.lang.Exception
protected abstract java.lang.Object documentAppendChild(java.lang.Object a_document,
java.lang.Object a_element)
a_document - to append element on (e.g. org.w3c.dom.Document)a_element - to append to document (e.g. org.w3c.com.Element)
protected abstract java.lang.Object elementAppendChild(java.lang.Object a_rootElement,
java.lang.Object a_childElement)
a_rootElement - to append childElement on (e.g. org.w3c.com.Element)a_childElement - to append to rootElement (e.g. org.w3c.com.Element)
protected abstract java.lang.Object createElement(java.lang.Object a_document,
java.lang.Object a_element,
java.lang.String a_tagName)
a_document - could be used as factory to create the element witha_element - null or existing element as templatea_tagName - name of tag to create for the element
protected abstract void setAttribute(java.lang.Object a_element,
java.lang.String a_key,
java.lang.String a_value)
a_element - the Element to set an attribute for
(e.g. org.w3c.com.Element)a_key - the key of the attributea_value - the value of the attribute
|
JGAP | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||