public class IncompatibleTypesCombineException extends DeltaXMLProcessingException
When applying the delta document to the input document, the node type of the delta must match that in the input documents. There are three ways this can be different:
Methods are supplied to get hold of the input Node and output Nodes which are of different types.
Note: the getErrorCode()
method is provided for compatibility with earlier XML Compare releases; when
called with this exception the result will be: 100, 101 or 102
Modifier and Type | Class and Description |
---|---|
static class |
IncompatibleTypesCombineException.IncompatibleTypesType
Used to indicate the type of IncompatibleType error that has occurred.
|
Modifier and Type | Field and Description |
---|---|
static IncompatibleTypesCombineException.IncompatibleTypesType |
DIFFERENT_ELEMENTS
Used when an attempt is made to combine two elements with different names.
|
static IncompatibleTypesCombineException.IncompatibleTypesType |
ELEMENT_AND_PCDATA
Used when an attempt is made to combine an element with a PCDATA node.
|
static IncompatibleTypesCombineException.IncompatibleTypesType |
PCDATA_AND_ELEMENT
Used when an attempt is made to combine a PCDATA node with an element.
|
Constructor and Description |
---|
IncompatibleTypesCombineException(IncompatibleTypesCombineException.IncompatibleTypesType type,
com.deltaxml.XMLarray.Node inputNode,
com.deltaxml.XMLarray.Node deltaNode)
Creates a new IncompatibleTypesCombineException.
|
Modifier and Type | Method and Description |
---|---|
com.deltaxml.XMLarray.Node |
getDeltaElem()
Reports the node from the delta file that caused the error.
|
com.deltaxml.XMLarray.Node |
getInputElem()
Reports the node from the input file that caused the error.
|
getErrorCode, getSeverity
getCause, getThrowable
public static final IncompatibleTypesCombineException.IncompatibleTypesType PCDATA_AND_ELEMENT
public static final IncompatibleTypesCombineException.IncompatibleTypesType ELEMENT_AND_PCDATA
public static final IncompatibleTypesCombineException.IncompatibleTypesType DIFFERENT_ELEMENTS
public IncompatibleTypesCombineException(IncompatibleTypesCombineException.IncompatibleTypesType type, com.deltaxml.XMLarray.Node inputNode, com.deltaxml.XMLarray.Node deltaNode)
type
- the type of combine error that occurredinputNode
- the node in the input file involved in the errordeltaNode
- the node in the delta file involved in the errorpublic com.deltaxml.XMLarray.Node getInputElem()
public com.deltaxml.XMLarray.Node getDeltaElem()
Copyright © 2001-2018 DeltaXML Ltd. All Rights Reserved.