| |
|
| java.lang.Object org.apache.commons.jelly.TagSupport org.apache.commons.jelly.tags.core.GetStaticTag
GetStaticTag | public class GetStaticTag extends TagSupport (Code) | | A tag which can retrieve the value of a static field of a given class.
The following attributes are required:
- var - The variable to which to assign the resulting value.
- field - The name of the static field to retrieve.
- className - The name of the class containing the static field.
Example usage:
<j:getStatic var="closeOperation" className="javax.swing.JFrame"
field="EXIT_ON_CLOSE"/>
version: $Revision: 155420 $ |
Method Summary | |
public void | doTag(XMLOutput output) | public void | setClassName(String className) Sets the fully qualified name of the class containing the static field. | public void | setField(String field) Sets the name of the field to retrieve. | public void | setVar(String var) Sets the name of the variable exported by this tag. |
setClassName | public void setClassName(String className)(Code) | | Sets the fully qualified name of the class containing the static field.
Parameters: className - The name of the class. |
setField | public void setField(String field)(Code) | | Sets the name of the field to retrieve.
Parameters: method - The method name |
setVar | public void setVar(String var)(Code) | | Sets the name of the variable exported by this tag.
Parameters: var - The variable name. |
|
|
|