org.apache.commons.jelly.tags.core
Class ArgTag

java.lang.Object
  extended by org.apache.commons.jelly.TagSupport
      extended by org.apache.commons.jelly.tags.core.BaseClassLoaderTag
          extended by org.apache.commons.jelly.tags.core.ArgTag
All Implemented Interfaces:
Tag

public class ArgTag
extends BaseClassLoaderTag

An argument to a NewTag or InvokeTag. This tag MUST be enclosed within an ArgTagParent implementation.

Version:
$Revision: 1807798 $
Author:
Rodney Waldhoff

Field Summary
private static java.util.Map converterMap
          My bag of converters, by target Class
private  java.lang.String typeString
          The name of the parameter type, if any.
private  java.lang.Object value
          The value of the parameter, if any
 
Fields inherited from class org.apache.commons.jelly.tags.core.BaseClassLoaderTag
classLoader, useContextClassLoader
 
Fields inherited from class org.apache.commons.jelly.TagSupport
body, context, hasTrimmed, parent, shouldTrim
 
Constructor Summary
ArgTag()
           
 
Method Summary
private  void assertNotNull(java.lang.Object value)
           
private static java.lang.Object convert(java.lang.Class klass, java.lang.Object value)
           
 void doTag(XMLOutput output)
          Evaluates this tag after all the tags properties have been initialized.
private  boolean isInstanceOf(java.lang.Class klass, java.lang.Object value)
           
 void setType(java.lang.String type)
          The name of the argument class or type, if any.
 void setValue(java.lang.Object value)
          The (possibly null) value of this argument.
 
Methods inherited from class org.apache.commons.jelly.tags.core.BaseClassLoaderTag
getClassLoader, getUseContextClassLoader, setClassLoader, setUseContextClassLoader
 
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
 

Field Detail

typeString

private java.lang.String typeString
The name of the parameter type, if any.


value

private java.lang.Object value
The value of the parameter, if any


converterMap

private static java.util.Map converterMap
My bag of converters, by target Class

Constructor Detail

ArgTag

public ArgTag()
Method Detail

setType

public void setType(java.lang.String type)
The name of the argument class or type, if any. This may be a fully specified class name or a primitive type name (boolean, int, double, etc.).


setValue

public void setValue(java.lang.Object value)
The (possibly null) value of this argument.


doTag

public void doTag(XMLOutput output)
           throws JellyTagException
Description copied from interface: Tag
Evaluates this tag after all the tags properties have been initialized.

Throws:
JellyTagException

assertNotNull

private void assertNotNull(java.lang.Object value)
                    throws JellyTagException
Throws:
JellyTagException

isInstanceOf

private boolean isInstanceOf(java.lang.Class klass,
                             java.lang.Object value)

convert

private static java.lang.Object convert(java.lang.Class klass,
                                        java.lang.Object value)
                                 throws JellyTagException
Throws:
JellyTagException