it.eng.geo.document
Class AbstractXMLDocument

java.lang.Object
  extended by it.eng.geo.document.AbstractXMLDocument
All Implemented Interfaces:
XMLDocumentIFace
Direct Known Subclasses:
CrimsonXMLDocument, XercesXMLDocument

public abstract class AbstractXMLDocument
extends java.lang.Object
implements XMLDocumentIFace


Field Summary
private  org.w3c.dom.Document document
           
private  java.lang.String documentAsXMLString
           
 
Constructor Summary
AbstractXMLDocument()
           
 
Method Summary
 void addValue(java.lang.String path, java.lang.String key, java.lang.String value)
           
 void addValue(java.lang.String path, java.lang.String key, java.lang.String value, java.lang.String[] attributeNames, java.lang.String[] attributeValues)
           
 void appendChild(org.w3c.dom.Node newNode, java.lang.String path)
           
abstract  void createDocument(byte[] document)
           
 org.w3c.dom.Document getDocument()
           
 java.lang.String getDocumentAsXMLString()
           
 org.w3c.dom.Element getDocumentElement()
           
 org.w3c.dom.Element getElemetByID(java.lang.String id)
           
 void getNodeAsXMLString(org.w3c.dom.Node currentNode)
           
 java.lang.String getValue(java.lang.String key)
           
 java.lang.String[] getValues(java.lang.String key)
           
 void removeKey(java.lang.String key)
           
 void setDocument(org.w3c.dom.Document document)
           
 int setValue(java.lang.String key, java.lang.String value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

document

private org.w3c.dom.Document document

documentAsXMLString

private java.lang.String documentAsXMLString
Constructor Detail

AbstractXMLDocument

public AbstractXMLDocument()
Method Detail

createDocument

public abstract void createDocument(byte[] document)
                             throws XMLDocumentException
Specified by:
createDocument in interface XMLDocumentIFace
Throws:
XMLDocumentException

getElemetByID

public org.w3c.dom.Element getElemetByID(java.lang.String id)
                                  throws XMLDocumentException
Specified by:
getElemetByID in interface XMLDocumentIFace
Throws:
XMLDocumentException

getValue

public java.lang.String getValue(java.lang.String key)
                          throws XMLDocumentException
Specified by:
getValue in interface XMLDocumentIFace
Throws:
XMLDocumentException

getDocumentElement

public org.w3c.dom.Element getDocumentElement()
                                       throws XMLDocumentException
Specified by:
getDocumentElement in interface XMLDocumentIFace
Throws:
XMLDocumentException

getValues

public java.lang.String[] getValues(java.lang.String key)
                             throws XMLDocumentException
Specified by:
getValues in interface XMLDocumentIFace
Throws:
XMLDocumentException

setValue

public int setValue(java.lang.String key,
                    java.lang.String value)
             throws XMLDocumentException
Specified by:
setValue in interface XMLDocumentIFace
Throws:
XMLDocumentException

removeKey

public void removeKey(java.lang.String key)
               throws XMLDocumentException
Specified by:
removeKey in interface XMLDocumentIFace
Throws:
XMLDocumentException

addValue

public void addValue(java.lang.String path,
                     java.lang.String key,
                     java.lang.String value)
              throws XMLDocumentException
Specified by:
addValue in interface XMLDocumentIFace
Throws:
XMLDocumentException

addValue

public void addValue(java.lang.String path,
                     java.lang.String key,
                     java.lang.String value,
                     java.lang.String[] attributeNames,
                     java.lang.String[] attributeValues)
              throws XMLDocumentException
Specified by:
addValue in interface XMLDocumentIFace
Throws:
XMLDocumentException

appendChild

public void appendChild(org.w3c.dom.Node newNode,
                        java.lang.String path)
                 throws XMLDocumentException
Specified by:
appendChild in interface XMLDocumentIFace
Throws:
XMLDocumentException

getDocumentAsXMLString

public java.lang.String getDocumentAsXMLString()
                                        throws XMLDocumentException
Specified by:
getDocumentAsXMLString in interface XMLDocumentIFace
Throws:
XMLDocumentException

getNodeAsXMLString

public void getNodeAsXMLString(org.w3c.dom.Node currentNode)

getDocument

public org.w3c.dom.Document getDocument()
Specified by:
getDocument in interface XMLDocumentIFace

setDocument

public void setDocument(org.w3c.dom.Document document)