public class DifferingOrderedAttributesException extends DeltaXMLProcessingException
The deltaxml:ordered attribute is placed on elements to control whether its children are compared using the ordered comparison algorithm or the orderless algorithm. The attribute should be the same on matching elements in input1 and input2. If it is only on one of the inputs, it is impossible to decide which algorithm to compare the elements with. In this situation, the comparison will treat the two elements as different and output them as an exchange with deltaV1 and as an add and a delete in deltaV2.
Methods are provided to report the XPaths of the elements from input1 and input2 which have differing deltaxml:ordered values and cannot be compared.
Note: the getErrorCode()
method is provided for compatibility with earlier XML Compare releases; when
called with this exception the result will be: 401
Constructor and Description |
---|
DifferingOrderedAttributesException(com.deltaxml.XMLarray.Node input1Elem,
com.deltaxml.XMLarray.Node input2Elem)
Construct a new DifferingOrderedAttributesException appropriate for use in the XML Compare code.
|
DifferingOrderedAttributesException(java.lang.String input1XPath,
java.lang.String input2XPath)
Construct a new DifferingOrderedAttributesException appropriate for use in the XML Compare code.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getInput1Elem()
Report the node form input 1 which has a different deltaxml:ordered value to that of input 2.
|
java.lang.String |
getInput2Elem()
Report the node form input 2 which has a different deltaxml:ordered value to that of input 1.
|
getErrorCode, getSeverity
getCause, getThrowable
public DifferingOrderedAttributesException(com.deltaxml.XMLarray.Node input1Elem, com.deltaxml.XMLarray.Node input2Elem)
input1Elem
- the node form input 1 which has a different deltaxml:ordered value to that of input 2input2Elem
- the node form input 2 which has a different deltaxml:ordered value to that of input 1public DifferingOrderedAttributesException(java.lang.String input1XPath, java.lang.String input2XPath)
input1XPath
- the node form input 1 which has a different deltaxml:ordered value to that of input 2input2XPath
- the node form input 2 which has a different deltaxml:ordered value to that of input 1public java.lang.String getInput1Elem()
public java.lang.String getInput2Elem()