org.apache.commons.jelly.tags.xmlunit
Class XMLUnitTagSupport

java.lang.Object
  extended byorg.apache.commons.jelly.TagSupport
      extended byorg.apache.commons.jelly.xpath.XPathTagSupport
          extended byorg.apache.commons.jelly.tags.junit.AssertTagSupport
              extended byorg.apache.commons.jelly.tags.xmlunit.XMLUnitTagSupport
All Implemented Interfaces:
org.apache.commons.jelly.Tag
Direct Known Subclasses:
ActualTag, AssertDocumentsEqualTag, ExpectedTag

public abstract class XMLUnitTagSupport
extends org.apache.commons.jelly.tags.junit.AssertTagSupport


Field Summary
 
Fields inherited from class org.apache.commons.jelly.TagSupport
body, context, hasTrimmed, parent, shouldTrim
 
Constructor Summary
XMLUnitTagSupport()
           
 
Method Summary
protected abstract  org.dom4j.io.SAXReader createSAXReader()
          Factory method to create a new SAXReader
 org.dom4j.io.SAXReader getSAXReader()
           
protected  org.dom4j.Document parse(java.lang.Object source)
          Parses the given source
protected  org.dom4j.Document parseBody()
          Parses the body of this tag and returns the parsed document
 void setSAXReader(org.dom4j.io.SAXReader saxReader)
          Sets the SAXReader used for parsing
 
Methods inherited from class org.apache.commons.jelly.tags.junit.AssertTagSupport
fail, fail, failNotEquals
 
Methods inherited from class org.apache.commons.jelly.xpath.XPathTagSupport
getXPathContext
 
Methods inherited from class org.apache.commons.jelly.TagSupport
findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, getBody, getBodyText, getBodyText, getContext, getParent, invokeBody, isEscapeText, isTrim, setBody, setContext, setEscapeText, setParent, setTrim, trimBody
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.commons.jelly.Tag
doTag
 

Constructor Detail

XMLUnitTagSupport

public XMLUnitTagSupport()
Method Detail

getSAXReader

public org.dom4j.io.SAXReader getSAXReader()
Returns:
the SAXReader used for parsing, creating one lazily if need be

setSAXReader

public void setSAXReader(org.dom4j.io.SAXReader saxReader)
Sets the SAXReader used for parsing


createSAXReader

protected abstract org.dom4j.io.SAXReader createSAXReader()
Factory method to create a new SAXReader


parseBody

protected org.dom4j.Document parseBody()
                                throws org.apache.commons.jelly.JellyTagException
Parses the body of this tag and returns the parsed document

Throws:
org.apache.commons.jelly.JellyTagException

parse

protected org.dom4j.Document parse(java.lang.Object source)
                            throws org.apache.commons.jelly.JellyTagException
Parses the given source

Throws:
org.apache.commons.jelly.JellyTagException


Copyright © 2002-2006 Apache Software Foundation. All Rights Reserved.