org.apache.taglibs.xtags.xpath
Class ElementTag

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

public class ElementTag
extends AbstractBodyTag

A tag to produce an XML element which can contain other attributes or elements like the <xsl:element> tag.

Version:
$Revision$
Author:
James Strachan
See Also:
Serialized Form

Field Summary
protected static boolean TRIM_VALUES
          Should attribute values be trimmed of whitespace?
 
Fields inherited from class javax.servlet.jsp.tagext.BodyTagSupport
bodyContent
 
Fields inherited from class javax.servlet.jsp.tagext.TagSupport
id, 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
ElementTag()
           
 
Method Summary
 void addAttribute(java.lang.String name)
           
 int doAfterBody()
           
 int doStartTag()
           
 java.lang.String getName()
          Getter for property name.
protected  void printAttribute(javax.servlet.jsp.JspWriter out, java.lang.String attributeName)
           
protected  void printAttributes(javax.servlet.jsp.JspWriter out)
           
 void release()
           
 void setAttributeValue(java.lang.String name, java.lang.String value)
           
 void setName(java.lang.String name)
          Setter for property name.
 
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, getId, getParent, getValue, getValues, removeValue, setId, 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
 

Field Detail

TRIM_VALUES

protected static final boolean TRIM_VALUES
Should attribute values be trimmed of whitespace?

See Also:
Constant Field Values
Constructor Detail

ElementTag

public ElementTag()
Method Detail

addAttribute

public void addAttribute(java.lang.String name)

setAttributeValue

public void setAttributeValue(java.lang.String name,
                              java.lang.String value)

release

public void release()

doStartTag

public int doStartTag()
               throws javax.servlet.jsp.JspException
Throws:
javax.servlet.jsp.JspException

doAfterBody

public int doAfterBody()
                throws javax.servlet.jsp.JspException
Throws:
javax.servlet.jsp.JspException

getName

public java.lang.String getName()
Getter for property name.

Returns:
Value of property name.

setName

public void setName(java.lang.String name)
Setter for property name.

Parameters:
name - New value of property name.

printAttributes

protected void printAttributes(javax.servlet.jsp.JspWriter out)
                        throws java.io.IOException
Throws:
java.io.IOException

printAttribute

protected void printAttribute(javax.servlet.jsp.JspWriter out,
                              java.lang.String attributeName)
                       throws java.io.IOException
Throws:
java.io.IOException


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