org.apache.taglibs.xtags.xpath
Class ParseTag

java.lang.Object
  extended by javax.servlet.jsp.tagext.TagSupport
      extended by javax.servlet.jsp.tagext.BodyTagSupport
          extended by org.apache.taglibs.xtags.xpath.AbstractBodyTag
              extended by org.apache.taglibs.xtags.xpath.ParseTag
All Implemented Interfaces:
java.io.Serializable, javax.servlet.jsp.tagext.BodyTag, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.Tag

public class ParseTag
extends AbstractBodyTag

A tag which parses its body as an XML Document and defines a variable

Author:
James Strachan
See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.servlet.jsp.tagext.BodyTagSupport
bodyContent
 
Fields inherited from class javax.servlet.jsp.tagext.TagSupport
pageContext
 
Fields inherited from interface javax.servlet.jsp.tagext.BodyTag
EVAL_BODY_BUFFERED, EVAL_BODY_TAG
 
Fields inherited from interface javax.servlet.jsp.tagext.IterationTag
EVAL_BODY_AGAIN
 
Fields inherited from interface javax.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
 
Constructor Summary
ParseTag()
           
 
Method Summary
protected  void defineVariable(org.dom4j.Document document)
           
 int doAfterBody()
           
 int doStartTag()
           
 java.lang.String getId()
          Getter for property id.
protected  org.dom4j.io.SAXReader getSAXReader()
           
 boolean getValidate()
           
 void release()
           
 void setId(java.lang.String id)
          Setter for property id.
 void setReader(java.io.Reader reader)
           
 void setUri(java.lang.String uri)
           
 void setUrl(java.lang.String url)
           
 void setURL(java.net.URL url)
           
 void setValidate(boolean validate)
           
 
Methods inherited from class org.apache.taglibs.xtags.xpath.AbstractBodyTag
handleException, logError, logError, logInfo
 
Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport
doEndTag, doInitBody, getBodyContent, getPreviousOut, setBodyContent
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
findAncestorWithClass, getParent, getValue, getValues, removeValue, setPageContext, setParent, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.servlet.jsp.tagext.Tag
getParent, setPageContext, setParent
 

Constructor Detail

ParseTag

public ParseTag()
Method Detail

doStartTag

public int doStartTag()
               throws javax.servlet.jsp.JspException
Specified by:
doStartTag in interface javax.servlet.jsp.tagext.Tag
Overrides:
doStartTag in class javax.servlet.jsp.tagext.BodyTagSupport
Throws:
javax.servlet.jsp.JspException

doAfterBody

public int doAfterBody()
                throws javax.servlet.jsp.JspException
Specified by:
doAfterBody in interface javax.servlet.jsp.tagext.IterationTag
Overrides:
doAfterBody in class javax.servlet.jsp.tagext.BodyTagSupport
Throws:
javax.servlet.jsp.JspException

release

public void release()
Specified by:
release in interface javax.servlet.jsp.tagext.Tag
Overrides:
release in class javax.servlet.jsp.tagext.BodyTagSupport

getId

public java.lang.String getId()
Getter for property id.

Overrides:
getId in class javax.servlet.jsp.tagext.TagSupport
Returns:
Value of property id.

setId

public void setId(java.lang.String id)
Setter for property id.

Overrides:
setId in class javax.servlet.jsp.tagext.TagSupport
Parameters:
id - New value of property id.

setURL

public void setURL(java.net.URL url)

setUrl

public void setUrl(java.lang.String url)
            throws java.io.IOException
Throws:
java.io.IOException

setUri

public void setUri(java.lang.String uri)
            throws java.io.IOException
Throws:
java.io.IOException

setReader

public void setReader(java.io.Reader reader)

getValidate

public boolean getValidate()

setValidate

public void setValidate(boolean validate)

getSAXReader

protected org.dom4j.io.SAXReader getSAXReader()
                                       throws org.xml.sax.SAXException
Throws:
org.xml.sax.SAXException

defineVariable

protected void defineVariable(org.dom4j.Document document)


Copyright ? 2000-2004 The Apache Software Foundation. All Rights Reserved.