public class IOSPDocument
extends org.jdom.Document
| Constructor and Description |
|---|
IOSPDocument()
The default constructor which invokes the super class org.jdom.Document.
|
IOSPDocument(org.jdom.Document doc)
Turn an existing JDOM document into an IOSPDocument.
|
| Modifier and Type | Method and Description |
|---|---|
org.jdom.Element |
getElementByXPath(java.lang.String xpathValue)
A utility class that returns an element based on the XPath to that element.
|
java.lang.String |
toCompactString()
Returns the document as a String without any extra white space.
|
java.lang.String |
toEncodedJavaScriptSafeURLString()
An attempt to return an encoded string that is usable in JavaScript variable assignments.
|
java.lang.String |
toEncodedURLString()
Returns the document encoded by the URLEncoder class after striping carriage returns and line feeds.
|
java.lang.String |
toJavaScriptSafeString()
Attempt to return the document as a string that can be used in a JavaScript variable assignment.
|
java.lang.String |
toString()
Convert the document to a string use the JDOM default getPrettyPrint format.
|
java.lang.String |
toString(org.jdom.output.Format format)
Return a pretty printed string formatted according to the JDOM Format
|
void |
write(java.io.File file)
Write the document to the File
|
void |
write(java.lang.String fileName)
Write the document to the file specified by the path in the input String
|
addContent, addContent, addContent, addContent, clone, cloneContent, detachRootElement, equals, getBaseURI, getContent, getContent, getContent, getContentSize, getDescendants, getDescendants, getDocType, getDocument, getParent, getProperty, getRootElement, hashCode, hasRootElement, indexOf, removeContent, removeContent, removeContent, removeContent, setBaseURI, setContent, setContent, setContent, setContent, setDocType, setProperty, setRootElementpublic IOSPDocument()
public IOSPDocument(org.jdom.Document doc)
doc - The document to be used.public org.jdom.Element getElementByXPath(java.lang.String xpathValue)
throws org.jdom.JDOMException
xpathValue - the XPath string of the element to be found.org.jdom.JDOMExceptionpublic java.lang.String toCompactString()
public java.lang.String toEncodedURLString()
throws java.io.UnsupportedEncodingException
java.io.UnsupportedEncodingExceptionpublic java.lang.String toEncodedJavaScriptSafeURLString()
throws java.io.UnsupportedEncodingException
java.io.UnsupportedEncodingExceptionpublic java.lang.String toJavaScriptSafeString()
public java.lang.String toString(org.jdom.output.Format format)
format - the Format object that controls the pretty printing.public java.lang.String toString()
toString in class org.jdom.Documentpublic void write(java.lang.String fileName)
fileName - the file pathpublic void write(java.io.File file)
file - the File to write to