net.sf.xmlmatcher.rex
Class PositionsGraphMatcher
java.lang.Object
net.sf.xmlmatcher.rex.PositionsGraphMatcher
public class PositionsGraphMatcher
- extends java.lang.Object
Method Summary |
static void |
matchChildren(org.w3c.dom.Element pattern,
PositionsGraph patternGraph,
org.w3c.dom.Element parentSymbol,
Matcher matcher)
Match element content (children) of given element with pattern respresented by PositionsGraph |
static void |
matchSingle(org.w3c.dom.Element pattern,
PositionsGraph patternGraph,
org.w3c.dom.Element parentSymbol,
org.w3c.dom.Element symbol,
Matcher matcher)
Match single symbol agains given pattern |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PositionsGraphMatcher
public PositionsGraphMatcher()
matchChildren
public static void matchChildren(org.w3c.dom.Element pattern,
PositionsGraph patternGraph,
org.w3c.dom.Element parentSymbol,
Matcher matcher)
throws XMLMismatchException,
InvalidTemplateException
- Match element content (children) of given element with pattern respresented by PositionsGraph
- Parameters:
pattern
- template element (for diagnostic messages)patternGraph
- [nullable] template graph (pattern)parentSymbol
- parent element of actual document
- Throws:
XMLMismatchException
InvalidTemplateException
matchSingle
public static void matchSingle(org.w3c.dom.Element pattern,
PositionsGraph patternGraph,
org.w3c.dom.Element parentSymbol,
org.w3c.dom.Element symbol,
Matcher matcher)
throws XMLMismatchException,
InvalidTemplateException
- Match single symbol agains given pattern
- Throws:
XMLMismatchException
InvalidTemplateException
Copyright © 2007. All Rights Reserved.