|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
D - the document type, defines what is the concrete type of XML
documents usedP - the patching instruction typeE - the element typeN - the node typepublic interface XmlPatchOperationsBuilder<D,P,E,N>
Builds XML Patch Ops (RFC 5261) patching instructions.
| Nested Class Summary | |
|---|---|
static class |
XmlPatchOperationsBuilder.Pos
possible |
static class |
XmlPatchOperationsBuilder.Ws
possible |
| Field Summary | |
|---|---|
static java.lang.String |
XML_PATCH_OPS_NAMESPACE
|
| Method Summary | |
|---|---|
P |
addAttribute(java.lang.String sel,
java.lang.String attrName,
java.lang.String attrValue,
java.util.Map<java.lang.String,java.lang.String> namespaceBindings)
Builds the patching instruction for the creation of an attribute. |
P |
addElement(java.lang.String sel,
E element,
java.util.Map<java.lang.String,java.lang.String> namespaceBindings)
Builds the patching instruction for the creation of an element. |
P |
addNode(java.lang.String sel,
XmlPatchOperationsBuilder.Pos pos,
N node,
java.util.Map<java.lang.String,java.lang.String> namespaceBindings)
Builds the patching instruction for the creation of a node. |
P |
addPrefixNamespaceDeclaration(java.lang.String sel,
java.lang.String namespacePrefix,
java.lang.String namespaceValue,
java.util.Map<java.lang.String,java.lang.String> namespaceBindings)
Builds the patching instruction for the creation of a prefix namespace declaration. |
P[] |
buildPatchInstructions(D originalDocument,
D patchedDocument)
Builds a document patching instructions, by comparing two versions of a document. |
P |
removeAttribute(java.lang.String sel,
java.util.Map<java.lang.String,java.lang.String> namespaceBindings)
Builds the patching instruction for the removal of an attribute. |
P |
removeElement(java.lang.String sel,
XmlPatchOperationsBuilder.Ws ws,
java.util.Map<java.lang.String,java.lang.String> namespaceBindings)
Builds the patching instruction for the removal of an element. |
P |
removeNode(java.lang.String sel,
java.util.Map<java.lang.String,java.lang.String> namespaceBindings)
Builds the patching instruction for the removal of node. |
P |
removePrefixNamespaceDeclaration(java.lang.String sel,
java.util.Map<java.lang.String,java.lang.String> namespaceBindings)
Builds the patching instruction for the removal of a prefix namespace declaration. |
P |
replaceAttribute(java.lang.String sel,
java.lang.String attributeValue,
java.util.Map<java.lang.String,java.lang.String> namespaceBindings)
Builds the patching instruction for the replacement of an attribute. |
P |
replaceElement(java.lang.String sel,
E element,
java.util.Map<java.lang.String,java.lang.String> namespaceBindings)
Builds the patching instruction for the replacement of an element. |
P |
replaceNode(java.lang.String sel,
N node,
java.util.Map<java.lang.String,java.lang.String> namespaceBindings)
Builds the patching instruction for the replacement of a node. |
P |
replacePrefixNamespaceDeclaration(java.lang.String sel,
java.lang.String namespaceValue,
java.util.Map<java.lang.String,java.lang.String> namespaceBindings)
Builds the patching instruction for the replacement of a prefix namespace declaration. |
| Field Detail |
|---|
static final java.lang.String XML_PATCH_OPS_NAMESPACE
| Method Detail |
|---|
P addAttribute(java.lang.String sel,
java.lang.String attrName,
java.lang.String attrValue,
java.util.Map<java.lang.String,java.lang.String> namespaceBindings)
throws BuildPatchException
sel - the xpath selector, which points to the added attribute.attrName - the attribute nameattrValue - the attribute valuenamespaceBindings - namespace bindings for undeclared namespaces in type and sel
BuildPatchException - if an exception occurred while building the patch, the
concrete exception is the exception's cause.
P addElement(java.lang.String sel,
E element,
java.util.Map<java.lang.String,java.lang.String> namespaceBindings)
throws BuildPatchException
sel - the xpath selector, which points to the added element.element - the elementnamespaceBindings - namespace bindings for undeclared namespaces in the element
and sel
BuildPatchException - if an exception occurred while building the patch, the
concrete exception is the exception's cause.
P addNode(java.lang.String sel,
XmlPatchOperationsBuilder.Pos pos,
N node,
java.util.Map<java.lang.String,java.lang.String> namespaceBindings)
throws BuildPatchException
sel - the xpath selector, which points to the added node.pos - the pos attributenode - the nodenamespaceBindings - namespace bindings for undeclared namespaces in the node and
sel
BuildPatchException - if an exception occurred while building the patch, the
concrete exception is the exception's cause.
P addPrefixNamespaceDeclaration(java.lang.String sel,
java.lang.String namespacePrefix,
java.lang.String namespaceValue,
java.util.Map<java.lang.String,java.lang.String> namespaceBindings)
throws BuildPatchException
sel - the xpath selector, which points to the added prefix namespace
declaration.namespacePrefix - the namespace prefixnamespaceValue - the namespace valuenamespaceBindings - namespace bindings for undeclared namespaces in sel
BuildPatchException - if an exception occurred while building the patch, the
concrete exception is the exception's cause.
P replaceAttribute(java.lang.String sel,
java.lang.String attributeValue,
java.util.Map<java.lang.String,java.lang.String> namespaceBindings)
throws BuildPatchException
sel - the xpath selector, which points to the replaced attribute.attrValue - the attribute valuenamespaceBindings - namespace bindings for undeclared namespaces in sel
BuildPatchException - if an exception occurred while building the patch, the
concrete exception is the exception's cause.
P replaceElement(java.lang.String sel,
E element,
java.util.Map<java.lang.String,java.lang.String> namespaceBindings)
throws BuildPatchException
sel - the xpath selector, which points to the replaced element.element - the elementnamespaceBindings - namespace bindings for undeclared namespaces in the element
and sel
BuildPatchException - if an exception occurred while building the patch, the
concrete exception is the exception's cause.
P replaceNode(java.lang.String sel,
N node,
java.util.Map<java.lang.String,java.lang.String> namespaceBindings)
throws BuildPatchException
sel - the xpath selector, which points to the replaced node.node - the nodenamespaceBindings - namespace bindings for undeclared namespaces in the node and
sel
BuildPatchException - if an exception occurred while building the patch, the
concrete exception is the exception's cause.
P replacePrefixNamespaceDeclaration(java.lang.String sel,
java.lang.String namespaceValue,
java.util.Map<java.lang.String,java.lang.String> namespaceBindings)
throws BuildPatchException
sel - the xpath selector, which points to the replaced prefix
namespace declaration.namespaceValue - the namespace valuenamespaceBindings - namespace bindings for undeclared namespaces in sel
BuildPatchException - if an exception occurred while building the patch, the
concrete exception is the exception's cause.
P removeAttribute(java.lang.String sel,
java.util.Map<java.lang.String,java.lang.String> namespaceBindings)
throws BuildPatchException
sel - the xpath selector, which points to the removed attribute.namespaceBindings - namespace bindings for undeclared namespaces in sel
BuildPatchException - if an exception occurred while building the patch, the
concrete exception is the exception's cause.
P removeElement(java.lang.String sel,
XmlPatchOperationsBuilder.Ws ws,
java.util.Map<java.lang.String,java.lang.String> namespaceBindings)
throws BuildPatchException
sel - the xpath selector, which points to the removed element.ws - the ws.namespaceBindings - namespace bindings for undeclared namespaces in sel
BuildPatchException - if an exception occurred while building the patch, the
concrete exception is the exception's cause.
P removeNode(java.lang.String sel,
java.util.Map<java.lang.String,java.lang.String> namespaceBindings)
throws BuildPatchException
sel - the xpath selector, which points to the removed node.namespaceBindings - namespace bindings for undeclared namespaces in sel
BuildPatchException - if an exception occurred while building the patch, the
concrete exception is the exception's cause.
P removePrefixNamespaceDeclaration(java.lang.String sel,
java.util.Map<java.lang.String,java.lang.String> namespaceBindings)
throws BuildPatchException
sel - the xpath selector, which points to the removed prefix
namespace declaration.namespaceBindings - namespace bindings for undeclared namespaces in sel
BuildPatchException - if an exception occurred while building the patch, the
concrete exception is the exception's cause.
P[] buildPatchInstructions(D originalDocument,
D patchedDocument)
throws BuildPatchException
originalDocument - patchedDocument -
BuildPatchException - if an exception occurred while building the patch, the
concrete exception is the exception's cause.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||