public class UnorderedDuplicateKeysException extends DeltaXMLDitaMergeException
An orderless element (one with the deltaxml:ordered='false'
attribute) cannot contain more than one child element
with the same name/type (ie. the same namespace URI and localName) and the same deltaxml:key
attribute value.
This exception is thrown whenever two such elements are found within the same orderless parent. There may be more than two child elements with the same key value, but only two are reported with an exception within any parent element and key value combination.
Constructor and Description |
---|
UnorderedDuplicateKeysException(String parentElement,
String keyValue,
String child1,
String child2)
Construct a new UnorderedDuplicateKeysException appropriate for use with the DeltaXML code.
|
Modifier and Type | Method and Description |
---|---|
String |
getChild1()
Reports the location (XPath) of the first shared-key child.
|
String |
getChild2()
Reports the location (XPath) of the second shared-key child.
|
String |
getIncorrectParentElement()
Reports the XPath of the orderless element.
|
String |
getKeyValue()
Reports the shared key value.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public UnorderedDuplicateKeysException(String parentElement, String keyValue, String child1, String child2)
parentElement
- String used to represent the XPath of the erroneous element.keyValue
- the value of the duplicated deltaxml:key attributechild1
- one of the children with duplicate keyschild2
- another child with duplicate keyspublic String getIncorrectParentElement()
public String getKeyValue()
public String getChild1()
public String getChild2()
Copyright © 2023 Deltaman Group Ltd. All Rights Reserved.