public class IgnoreTagMessageDiffListener extends Object implements MessageDiffListener
MessageDiffListener implementation that ignores differences for selected tags.| Constructor and Description |
|---|
IgnoreTagMessageDiffListener()
Creates an empty listener.
|
IgnoreTagMessageDiffListener(int[] tags)
Creates a listener initialized with the supplied tags.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addTag(int tag)
Adds a tag to the ignore list.
|
boolean |
hasTag(int tag)
Returns whether the tag is configured to be ignored.
|
boolean |
ignoreDiffGroupTagValue(int numInGroupTag,
int instanceIdx,
int tag,
String value,
String value2)
Ignores the difference when the tag is configured to be ignored.
|
boolean |
ignoreDiffTagValue(int tag,
String value,
String value2)
Ignores the difference when the tag is configured to be ignored.
|
public IgnoreTagMessageDiffListener()
public IgnoreTagMessageDiffListener(int[] tags)
tags - tags to ignoreNullPointerException - if tags is nullpublic void addTag(int tag)
tag - tag to ignorepublic boolean hasTag(int tag)
tag - tag numbertrue if the tag is ignored, false otherwisepublic boolean ignoreDiffTagValue(int tag,
String value,
String value2)
ignoreDiffTagValue in interface MessageDiffListenertag - tag number being comparedvalue - first valuevalue2 - second valuetrue if the tag is ignored, false otherwisepublic boolean ignoreDiffGroupTagValue(int numInGroupTag,
int instanceIdx,
int tag,
String value,
String value2)
ignoreDiffGroupTagValue in interface MessageDiffListenernumInGroupTag - leading tag of the repeating groupinstanceIdx - zero-based index of the repeating-group instancetag - tag number being comparedvalue - first valuevalue2 - second valuetrue if the tag is ignored, false otherwiseCopyright © 2005–2026 Onix Solutions. All rights reserved.