|
||||||||||
| 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.core.GetStaticTag
public class GetStaticTag
A tag which can retrieve the value of a static field of a given class.
The following attributes are required:
<j:getStatic var="closeOperation" className="javax.swing.JFrame"
field="EXIT_ON_CLOSE"/>
| Field Summary | |
|---|---|
private java.lang.String |
className
The name of the class containing the static field. |
private java.lang.String |
field
The name of the static field to retrieve. |
private java.lang.String |
var
The variable to which to assign the resulting value. |
| Fields inherited from class org.apache.commons.jelly.TagSupport |
|---|
body, context, hasTrimmed, parent, shouldTrim |
| Constructor Summary | |
|---|---|
GetStaticTag()
|
|
| Method Summary | |
|---|---|
void |
doTag(XMLOutput output)
Evaluates this tag after all the tags properties have been initialized. |
void |
setClassName(java.lang.String className)
Sets the fully qualified name of the class containing the static field. |
void |
setField(java.lang.String field)
Sets the name of the field to retrieve. |
void |
setVar(java.lang.String var)
Sets the name of the variable exported by this tag. |
| 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 java.lang.String var
private java.lang.String field
private java.lang.String className
| Constructor Detail |
|---|
public GetStaticTag()
| Method Detail |
|---|
public void setVar(java.lang.String var)
var - The variable name.public void setField(java.lang.String field)
method - The method namepublic void setClassName(java.lang.String className)
className - The name of the class.
public void doTag(XMLOutput output)
throws JellyTagException
Tag
JellyTagException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||