Top Description Fields Constructors Methods
org.eclipse.persistence.platform.xml

public Class XMLComparer

extends Object
Class Inheritance
Imports
org.w3c.dom.Attr, .Comment, .Document, .DocumentFragment, .DocumentType, .Element, .EntityReference, .NamedNodeMap, .Node, .NodeList, .ProcessingInstruction, .Text

This class is used to compare if two DOM nodes are equal.

Field Summary

Modifier and TypeField and Description
private boolean

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected boolean
isAttributeEqual(Attr control, Attr test)

private boolean
private boolean
private boolean
private boolean
private boolean
private boolean
public boolean
public boolean

Returns:

Return true if the nodes are equal, else false.
isNodeEqual
(Node
The first node in the comparison.
control
,
Node
The second node in the comparison.
test
)

Compare two DOM nodes.

private boolean
isNodeInNodeList(Node node, NodeList nodeList)

private boolean
private boolean
private boolean
isStringEqual(String control, String test)

private boolean
isTextEqual(Text control, Text test)

public void
setIgnoreOrder(boolean ignoreOrder)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

ignoreOrderback to summary
private boolean ignoreOrder

Constructor Detail

XMLComparerback to summary
public XMLComparer()

Method Detail

isAttributeEqualback to summary
protected boolean isAttributeEqual(Attr control, Attr test)
isCommentEqualback to summary
private boolean isCommentEqual(Comment control, Comment test)
isDocumentEqualback to summary
private boolean isDocumentEqual(Document control, Document test)
isDocumentFragmentEqualback to summary
private boolean isDocumentFragmentEqual(DocumentFragment control, DocumentFragment test)
isDocumentTypeEqualback to summary
private boolean isDocumentTypeEqual(DocumentType control, DocumentType test)
isElementEqualback to summary
private boolean isElementEqual(Element control, Element test)
isEntityReferenceEqualback to summary
private boolean isEntityReferenceEqual(EntityReference control, EntityReference test)
isIgnoreOrderback to summary
public boolean isIgnoreOrder()
isNodeEqualback to summary
public boolean isNodeEqual(Node control, Node test)

Compare two DOM nodes.

Parameters
control:Node

The first node in the comparison.

test:Node

The second node in the comparison.

Returns:boolean

Return true if the nodes are equal, else false.

isNodeInNodeListback to summary
private boolean isNodeInNodeList(Node node, NodeList nodeList)
isNodeListEqualback to summary
private boolean isNodeListEqual(NodeList control, NodeList test)
isProcessingInstructionEqualback to summary
private boolean isProcessingInstructionEqual(ProcessingInstruction control, ProcessingInstruction test)
isStringEqualback to summary
private boolean isStringEqual(String control, String test)
isTextEqualback to summary
private boolean isTextEqual(Text control, Text test)
setIgnoreOrderback to summary
public void setIgnoreOrder(boolean ignoreOrder)