public static class XSLTProcess.Param extends Object
Constructor and Description |
---|
Param() |
Modifier and Type | Method and Description |
---|---|
String |
getExpression()
Get the parameter's value
|
String |
getName()
Get the parameter name
|
String |
getType() |
void |
setExpression(String expression)
The parameter value -
can be a primitive type value or an XPath expression.
|
void |
setIf(Object ifCond)
Set whether this param should be used.
|
void |
setIf(String ifProperty)
Set whether this param should be used.
|
void |
setName(String name)
Set the parameter name.
|
void |
setProject(Project project)
Set the current project
|
void |
setType(String type) |
void |
setUnless(Object unlessCond)
Set whether this param should NOT be used.
|
void |
setUnless(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 String getExpression() throws BuildException
BuildException
- if the value is not set.getType()
public String getName() throws BuildException
BuildException
- if the name is not set.public String getType()
XSLTProcess.ParamType
public void setExpression(String expression)
expression
- the parameter's value/expression.setType(java.lang.String)
public void setIf(Object ifCond)
ifCond
- evaluated expressionpublic void setIf(String ifProperty)
ifProperty
- evaluated expressionpublic void setName(String name)
name
- the name of the parameter.public void setProject(Project project)
project
- the current projectpublic void setType(String type)
XSLTProcess.ParamType
public void setUnless(Object unlessCond)
unlessCond
- evaluated expressionpublic void setUnless(String unlessProperty)
unlessProperty
- evaluated expressionpublic boolean shouldUse()
if
and unless
properties.