|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.commons.jelly.TagSupport
org.apache.commons.jelly.tags.define.DefineTagSupport
org.apache.commons.jelly.tags.define.BeanTag
public class BeanTag
Binds a Java bean to the given named Jelly tag so that the attributes of the tag set the bean properties..
Field Summary | |
---|---|
private java.util.Map |
attributes
the attribute definitions for this dynamic tag |
private java.lang.ClassLoader |
classLoader
the ClassLoader used to load beans |
private java.lang.String |
className
the Java class name to use for the tag |
private static java.util.Map |
EMPTY_MAP
An empty Map as I think Collections.EMPTY_MAP is only JDK 1.3 onwards |
private static org.apache.commons.logging.Log |
log
The Log to which logging calls will be made. |
private java.lang.String |
name
the name of the tag to create |
private java.lang.String |
varAttribute
the name of the attribute used for the variable name |
Fields inherited from class org.apache.commons.jelly.TagSupport |
---|
body, context, hasTrimmed, parent, shouldTrim |
Constructor Summary | |
---|---|
BeanTag()
|
Method Summary | |
---|---|
void |
addAttribute(org.apache.commons.jelly.impl.Attribute attribute)
Adds a new attribute definition to this dynamic tag |
void |
doTag(org.apache.commons.jelly.XMLOutput output)
|
java.lang.ClassLoader |
getClassLoader()
|
protected java.lang.reflect.Method |
getInvokeMethod(java.lang.Class theClass)
Extracts the invoke method for the class if one is used. |
void |
setClassLoader(java.lang.ClassLoader classLoader)
Sets the ClassLoader to use to load the class. |
void |
setClassName(java.lang.String className)
Sets the Java class name to use for the tag |
void |
setName(java.lang.String name)
Sets the name of the tag to create |
void |
setVarAttribute(java.lang.String varAttribute)
Sets the name of the attribute used to define the bean variable that this dynamic tag will output its results as. |
Methods inherited from class org.apache.commons.jelly.tags.define.DefineTagSupport |
---|
getTagLibrary |
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 |
---|
private static final org.apache.commons.logging.Log log
private static final java.util.Map EMPTY_MAP
private java.lang.String name
private java.lang.String className
private java.lang.ClassLoader classLoader
private java.lang.String varAttribute
private java.util.Map attributes
Constructor Detail |
---|
public BeanTag()
Method Detail |
---|
public void addAttribute(org.apache.commons.jelly.impl.Attribute attribute)
public void doTag(org.apache.commons.jelly.XMLOutput output) throws org.apache.commons.jelly.MissingAttributeException, org.apache.commons.jelly.JellyTagException
org.apache.commons.jelly.MissingAttributeException
org.apache.commons.jelly.JellyTagException
public void setName(java.lang.String name)
public void setClassName(java.lang.String className)
public void setClassLoader(java.lang.ClassLoader classLoader)
public java.lang.ClassLoader getClassLoader()
public void setVarAttribute(java.lang.String varAttribute)
protected java.lang.reflect.Method getInvokeMethod(java.lang.Class theClass)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |