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
|
java.lang.String |
getType() |
void |
setExpression(java.lang.String expression)
The parameter value -
can be a primitive type value or an XPath 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 |
setType(java.lang.String type) |
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/expression.setType(java.lang.String)public void setType(java.lang.String type)
XSLTProcess.ParamTypepublic 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.getType()public java.lang.String getType()
XSLTProcess.ParamTypepublic 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.