com.oakgrovesystems.xml
Class XMLObject

java.lang.Object
  |
  +--com.oakgrovesystems.xml.XMLObject
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
XMLReactorResponse

public class XMLObject
extends java.lang.Object
implements java.io.Serializable

See Also:
Serialized Form

Field Summary
protected  org.jdom.Document jdomDocument
           
protected  org.jdom.Element jdomElement
           
protected  org.jdom.JDOMException jdomException
           
protected  java.lang.String stringValue
           
 
Constructor Summary
XMLObject(org.jdom.Document document)
           
XMLObject(org.jdom.Element element)
           
XMLObject(java.lang.String text)
           
 
Method Summary
 org.jdom.JDOMException getJDOMException()
           
 java.lang.String prettyString()
           
 org.jdom.Document toDocument()
          If there is a parsing problem, this will return null.
 org.jdom.Element toElement()
          This returns the root element (or a clone).
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

stringValue

protected java.lang.String stringValue

jdomElement

protected org.jdom.Element jdomElement

jdomDocument

protected org.jdom.Document jdomDocument

jdomException

protected org.jdom.JDOMException jdomException
Constructor Detail

XMLObject

public XMLObject(java.lang.String text)

XMLObject

public XMLObject(org.jdom.Document document)

XMLObject

public XMLObject(org.jdom.Element element)
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

prettyString

public java.lang.String prettyString()

toDocument

public org.jdom.Document toDocument()
If there is a parsing problem, this will return null. The exception can be found by calling getJDOMException().


toElement

public org.jdom.Element toElement()
This returns the root element (or a clone). If there is a parsing problem, this will return null. The exception can be found by calling getJDOMException().


getJDOMException

public org.jdom.JDOMException getJDOMException()


Copyright (c) 1999-2004 Oak Grove Systems. All Rights Reserved.