DiffOp.Name| Modifier and Type | Method and Description |
|---|---|
Node |
getCurrent()
Returns the node to be deleted, for a delete
DiffOp. |
java.lang.String |
getCurrentXPath()
Returns the XPath to the node to be deleted, for a delete
DiffOp. |
Node |
getNew()
Returns the node to be inserted or appended, for an insert or append
DiffOp. |
DiffOp.Name |
getOpName()
Returns the name of the diff operation, one of: append-node, insert-before-node, or delete-node.
|
Node |
getParent()
Returns the parent node, for an append
DiffOp. |
java.lang.String |
getParentXPath()
Returns the parent node XPath, for an append
DiffOp. |
Node |
getSibling()
Returns the node to be inserted before, for an insert
DiffOp |
java.lang.String |
getSiblingXPath()
Returns the XPath to the node to be inserted before, for an insert
DiffOp. |
compareTo, getPrefixToNamespacepublic DiffOp.Name getOpName()
DiffOppublic Node getCurrent() throws java.lang.Exception
DiffOpDiffOp.getCurrent in class DiffOpNode to be deletedjava.lang.Exceptionpublic Node getNew() throws java.lang.Exception
DiffOpDiffOp.public Node getSibling() throws java.lang.Exception
DiffOpDiffOpgetSibling in class DiffOpNode to be inserted beforejava.lang.Exceptionpublic Node getParent() throws java.lang.Exception
DiffOpDiffOp.
public java.lang.String getParentXPath()
throws java.lang.Exception
DiffOpDiffOp. Whether or not the XPath info is available is controlled by Options. The includeXPaths(...) methods of Options control the current setting of this option, and allow setting it to a new value. Including XPath info adds to the memory use and the computational cost. For maxiumum performance, this option should be turned off.getParentXPath in class DiffOpString representing the XPath to the parent node, null if it is not availablejava.lang.Exception
public java.lang.String getSiblingXPath()
throws java.lang.Exception
DiffOpDiffOp. Whether or not the XPath info is available is controlled by Options. The includeXPaths(...) methods of Options control the current setting of this option, and allow setting it to a new value. Including XPath info adds to the memory use and computational cost. For maxiumum performance, this option should be turned off.getSiblingXPath in class DiffOpString representing the XPath to the node to be inserted before, null if it is not availablejava.lang.Exception
public java.lang.String getCurrentXPath()
throws java.lang.Exception
DiffOpDiffOp. Whether or not the XPath info is available is controlled by Options. The includeXPaths(...) methods of Options control the current setting of this option, and allow setting it to a new value. Including XPath info adds to the memory use and computational cost. For maxiumum performance, this option should be turned off.getCurrentXPath in class DiffOpString representing the XPath to the node to be deleted, null if it's not availablejava.lang.Exception