public static class XSLTProcess.Param
extends java.lang.Object
Constructor and Description |
---|
XSLTProcess.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.Object ifCond)
Set whether this param should be used.
|
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(Project project)
Set the current project
|
void |
setUnless(java.lang.Object unlessCond)
Set whether this param should NOT be used.
|
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(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 BuildException
BuildException
- if the name is not set.public java.lang.String getExpression() throws BuildException
BuildException
- if the value is not set.public void setIf(java.lang.Object ifCond)
ifCond
- evaluated expressionpublic void setIf(java.lang.String ifProperty)
ifProperty
- evaluated expressionpublic void setUnless(java.lang.Object unlessCond)
unlessCond
- evaluated expressionpublic void setUnless(java.lang.String unlessProperty)
unlessProperty
- evaluated expressionpublic boolean shouldUse()
if
and unless
properties.