Package | Description |
---|---|
org.jaxup |
Generic XML datamodel update handler interfaces
|
org.jaxup.dom |
Updating of W3C DOM trees.
|
org.jaxup.dom4j |
Updating of dom4j trees.
|
org.jaxup.jdom |
Updating of JDOM trees.
|
org.jaxup.xupdate |
Implementation of XUpdate
using jaxup.
|
Modifier and Type | Class and Description |
---|---|
class |
InvalidContextException
A context node or object was not of the right type or in the right state
to be used by the method to which it was provided.
|
class |
InvalidNodeException |
Modifier and Type | Method and Description |
---|---|
void |
Updater.appendChild(java.lang.Object parent,
java.lang.Object child,
int position)
Inserts a node into the document by appending it to the children of
the parent, or if the position parameter isn't -1, by inserting it at
that position in the list of children of the parent.
|
java.lang.Object |
Updater.createDocument()
Creates an empty XML document.
|
void |
Updater.insertAfter(java.lang.Object refNode,
java.lang.Object node)
Inserts a node into the document after the refNode, as a sibling of the
ref Node.
|
void |
Updater.insertBefore(java.lang.Object refNode,
java.lang.Object node)
Inserts a node into the document before the refNode, as a sibling of
the ref Node.
|
void |
Updater.remove(java.lang.Object node)
Removes a node from the document that it is in.
|
void |
Updater.setAttribute(java.lang.Object element,
java.lang.Object attribute)
Sets an attribute on an element node, replacing an existing
attribute with the same name.
|
void |
Updater.setAttributeValue(java.lang.Object attribute,
java.lang.String value)
Changes the value of an existing attribute.
|
void |
Updater.setNamespace(java.lang.Object element,
java.lang.Object namespace)
Binds a namespace node to an element node.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
DOMDocumentUpdater.createDocument() |
void |
DOMDocumentUpdater.setAttributeValue(java.lang.Object attribute,
java.lang.String value) |
Modifier and Type | Method and Description |
---|---|
void |
Dom4JDocumentUpdater.appendChild(java.lang.Object element,
java.lang.Object child,
int position) |
java.lang.Object |
Dom4JDocumentUpdater.createDocument() |
void |
Dom4JDocumentUpdater.insertAfter(java.lang.Object refNode,
java.lang.Object node) |
void |
Dom4JDocumentUpdater.insertBefore(java.lang.Object refNode,
java.lang.Object node) |
void |
Dom4JDocumentUpdater.remove(java.lang.Object node) |
void |
Dom4JDocumentUpdater.setAttribute(java.lang.Object element,
java.lang.Object attribute) |
void |
Dom4JDocumentUpdater.setAttributeValue(java.lang.Object attribute,
java.lang.String value) |
void |
Dom4JDocumentUpdater.setNamespace(java.lang.Object element,
java.lang.Object namespace) |
Modifier and Type | Method and Description |
---|---|
void |
JDOMDocumentUpdater.appendChild(java.lang.Object element,
java.lang.Object child,
int position) |
java.lang.Object |
JDOMDocumentUpdater.createDocument() |
void |
JDOMDocumentUpdater.insertAfter(java.lang.Object refNode,
java.lang.Object node) |
void |
JDOMDocumentUpdater.insertBefore(java.lang.Object refNode,
java.lang.Object node) |
void |
JDOMDocumentUpdater.remove(java.lang.Object node) |
void |
JDOMDocumentUpdater.setAttribute(java.lang.Object element,
java.lang.Object attribute) |
void |
JDOMDocumentUpdater.setAttributeValue(java.lang.Object attribute,
java.lang.String value) |
void |
JDOMDocumentUpdater.setNamespace(java.lang.Object element,
java.lang.Object namespace) |
Modifier and Type | Class and Description |
---|---|
class |
XUpdateException |
Modifier and Type | Method and Description |
---|---|
protected void |
XUpdate.addFragmentToTarget(int type,
java.util.List fragment,
java.lang.Object targetNode,
int childIndex) |
protected void |
XUpdate.conditional(java.lang.Object doc,
java.lang.Object instrNode)
Handles an xupdate 'if' instruction.
|
static java.lang.Object |
NodeCopier.copyAttribute(Navigator from,
Updater to,
java.lang.Object toDoc,
java.lang.Object original)
Copies an attribute completely.
|
static java.lang.Object |
NodeCopier.copyAttribute(Navigator from,
Updater to,
java.lang.Object toDoc,
java.lang.Object original,
java.lang.String newValue)
Copies an attribute but assigns it a new value.
|
static java.lang.Object |
NodeCopier.copyComment(Navigator from,
Updater to,
java.lang.Object toDoc,
java.lang.Object original) |
static java.lang.Object |
NodeCopier.copyElement(Navigator from,
Updater to,
java.lang.Object toDoc,
java.lang.Object original,
boolean template) |
static java.lang.Object |
NodeCopier.copyLiteral(Navigator from,
Updater to,
java.lang.Object toDoc,
java.lang.Object original,
boolean template)
Copies a node in the xupdate document document as an unplaced node for the source document.
|
static java.lang.Object |
NodeCopier.copyText(Navigator from,
Updater to,
java.lang.Object toDoc,
java.lang.Object original) |
protected void |
XUpdate.creation(java.lang.Object doc,
java.lang.Object instrNode,
int type)
Handles an xupdate 'append', 'update', 'insert-before' and
'insert-after' instruction.
|
protected java.lang.Object |
XUpdate.evaluateAttribute(java.lang.Object doc,
java.lang.Object instrNode,
java.lang.Object selectContext)
Evaluates an attribute creation instruction in a template.
|
protected java.lang.Object |
XUpdate.evaluateComment(java.lang.Object doc,
java.lang.Object instrNode)
Evaluates a comment creation instruction in a template.
|
protected java.lang.Object |
XUpdate.evaluateElement(java.lang.Object doc,
java.lang.Object instrNode,
java.lang.Object selectContext) |
protected java.lang.Object |
XUpdate.evaluateProcessingInstruction(java.lang.Object doc,
java.lang.Object instrNode)
Evaluates a processing-instruction creation instruction in a template.
|
protected java.lang.Object |
XUpdate.evaluateText(java.lang.Object doc,
java.lang.Object instrNode)
Evaluates a text creation instruction in a template.
|
protected java.util.List |
XUpdate.evaluateValueOf(java.lang.Object doc,
java.lang.Object instrNode,
java.lang.Object selectContext)
Evaluates a value-of instruction in a template, which will instantiate a
copy of the result of an xpath expression, possibly containing xpath
variables.
|
protected void |
XUpdate.executeUpdateInstructions(java.lang.Object doc,
java.lang.Object instructionsContainer)
Handles an xupdate 'modifications' or 'if' instruction container.
|
protected java.util.List |
XUpdate.instantiateTemplate(java.lang.Object doc,
java.lang.Object templateHolder,
java.lang.Object selectContext) |
protected void |
XUpdate.remove(java.lang.Object doc,
java.lang.Object removeNode)
Handles an xupdate 'remove' instruction.
|
protected void |
XUpdate.removeChildren(java.lang.Object element)
Removes the children of given element, if it has any children.
|
void |
XUpdate.runUpdate(java.lang.Object sourceDoc,
java.lang.Object xupdateContainer)
Runs a series of xupdate instructions to manipulate a given source
document.
|
void |
XUpdate.runUpdateDocument(java.lang.Object sourceDoc,
java.lang.Object xupdateDocument)
Runs a series of xupdate instructions to manipulate a given source
document.
|
protected void |
XUpdate.singleNodeCreation(java.lang.Object doc,
java.lang.Object instrNode,
java.lang.Object targetNode,
int type)
Handles an xupdate 'append', 'update', 'insert-before' and
'insert-after' instruction for a single node.
|
protected void |
XUpdate.variable(java.lang.Object doc,
java.lang.Object instrNode) |