net.sf.xmlmatcher.js
Class JsProcessor

java.lang.Object
  extended by net.sf.xmlmatcher.matcher.MatcherImpl
      extended by net.sf.xmlmatcher.js.JsProcessor
All Implemented Interfaces:
Matcher

public class JsProcessor
extends MatcherImpl


Field Summary
static java.lang.String JAVASCRIPT_PROCESSING_INSTRUCTION
           
 
Fields inherited from interface net.sf.xmlmatcher.Matcher
XML_NAMESPACE_URI
 
Constructor Summary
JsProcessor()
           
 
Method Summary
 void matchElements(org.w3c.dom.Element template, org.w3c.dom.Element actual)
          Compare two XML trees specified by given elements.
 
Methods inherited from class net.sf.xmlmatcher.matcher.MatcherImpl
addListener, getTopLevelMatcher, match, removeListener, setTopLevelMatcher
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

JAVASCRIPT_PROCESSING_INSTRUCTION

public static final java.lang.String JAVASCRIPT_PROCESSING_INSTRUCTION
See Also:
Constant Field Values
Constructor Detail

JsProcessor

public JsProcessor()
Method Detail

matchElements

public void matchElements(org.w3c.dom.Element template,
                          org.w3c.dom.Element actual)
                   throws XMLMismatchException,
                          InvalidTemplateException
Description copied from class: MatcherImpl
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.

Specified by:
matchElements in class MatcherImpl
Parameters:
template - Template Element
actual - Actual Element (instance)
Throws:
XMLMismatchException
InvalidTemplateException


Copyright © 2007. All Rights Reserved.