org.apache.tools.ant.taskdefs

Class XSLTProcess.Param

public static class XSLTProcess.Param extends Object

The Param inner class used to store XSL parameters
Method Summary
StringgetExpression()
Get the parameter's value
StringgetName()
Get the parameter name
voidsetExpression(String expression)
The parameter value NOTE : was intended to be an XSL expression.
voidsetIf(Object ifCond)
Set whether this param should be used.
voidsetIf(String ifProperty)
Set whether this param should be used.
voidsetName(String name)
Set the parameter name.
voidsetProject(Project project)
Set the current project
voidsetUnless(Object unlessCond)
Set whether this param should NOT be used.
voidsetUnless(String unlessProperty)
Set whether this param should NOT be used.
booleanshouldUse()
Ensures that the param passes the conditions placed on it with if and unless properties.

Method Detail

getExpression

public String getExpression()
Get the parameter's value

Returns: the parameter value

Throws: BuildException if the value is not set.

getName

public String getName()
Get the parameter name

Returns: the parameter name

Throws: BuildException if the name is not set.

setExpression

public void setExpression(String expression)
The parameter value NOTE : was intended to be an XSL expression.

Parameters: expression the parameter's value.

setIf

public void setIf(Object ifCond)
Set whether this param should be used. It will be used if the expression evalutes to true or the name of a property which has been set, otherwise it won't.

Parameters: ifCond evaluated expression

Since: Ant 1.8.0

setIf

public void setIf(String ifProperty)
Set whether this param should be used. It will be used if the expression evalutes to true or the name of a property which has been set, otherwise it won't.

Parameters: ifProperty evaluated expression

setName

public void setName(String name)
Set the parameter name.

Parameters: name the name of the parameter.

setProject

public void setProject(Project project)
Set the current project

Parameters: project the current project

setUnless

public void setUnless(Object unlessCond)
Set whether this param should NOT be used. It will not be used if the expression evaluates to true or the name of a property which has been set, otherwise it will be used.

Parameters: unlessCond evaluated expression

Since: Ant 1.8.0

setUnless

public void setUnless(String unlessProperty)
Set whether this param should NOT be used. It will not be used if the expression evaluates to true or the name of a property which has been set, otherwise it will be used.

Parameters: unlessProperty evaluated expression

shouldUse

public boolean shouldUse()
Ensures that the param passes the conditions placed on it with if and unless properties.

Returns: true if the task passes the "if" and "unless" parameters