|
NetKernel APIs |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Method Summary | |
IXPathResult |
eval(String aTargetXPath)
Evaluate the xpath against the document returning an IXPathResult |
String |
getText(String aTargetXPath,
boolean aTrim)
Return the text that is contained at the element located using an XPath |
boolean |
isTrue(String aTargetXPath)
Evaluate and xpath against the document returning a boolean result |
IXDAReadOnlyIterator |
readOnlyIterator(String aTargetXPath)
Return an iterator over all elements that match the an XPath |
void |
serialize(Writer aWriter,
boolean indent)
Serialize the whole document |
void |
serialize(Writer aWriter,
String aTargetXPath,
boolean indent)
Serialize part of the document |
Method Detail |
public IXPathResult eval(String aTargetXPath) throws XPathLocationException
XPathLocationException
- throw if the xpath is malformedpublic boolean isTrue(String aTargetXPath) throws XPathLocationException
XPathLocationException
- throw if the xpath is malformedpublic String getText(String aTargetXPath, boolean aTrim) throws XPathLocationException
aTargetXPath
- the xpathaTrim
- if true trim whitespace from the String
XPathLocationException
- throw if the xpath is malformed or
doesn't point to a single unique elementpublic IXDAReadOnlyIterator readOnlyIterator(String aTargetXPath) throws XPathLocationException
aTargetXPath
- the xpath
XPathLocationException
- throw if the xpath is malformedpublic void serialize(Writer aWriter, String aTargetXPath, boolean indent) throws XPathLocationException, IOException
aWriter
- the writer to write the serialized document toaTargetXPath
- the xpathindent
- true if the document should be re-indented
XPathLocationException
- throw if the xpath is malformed or
doesn't point to a single unique element
IOException
- throw if the writer cannot be written topublic void serialize(Writer aWriter, boolean indent) throws IOException
aWriter
- the writer to write the serialized document toindent
- true if the document should be re-indented
IOException
- throw if the writer cannot be written to
|
NetKernel APIs |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |