|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.jameleon.util.XMLHelper
public class XMLHelper
| Field Summary | |
|---|---|
protected org.dom4j.Document |
document
|
protected org.dom4j.io.SAXReader |
parser
|
| Constructor Summary | |
|---|---|
XMLHelper(String xml)
Contstructor |
|
XMLHelper(URL xmlFile)
Contstructor |
|
| Method Summary | |
|---|---|
protected String |
cleanNestedMessage(Throwable t)
|
boolean |
getBooleanValueFromXPath(String xpath)
Gets the boolean value of the given tag |
org.dom4j.Document |
getDocument()
Gets the Document for the XML represented by the provided text |
List |
getListFromXPath(String xpath)
Gets a list of Nodes from the xml |
String |
getValueFromXPath(String xpath)
Gets the text value of the given tag |
List |
getValuesFromXPath(String xpath)
Gets a list of Values from the xml |
protected void |
setUpSaxReader()
Set up the SAXReader such that it understands the jameleon namespace |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected org.dom4j.io.SAXReader parser
protected org.dom4j.Document document
| Constructor Detail |
|---|
public XMLHelper(String xml)
xml - - The XML to parsepublic XMLHelper(URL xmlFile)
xmlFile - - The XML to parse| Method Detail |
|---|
protected void setUpSaxReader()
public String getValueFromXPath(String xpath)
xpath - - the xpath representing a tag
public boolean getBooleanValueFromXPath(String xpath)
xpath - - the xpath representing a tag
public org.dom4j.Document getDocument()
public List getValuesFromXPath(String xpath)
xpath - - the xpath representing the desired tags
public List getListFromXPath(String xpath)
xpath - - the xpath representing the desired tags
protected String cleanNestedMessage(Throwable t)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||