public class XmlCompareMode extends Object
Modifier and Type | Field and Description |
---|---|
private boolean |
checkComments |
private boolean |
joinCData |
private boolean |
joinComment |
private boolean |
joinText |
private boolean |
normalizeSpaces |
Constructor and Description |
---|
XmlCompareMode()
The constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isCheckComments()
This method determines how
Comment s are compared. |
boolean |
isJoinCData()
This method determines if subsequent
CDATASection -nodes should be treated as one
single CDATASection -node when comparing XML. |
boolean |
isJoinComment()
|
boolean |
isJoinText()
|
boolean |
isNormalizeSpaces()
This method determines how to deal with whitespace-characters
' ' ,
'\t' ,'\r' , and '\n' when comparing content of
Text (or CDATASection ). |
void |
setCheckComments(boolean checkComments) |
void |
setJoinCData(boolean joinCData) |
void |
setJoinComment(boolean joinComments) |
void |
setJoinText(boolean joinText) |
void |
setNormalizeSpaces(boolean normalizeSpaces) |
private boolean checkComments
isCheckComments()
private boolean normalizeSpaces
isNormalizeSpaces()
private boolean joinText
isJoinText()
private boolean joinCData
isJoinCData()
private boolean joinComment
isJoinComment()
public boolean isCheckComments()
Comment
s are compared.true
if comments will be compared, false
to ignore comments.public void setCheckComments(boolean checkComments)
checkComments
- is the checkComments to setpublic boolean isNormalizeSpaces()
' '
,
'\t'
,'\r'
, and '\n'
when comparing content of
Text
(or CDATASection
).true
if leading and trailing whitespace-characters will be ignored around
line-breaks (breaking and indentation does NOT matter) and false
if all
whitespace-characters have to be equal.public void setNormalizeSpaces(boolean normalizeSpaces)
normalizeSpaces
- is the normalizeSpaces to setpublic boolean isJoinText()
Text
-nodes should be treated as one single
Text
-node when comparing XML. The default
is
true
. If both joinText
joinCData
are set,
Text
and CDATASection
are treated as equal, what means that all
text between nodes is treated as single text no matter what node-structure is used to represent it.public void setJoinText(boolean joinText)
joinText
- is the joinText to setpublic boolean isJoinCData()
CDATASection
-nodes should be treated as one
single CDATASection
-node when comparing XML. The default
is
true
. If both joinText
joinCData
are set,
Text
and CDATASection
are treated as equal, what means that all
text between nodes is treated as single text no matter what node-structure is used to represent it.true
if the content of CDATASection
-nodes should joined before
comparison, false
if each CDATASection
-node is compared
separately.public void setJoinCData(boolean joinCData)
joinCData
- is the joinCData to setpublic boolean isJoinComment()
public void setJoinComment(boolean joinComments)
joinComments
- is the joinComments to setCopyright © 2001–2014 mmm-Team. All rights reserved.