sdlip.xml.dom
Class XMLObject
java.lang.Object
|
+--sdlip.xml.dom.XMLObject
- public class XMLObject
- extends java.lang.Object
- implements XMLObject
This is a DOM-enabled implementation of the SDLIP XMLObject interface
described in the SDLIP Java tutorial.
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
XMLObject
public XMLObject()
- Creates an empty XMLObject
XMLObject
public XMLObject(Element e)
XMLObject
public XMLObject(java.lang.String xmldata)
throws SDLIPException
XMLObject
public XMLObject(org.xml.sax.InputSource source)
throws SDLIPException
getDocument
public static Document getDocument()
setElement
public void setElement(Element e)
getElement
public Element getElement()
getString
public java.lang.String getString()
- Standard get method
- Specified by:
- getString in interface XMLObject
getPrettyString
public java.lang.String getPrettyString()
- WARNING: Use this for debugging purposes only.
Whitespace is not preserved in the generated output!
setString
public void setString(java.lang.String XMLStr)
throws SDLIPException
- Standard set method
- Specified by:
- setString in interface XMLObject
setInputSource
public void setInputSource(org.xml.sax.InputSource source)
throws SDLIPException
create
public static XMLObject create(XMLObject obj)
throws SDLIPException
setElement
public static void setElement(XMLObject obj,
Element el)
throws SDLIPException