org.ujac.web.tag
Class SetPropertyTag

java.lang.Object
  extended by javax.servlet.jsp.tagext.TagSupport
      extended by javax.servlet.jsp.tagext.BodyTagSupport
          extended by org.ujac.web.tag.BaseTag
              extended by org.ujac.web.tag.SetPropertyTag
All Implemented Interfaces:
Serializable, BodyTag, IterationTag, Tag, TemplateContextHolder

public class SetPropertyTag
extends BaseTag

Name: SetPropertyTag
Description: Class handling the set-property tag.

Author:
lauerc
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.ujac.web.tag.BaseTag
log
 
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
SetPropertyTag()
           
 
Method Summary
 int doEndTag()
           
 String getName()
          Getter method for the the property name.
 String getType()
          Getter method for the the property type.
 boolean isStructureChecksDisabled()
           
 void setName(String name)
          Setter method for the the property name.
 void setType(String type)
          Setter method for the the property type.
protected  Object typeCastValue(TemplateContext tctx, String text, String type)
          Gets a well typed value for the given one.
 
Methods inherited from class org.ujac.web.tag.BaseTag
clearTagAttributes, doStartTag, getParent, getTagAttribute, getTagAttributes, getTemplateContext, release, removeTagAttribute, setAttribute, setTagAttribute, writeAttributes
 
Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport
doAfterBody, 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
 

Constructor Detail

SetPropertyTag

public SetPropertyTag()
Method Detail

getName

public String getName()
Getter method for the the property name.

Returns:
The current value of property name.

setName

public void setName(String name)
Setter method for the the property name.

Parameters:
name - The value to set for the property name.

getType

public String getType()
Getter method for the the property type.

Returns:
The current value of property type.

setType

public void setType(String type)
Setter method for the the property type.

Parameters:
type - The value to set for the property type.

doEndTag

public int doEndTag()
             throws JspException
Specified by:
doEndTag in interface Tag
Overrides:
doEndTag in class BodyTagSupport
Throws:
JspException
See Also:
BodyTagSupport.doEndTag()

isStructureChecksDisabled

public boolean isStructureChecksDisabled()
See Also:
BaseDocumentTag.isStructureChecksDisabled()

typeCastValue

protected Object typeCastValue(TemplateContext tctx,
                               String text,
                               String type)
                        throws JspException
Gets a well typed value for the given one.

Parameters:
text - The text to parse the value from.
type - The type name to cast to.
Returns:
The correctly typed value.
Throws:
DocumentHandlerException - In case the type conversion failed.
JspException


Copyright © 2003-2004 UJAC.org. All Rights Reserved.