public static class AntTransform.Param
extends java.lang.Object
| Constructor | Description |
|---|---|
Param() |
| Modifier and Type | Method | Description |
|---|---|---|
java.lang.String |
getExpression() |
Get the parameter's value
|
java.lang.String |
getName() |
Get the parameter name
|
void |
setExpression(java.lang.String expression) |
The parameter value
NOTE : was intended to be an XSL expression.
|
void |
setIf(java.lang.String ifProperty) |
Set whether this param should be used.
|
void |
setName(java.lang.String name) |
Set the parameter name.
|
void |
setProject(org.apache.tools.ant.Project project) |
Set the current project
|
void |
setUnless(java.lang.String unlessProperty) |
Set whether this param should NOT be used.
|
boolean |
shouldUse() |
Ensures that the param passes the conditions placed
on it with
if and unless properties. |
public void setProject(org.apache.tools.ant.Project project)
project - the current projectpublic void setName(java.lang.String name)
name - the name of the parameter.public void setExpression(java.lang.String expression)
expression - the parameter's value.public java.lang.String getName()
throws org.apache.tools.ant.BuildException
org.apache.tools.ant.BuildException - if the name is not set.public java.lang.String getExpression()
throws org.apache.tools.ant.BuildException
org.apache.tools.ant.BuildException - if the value is not set.public void setIf(java.lang.String ifProperty)
ifProperty - name of propertypublic void setUnless(java.lang.String unlessProperty)
unlessProperty - name of propertypublic boolean shouldUse()
if and unless properties.