|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.xmlmatcher.matcher.ChaingedMatcherListener
public class ChaingedMatcherListener
Chain of listeners
Constructor Summary | |
---|---|
ChaingedMatcherListener(MatcherListener listener)
|
|
ChaingedMatcherListener(MatcherListener listener1,
MatcherListener listener2)
|
Method Summary | |
---|---|
void |
addListener(MatcherListener listener)
|
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 |
boolean |
isEmpty()
|
void |
removeListener(MatcherListener listener)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ChaingedMatcherListener(MatcherListener listener)
public ChaingedMatcherListener(MatcherListener listener1, MatcherListener listener2)
Method Detail |
---|
public void addListener(MatcherListener listener)
public void removeListener(MatcherListener listener)
public boolean isEmpty()
public void beforeMatch(org.w3c.dom.Element template, org.w3c.dom.Element actual) throws MatcherException
MatcherListener
beforeMatch
in interface MatcherListener
MatcherException
- callback may throw this exception to signal mismatch right awaypublic void afterMismatch(org.w3c.dom.Element template, org.w3c.dom.Element actual)
MatcherListener
afterMismatch
in interface MatcherListener
public void afterMatch(org.w3c.dom.Element template, org.w3c.dom.Element actual) throws MatcherException
MatcherListener
afterMatch
in interface MatcherListener
MatcherException
- callback may throw this exception to override successful match
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |