|
||||||||||
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.ant.SetPropertyTag
Tag which sets an attribute on the parent Ant Task if the given value is not null. This can be useful when setting parameters on Ant tasks, only if they have been specified via some well defined property, otherwise allowing the inbuilt default to be used.
Field Summary | |
private java.lang.Object |
defaultValue
|
private static org.apache.commons.logging.Log |
log
The Log to which logging calls will be made. |
private java.lang.String |
name
|
private java.lang.Object |
value
|
Fields inherited from class org.apache.commons.jelly.TagSupport |
body, context, hasTrimmed, parent, shouldTrim |
Constructor Summary | |
SetPropertyTag()
|
Method Summary | |
void |
doTag(org.apache.commons.jelly.XMLOutput output)
|
java.lang.Object |
getDefault()
Returns the defaultValue. |
java.lang.String |
getName()
Returns the name. |
java.lang.Object |
getValue()
Returns the value. |
void |
setDefault(java.lang.Object defaultValue)
Sets the default value to be used if the specified value is empty. |
void |
setName(java.lang.String name)
Sets the name of the Ant task property to set. |
void |
setValue(java.lang.Object value)
Sets the value of the Ant task property to set. |
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 java.lang.String name
private java.lang.Object value
private java.lang.Object defaultValue
Constructor Detail |
public SetPropertyTag()
Method Detail |
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 java.lang.String getName()
public java.lang.Object getValue()
public void setName(java.lang.String name)
name
- The name of the Ant task property to setpublic void setValue(java.lang.Object value)
value
- The value of the Ant task property to setpublic java.lang.Object getDefault()
public void setDefault(java.lang.Object defaultValue)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |