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(String ifProperty)
Set whether this param should be used.
voidsetName(String name)
Set the parameter name.
voidsetProject(Project project)
Set the current project
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(String ifProperty)
Set whether this param should be used. It will be used if the property has been set, otherwise it won't.

Parameters: ifProperty name of property

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(String unlessProperty)
Set whether this param should NOT be used. It will not be used if the property has been set, otherwise it will be used.

Parameters: unlessProperty name of property

shouldUse

public boolean shouldUse()
Ensures that the param passes the conditions placed on it with if and unless properties.
Copyright B) 2000-2007 Apache Software Foundation. All Rights Reserved.