|
NetKernel APIs |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ten60.netkernel.util.XMLReadable
public final class XMLReadable
Thin wrapper over a DOM to provide fast XPath lookup on values in convenient ways
| Constructor Summary | |
|---|---|
XMLReadable(org.w3c.dom.Node aContextNode)
Creates a new instance of XMLReadable |
|
| Method Summary | |
|---|---|
int |
getInt(java.lang.String aXPath,
int aDefault)
return an integer from text value of the text at a node given by the expression. |
java.util.List |
getNodes(java.lang.String aXPath)
return a list of nodes that match the given expression |
java.lang.String |
getText(java.lang.String aXPath)
return a string value of the text of a single node, returns an empty string if node not found |
java.util.List |
getTexts(java.lang.String aXPath,
boolean aTrim)
return a list of strings that are the text values of elements matching the given expression |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public XMLReadable(org.w3c.dom.Node aContextNode)
aContextNode - the context node that relative expressions are evaluated against| Method Detail |
|---|
public java.util.List getNodes(java.lang.String aXPath)
public java.util.List getTexts(java.lang.String aXPath,
boolean aTrim)
aTrim - if true trims the resulting strings of whitespacepublic java.lang.String getText(java.lang.String aXPath)
public int getInt(java.lang.String aXPath,
int aDefault)
|
NetKernel APIs |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||