net.sf.xmlmatcher.eq
Class EquivalenceChecker
java.lang.Object
net.sf.xmlmatcher.eq.EquivalenceChecker
- All Implemented Interfaces:
- MatcherListener
public class EquivalenceChecker
- extends java.lang.Object
- implements MatcherListener
Implementing as listener instead of Matcher to get notifications when matching fails for some XML branch.
Method Summary |
void |
afterMatch(org.w3c.dom.Element template,
org.w3c.dom.Element actual)
Called after matcher successfully matched two elements |
void |
afterMismatch(org.w3c.dom.Element template,
org.w3c.dom.Element actual)
Called by matcher when two elements do not match, right before MatcherException is thrown |
void |
beforeMatch(org.w3c.dom.Element template,
org.w3c.dom.Element actual)
Called before matcher starts matching two elements |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EQU_TOLERANCE_PROCESSING_INSTRUCTON
public static final java.lang.String EQU_TOLERANCE_PROCESSING_INSTRUCTON
- See Also:
- Constant Field Values
EQU_ATTR
public static final java.lang.String EQU_ATTR
- See Also:
- Constant Field Values
EquivalenceChecker
public EquivalenceChecker()
beforeMatch
public void beforeMatch(org.w3c.dom.Element template,
org.w3c.dom.Element actual)
- Called before matcher starts matching two elements
- Specified by:
beforeMatch
in interface MatcherListener
- Throws:
MatcherException
- callback may throw this exception to signal mismatch right away
afterMatch
public void afterMatch(org.w3c.dom.Element template,
org.w3c.dom.Element actual)
throws EquValuesAreDifferentException
- Called after matcher successfully matched two elements
- Specified by:
afterMatch
in interface MatcherListener
- Throws:
MatcherException
- callback may throw this exception to override successful match
EquValuesAreDifferentException
afterMismatch
public void afterMismatch(org.w3c.dom.Element template,
org.w3c.dom.Element actual)
- Called by matcher when two elements do not match, right before MatcherException is thrown
- Specified by:
afterMismatch
in interface MatcherListener
Copyright © 2007. All Rights Reserved.