org.apache.tools.ant.taskdefs

Class XSLTProcess.Param

Enclosing Class:
XSLTProcess

public static class XSLTProcess.Param
extends java.lang.Object

The Param inner class used to store XSL parameters

Method Summary

String
getExpression()
Get the parameter's value
String
getName()
Get the parameter name
void
setExpression(String expression)
The parameter value NOTE : was intended to be an XSL expression.
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
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.

Method Details

getExpression

public String getExpression()
            throws BuildException
Get the parameter's value
Returns:
the parameter value
Throws:
BuildException - if the value is not set.

getName

public String getName()
            throws BuildException
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 © 2000-2006 Apache Software Foundation. All Rights Reserved.