|
NetKernel APIs |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IXDA
Xpath Document API
| Method Summary | |
|---|---|
void |
append(IXDAReadOnly aSource,
java.lang.String aSourceXPath,
java.lang.String aTargetXPath)
Append fragment of source to this at a specified location or locations |
void |
appendPath(java.lang.String aTargetXPath,
java.lang.String aNewRelativeXPath,
java.lang.String aOptionalValue)
Builds and appends a chain of elements to a location or locations within this |
void |
applyNS(java.lang.String aTargetXPath,
java.lang.String prefix,
java.lang.String uri)
Apply namespace to target location or locations |
void |
delete(java.lang.String aTargetXPath)
Delete elements at target location or locations |
void |
insertAfter(IXDAReadOnly aSource,
java.lang.String aSourceXPath,
java.lang.String aTargetXPath)
Insert fragment of source to this after specified location or locations |
void |
insertBefore(IXDAReadOnly aSource,
java.lang.String aSourceXPath,
java.lang.String aTargetXPath)
Insert fragment of source to this before specified location or locations |
IXDAIterator |
iterator(java.lang.String aTargetXPath)
Return an iterator over all elements match the xpath in this |
void |
move(java.lang.String aSourceXPath,
java.lang.String aTargetXPath)
Moves a fragment from one location in this to another |
void |
removeNS(java.lang.String aTargetXPath,
java.lang.String prefix)
Remove namespace from target location or locations |
void |
rename(java.lang.String aTargetXPath,
java.lang.String name)
Rename elements at target location or locations |
void |
replace(IXDAReadOnly aSource,
java.lang.String aSourceXPath,
java.lang.String aTargetXPath)
Replace fragments of this with fragments from source at specified location or locations |
void |
replaceByText(java.lang.String aTargetXPath,
java.lang.String aText)
Replace fragments of this with given text at specified location or locations |
void |
setText(java.lang.String aTargetXPath,
java.lang.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 |
|---|
void append(IXDAReadOnly aSource,
java.lang.String aSourceXPath,
java.lang.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 operation
void insertBefore(IXDAReadOnly aSource,
java.lang.String aSourceXPath,
java.lang.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 operation
void insertAfter(IXDAReadOnly aSource,
java.lang.String aSourceXPath,
java.lang.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 operation
void applyNS(java.lang.String aTargetXPath,
java.lang.String prefix,
java.lang.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 operation
void removeNS(java.lang.String aTargetXPath,
java.lang.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 operation
void rename(java.lang.String aTargetXPath,
java.lang.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 operation
void delete(java.lang.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 operation
void replace(IXDAReadOnly aSource,
java.lang.String aSourceXPath,
java.lang.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 operation
void replaceByText(java.lang.String aTargetXPath,
java.lang.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 operation
void move(java.lang.String aSourceXPath,
java.lang.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 operation
void setText(java.lang.String aTargetXPath,
java.lang.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 operation
void appendPath(java.lang.String aTargetXPath,
java.lang.String aNewRelativeXPath,
java.lang.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 operation
IXDAIterator iterator(java.lang.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 | |||||||||