|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.sqlunit.utils.XMLUtils
public final class XMLUtils
Provides commonly used functionality for methods which have to deal with JDOM elements.
Method Summary | |
---|---|
static java.lang.String |
getAttributeValue(org.jdom.Element element,
java.lang.String attribute)
Wrapper over Element.getAttributeValue(attributeName) which tests to see if the attributeName is a variable, if so, does another lookup of the symbol table to return the value of the variable. |
static java.lang.String |
getText(org.jdom.Element element)
Wrapper over Element.getText() which tests to see if the body text returned is a variable, if so, does another lookup of the symbol table to return the value of the variable. |
static java.lang.String |
stripCRLF(java.lang.String unstripped)
Replaces all occurences of CRLF, CR and LF with a single space and returns the trimmed result string. |
static java.lang.String |
toXMLString(org.jdom.Element element)
Converts the Element to a formatted XML String. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static java.lang.String getAttributeValue(org.jdom.Element element, java.lang.String attribute)
element
- the JDOM Element.attribute
- the name of the attribute.
public static java.lang.String getText(org.jdom.Element element)
element
- the JDOM Element.
public static java.lang.String toXMLString(org.jdom.Element element)
element
- the JDOM Element.
public static java.lang.String stripCRLF(java.lang.String unstripped)
unstripped
- the unstripped string.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |