net.sf.xmlmatcher
Interface MatchingStrategy
- All Known Implementing Classes:
- AngleMatchingStrategy, ChildrenOkMatchingStrategy, ElementSequenceMatchingStrategy, ElementSetMatchingStrategy, EqualTextValueMatchingStrategy, FloatingNumbersMatchingStrategy, RegExElementsMatchingStrategy, RegExTextMatchingStrategy, TextValueMatchingStrategy, TimeOfDayMatchingStrategy, WildcardMatchingStrategy
public interface MatchingStrategy
Basic features of any matching strategy
Method Summary |
void |
matchContent(org.w3c.dom.Element template,
org.w3c.dom.Element actual,
Matcher matcher)
|
boolean |
select(org.w3c.dom.Element template,
boolean hasChildren)
|
select
boolean select(org.w3c.dom.Element template,
boolean hasChildren)
throws InvalidTemplateException
- Parameters:
template
- template Element to comparehasChildren
- true if given template element has children elements
- Returns:
- true if this strategy can handle comparison of given template to some actual element
- Throws:
InvalidTemplateException
matchContent
void matchContent(org.w3c.dom.Element template,
org.w3c.dom.Element actual,
Matcher matcher)
throws MatcherException
- Parameters:
template
- Elementactual
- Elementmatcher
- Matcher (allows to match deeper levels)
- Throws:
MatcherException
Copyright © 2007. All Rights Reserved.