|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.mindtree.techworks.insight.reporting.SerializationXmlUtils
public abstract class SerializationXmlUtils
Utility class which has methods for handling common tasks in XML serializing
and deserializing Verifier
s and Job
s.
Constructor Summary | |
---|---|
SerializationXmlUtils()
|
Method Summary | |
---|---|
static org.w3c.dom.Document |
createDocument(java.lang.String xmlString)
Creates an XML Document from the XML String. |
static java.lang.String |
escapeSpecialChars(java.lang.String unescapedString)
Escapes all the special characters to avoid in the value of the string representation of the filter criterion. |
static java.lang.String |
getSerializedObjectClassName(org.w3c.dom.Document serializedVerifier)
Extracts the class name of the Verfier or the |
static java.lang.String |
getTextValue(org.w3c.dom.Element element)
Returns the text value in an XML Element. |
static java.lang.String |
serializeXmlElement(org.w3c.dom.Element element)
Serializes the XML element passed in to string format. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SerializationXmlUtils()
Method Detail |
---|
public static org.w3c.dom.Document createDocument(java.lang.String xmlString) throws InitializationException
xmlString
- The Serialized XML.
Document
for the XML passed in.
InitializationException
- If there is an exception while parsing the XML.public static java.lang.String getTextValue(org.w3c.dom.Element element)
If an XML element is passed in in the format
<element>value</element>
, then the
value
part of it is returned.
If the element does not have a text value in it, then null
is returned.
element
- The element from which the value is to be extracted.
null
.public static java.lang.String escapeSpecialChars(java.lang.String unescapedString)
unescapedString
- The unescaped string.
public static java.lang.String serializeXmlElement(org.w3c.dom.Element element) throws InitializationException
element
- The element to serialize
InitializationException
- If the underlying implementation cannot serialize the
element.public static java.lang.String getSerializedObjectClassName(org.w3c.dom.Document serializedVerifier) throws InitializationException
Verfier
or the //(verifier | job)/class
to look for the Class name.
serializedVerifier
- XML Document representing the serialized Verifier
.
Verifier
or Job
if present.
InitializationException
- If the class name is not present or cannot be read.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |