it.eng.geo.document
Class AbstractXMLDocument
java.lang.Object
it.eng.geo.document.AbstractXMLDocument
- All Implemented Interfaces:
- XMLDocumentIFace
- Direct Known Subclasses:
- CrimsonXMLDocument, XercesXMLDocument
public abstract class AbstractXMLDocument
- extends java.lang.Object
- implements XMLDocumentIFace
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
document
private org.w3c.dom.Document document
documentAsXMLString
private java.lang.String documentAsXMLString
AbstractXMLDocument
public AbstractXMLDocument()
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)