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.


Constructor Summary
XMLObject()
          Creates an empty XMLObject
XMLObject(Element e)
           
XMLObject(org.xml.sax.InputSource source)
           
XMLObject(java.lang.String xmldata)
           
 
Method Summary
static XMLObject create(XMLObject obj)
           
static Document getDocument()
           
 Element getElement()
           
 java.lang.String getPrettyString()
          WARNING: Use this for debugging purposes only.
 java.lang.String getString()
          Standard get method
 void setElement(Element e)
           
static void setElement(XMLObject obj, Element el)
           
 void setInputSource(org.xml.sax.InputSource source)
           
 void setString(java.lang.String XMLStr)
          Standard set method
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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
Method Detail

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