public static class JDXSLTProcess.Param
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
expression
The parameter's value
|
private java.lang.String |
ifProperty |
private java.lang.String |
name
The parameter name
|
private org.apache.tools.ant.Project |
project |
private java.lang.String |
unlessProperty |
Constructor and Description |
---|
JDXSLTProcess.Param() |
Modifier and Type | Method and 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. |
private java.lang.String name
private java.lang.String expression
private java.lang.String ifProperty
private java.lang.String unlessProperty
private org.apache.tools.ant.Project project
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.