public class DifferentRootElementException extends DeltaXMLDitaException
Indicates that the inputs have different root elements.
It is not possible to compare input files with different root elements with this product. Files being compared must, after having passed through the input filters, have the same root elements.
The definition of equivalence/equality for root elements is: if one element is in a namespace then the other element must be in a namespace with the same URI; additionally the localNames of the elements must be identical. Note that this does not preclude, for example, using different namespace prefixes or different use of a default namespace.
Modifier | Constructor and Description |
---|---|
protected |
DifferentRootElementException(java.lang.String qName1,
java.lang.String qName2,
java.lang.String namespacedName1,
java.lang.String namespacedName2)
Constructs a new DifferentRootElementException
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getNamespacedName1()
Reports namespaced-name of the root element of the first comparison input.
|
java.lang.String |
getNamespacedName2()
Reports namespaced-name of the root element of the second comparison input.
|
java.lang.String |
getQName1()
Report the QName of the root element of the first comparison input.
|
java.lang.String |
getQName2()
Report the QName of the second comparison input root.
|
protected DifferentRootElementException(java.lang.String qName1, java.lang.String qName2, java.lang.String namespacedName1, java.lang.String namespacedName2)
qName1
- the QName of the root element from the first inputqName2
- the QName of the root element from the second inputnamespacedName1
- the name (in {URI}localName format) of the root element from the first inputnamespacedName2
- the name (in {URI}localName format) of the root element from the second inputpublic java.lang.String getQName1()
public java.lang.String getQName2()
public java.lang.String getNamespacedName1()
public java.lang.String getNamespacedName2()
Copyright © 2001-2016 DeltaXML Ltd. All Rights Reserved.