|
NetKernel APIs |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Xpath Document API
Method Summary | |
void |
append(IXDAReadOnly aSource,
String aSourceXPath,
String aTargetXPath)
Append fragment of source to this at a specified location or locations |
void |
appendPath(String aTargetXPath,
String aNewRelativeXPath,
String aOptionalValue)
Builds and appends a chain of elements to a location or locations within this |
void |
applyNS(String aTargetXPath,
String prefix,
String uri)
Apply namespace to target location or locations |
void |
delete(String aTargetXPath)
Delete elements at target location or locations |
void |
insertAfter(IXDAReadOnly aSource,
String aSourceXPath,
String aTargetXPath)
Insert fragment of source to this after specified location or locations |
void |
insertBefore(IXDAReadOnly aSource,
String aSourceXPath,
String aTargetXPath)
Insert fragment of source to this before specified location or locations |
IXDAIterator |
iterator(String aTargetXPath)
Return an iterator over all elements match the xpath in this |
void |
move(String aSourceXPath,
String aTargetXPath)
Moves a fragment from one location in this to another |
void |
removeNS(String aTargetXPath,
String prefix)
Remove namespace from target location or locations |
void |
rename(String aTargetXPath,
String name)
Rename elements at target location or locations |
void |
replace(IXDAReadOnly aSource,
String aSourceXPath,
String aTargetXPath)
Replace fragments of this with fragments from source at specified location or locations |
void |
replaceByText(String aTargetXPath,
String aText)
Replace fragments of this with given text at specified location or locations |
void |
setText(String aTargetXPath,
String aText)
Sets the text of the element or elements at the target location of this |
Methods inherited from interface org.ten60.netkernel.xml.xda.IXDAReadOnly |
eval, getText, isTrue, readOnlyIterator, serialize, serialize |
Method Detail |
public void append(IXDAReadOnly aSource, String aSourceXPath, String aTargetXPath) throws XPathLocationException, XDOIncompatibilityException
XPathLocationException
- throw if the xpath is malformed, xpaths don't result in well defined element
XDOIncompatibilityException
- throw if the implementation doesn't support this operationpublic void insertBefore(IXDAReadOnly aSource, String aSourceXPath, String aTargetXPath) throws XPathLocationException, XDOIncompatibilityException
XPathLocationException
- throw if the xpath is malformed, xpaths don't result in well defined element
XDOIncompatibilityException
- throw if the implementation doesn't support this operationpublic void insertAfter(IXDAReadOnly aSource, String aSourceXPath, String aTargetXPath) throws XPathLocationException, XDOIncompatibilityException
XPathLocationException
- throw if the xpath is malformed, xpaths don't result in well defined element
XDOIncompatibilityException
- throw if the implementation doesn't support this operationpublic void applyNS(String aTargetXPath, String prefix, String uri) throws XPathLocationException, XDOIncompatibilityException
prefix
- prefix for the namespaceuri
- uri for the namespace
XPathLocationException
- throw if the xpath is malformed, xpaths don't result in well defined element
XDOIncompatibilityException
- throw if the implementation doesn't support this operationpublic void removeNS(String aTargetXPath, String prefix) throws XPathLocationException, XDOIncompatibilityException
prefix
- prefix for the namespace
XPathLocationException
- throw if the xpath is malformed, xpaths don't result in well defined element
XDOIncompatibilityException
- throw if the implementation doesn't support this operationpublic void rename(String aTargetXPath, String name) throws XPathLocationException, XDOIncompatibilityException
name
- the new element name
XPathLocationException
- throw if the xpath is malformed, xpaths don't result in well defined element
XDOIncompatibilityException
- throw if the implementation doesn't support this operationpublic void delete(String aTargetXPath) throws XPathLocationException, XDOIncompatibilityException
XPathLocationException
- throw if the xpath is malformed, xpaths don't result in well defined element
XDOIncompatibilityException
- throw if the implementation doesn't support this operationpublic void replace(IXDAReadOnly aSource, String aSourceXPath, String aTargetXPath) throws XPathLocationException, XDOIncompatibilityException
XPathLocationException
- throw if the xpath is malformed, xpaths don't result in well defined element
XDOIncompatibilityException
- throw if the implementation doesn't support this operationpublic void replaceByText(String aTargetXPath, String aText) throws XPathLocationException, XDOIncompatibilityException
aText
- the text to place at locations
XPathLocationException
- throw if the xpath is malformed, xpaths don't result in well defined element
XDOIncompatibilityException
- throw if the implementation doesn't support this operationpublic void move(String aSourceXPath, String aTargetXPath) throws XPathLocationException, XDOIncompatibilityException
XPathLocationException
- throw if the xpath is malformed, xpaths don't result in well defined element
XDOIncompatibilityException
- throw if the implementation doesn't support this operationpublic void setText(String aTargetXPath, String aText) throws XPathLocationException, XDOIncompatibilityException
XPathLocationException
- throw if the xpath is malformed, xpaths don't result in well defined element
XDOIncompatibilityException
- throw if the implementation doesn't support this operationpublic void appendPath(String aTargetXPath, String aNewRelativeXPath, String aOptionalValue) throws XPathLocationException, XDOIncompatibilityException
aNewRelativeXPath
- a simple xpath of form a/b/c
to name a chain of elements
to append.aOptionalValue
- a text value to assign to the leaf node, may be null
XPathLocationException
- throw if the xpath is malformed, xpaths don't result in well defined element
XDOIncompatibilityException
- throw if the implementation doesn't support this operationpublic IXDAIterator iterator(String aTargetXPath) throws XPathLocationException
XPathLocationException
- throw if the xpath is malformed, xpaths don't result in well defined element
|
NetKernel APIs |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |