net.sf.xmlmatcher.strategy
Class CountingMatcherListener
java.lang.Object
net.sf.xmlmatcher.strategy.CountingMatcherListener
- All Implemented Interfaces:
- MatcherListener
public final class CountingMatcherListener
- extends java.lang.Object
- implements MatcherListener
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 |
int |
getDepth()
|
void |
reset()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CountingMatcherListener
public CountingMatcherListener()
getDepth
public int getDepth()
beforeMatch
public void beforeMatch(org.w3c.dom.Element template,
org.w3c.dom.Element actual)
- Description copied from interface:
MatcherListener
- Called before matcher starts matching two elements
- Specified by:
beforeMatch
in interface MatcherListener
afterMatch
public void afterMatch(org.w3c.dom.Element template,
org.w3c.dom.Element actual)
- Description copied from interface:
MatcherListener
- Called after matcher successfully matched two elements
- Specified by:
afterMatch
in interface MatcherListener
afterMismatch
public void afterMismatch(org.w3c.dom.Element template,
org.w3c.dom.Element actual)
- Description copied from interface:
MatcherListener
- Called by matcher when two elements do not match, right before MatcherException is thrown
- Specified by:
afterMismatch
in interface MatcherListener
reset
public void reset()
Copyright © 2007. All Rights Reserved.