net.sf.xmlmatcher
Interface Matcher
- All Known Implementing Classes:
- AttributesMatcher, JsProcessor, MatcherChain, MatcherImpl, StrategyBasedMatcher, TagNamesMatcher
public interface Matcher
Field Summary |
static java.lang.String |
XML_NAMESPACE_URI
Matcher own namespace used by Matcher-specific elements and attributes |
XML_NAMESPACE_URI
static final java.lang.String XML_NAMESPACE_URI
- Matcher own namespace used by Matcher-specific elements and attributes
- See Also:
- Constant Field Values
match
void match(org.w3c.dom.Element template,
org.w3c.dom.Element actual)
throws MatcherException
- Compare two XML trees specified by given elements.
Verifies that template and actual elements have the same tag name and namespace, then
invokes most appropriate comparator based on template element.
- Parameters:
template
- Template Elementactual
- Actual Element (instance)
- Throws:
MatcherException
getTopLevelMatcher
Matcher getTopLevelMatcher()
- Matchers may be organized into tree using MatcherChain class.
When this happens each matcher in the tree stores reference to top-level matcher
(usually instance of MatcherChain).
setTopLevelMatcher
void setTopLevelMatcher(Matcher matcher)
- See Also:
getTopLevelMatcher()
addListener
void addListener(MatcherListener listener)
removeListener
void removeListener(MatcherListener listener)
Copyright © 2007. All Rights Reserved.