|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.mmm.util.xml.api.XmlCompareMode
public class XmlCompareMode
This class is a simple bean that represents the mode when comparing XML.
| Field Summary | |
|---|---|
private boolean |
checkComments
|
private boolean |
joinCData
|
private boolean |
joinComment
|
private boolean |
joinText
|
private boolean |
normalizeSpaces
|
| Constructor Summary | |
|---|---|
XmlCompareMode()
The constructor. |
|
| Method Summary | |
|---|---|
boolean |
isCheckComments()
This method determines how Comments are compared. |
boolean |
isJoinCData()
This method determines if subsequent CDATASection-nodes
should be treated as one single CDATASection-node when
comparing XML. |
boolean |
isJoinComment()
This method determines if subsequent Comment-nodes
should be treated as one single Comment-node when
comparing XML. |
boolean |
isJoinText()
This method determines if subsequent Text-nodes should
be treated as one single Text-node when comparing XML. |
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)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private boolean checkComments
isCheckComments()private boolean normalizeSpaces
isNormalizeSpaces()private boolean joinText
isJoinText()private boolean joinCData
isJoinCData()private boolean joinComment
isJoinComment()| Constructor Detail |
|---|
public XmlCompareMode()
| Method Detail |
|---|
public boolean isCheckComments()
Comments 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.
true if the content of Text-nodes
should joined before comparison, false if each
Text-node is compared separately.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()
Comment-nodes
should be treated as one single Comment-node when
comparing XML.
true if the content of Comment
-nodes should joined before comparison, false if each
Comment-node is compared separately.public void setJoinComment(boolean joinComments)
joinComments - is the joinComments to set
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||