net.sf.jameleon
Class ParamTypeTag

java.lang.Object
  extended by org.apache.commons.jelly.TagSupport
      extended by net.sf.jameleon.AbstractParamElementTag
          extended by net.sf.jameleon.ParamTypeTag
All Implemented Interfaces:
Tag

public class ParamTypeTag
extends AbstractParamElementTag

Gives the parameter a variable type. For example:

      <param>
          <param-name>someName</param-name>
          <param-value>foo</param-value>
          <param-type>text</param-type>
      </param>
 
It's up to the function tag to interpret the param-type. For example, in an HTTP plug-in some types might be: checkbox, select, textarea, and etc ...

Tag Name: <param-type>

Field Summary
 
Fields inherited from class net.sf.jameleon.AbstractParamElementTag
decodeXMLToText, fromVariable, parentTag, text
 
Fields inherited from class org.apache.commons.jelly.TagSupport
body, context, hasTrimmed, parent, shouldTrim
 
Constructor Summary
ParamTypeTag()
           
 
Method Summary
 void doTag(XMLOutput out)
          An implementation of the doTag method provided by the TagSupport class.
protected  void validate()
          Used to validate everything is set up correctly.
 
Methods inherited from class net.sf.jameleon.AbstractParamElementTag
setDecodeXMLToText, setFromVariable, validateParam, validateParentTag
 
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
 

Constructor Detail

ParamTypeTag

public ParamTypeTag()
Method Detail

doTag

public void doTag(XMLOutput out)
           throws MissingAttributeException,
                  JellyTagException
Description copied from class: AbstractParamElementTag
An implementation of the doTag method provided by the TagSupport class. Maps the value in the fromVariable over to the original variable name, toVariable.

Specified by:
doTag in interface Tag
Overrides:
doTag in class AbstractParamElementTag
Throws:
MissingAttributeException
JellyTagException

validate

protected void validate()
                 throws MissingAttributeException,
                        JellyTagException
Description copied from class: AbstractParamElementTag
Used to validate everything is set up correctly.

Overrides:
validate in class AbstractParamElementTag
Throws:
MissingAttributeException - - When a required attribute isn't set.
JellyTagException - - When this tag is used out of context.


Copyright © 2003-2008 Christian Hargraves. All Rights Reserved.