Package net.sf.saxon.ant
Class AntTransform.Param
java.lang.Object
net.sf.saxon.ant.AntTransform.Param
- Enclosing class:
AntTransform
The Param inner class used to store XSL parameters
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the parameter's valuegetName()Get the parameter namevoidsetExpression(String expression) The parameter value NOTE : was intended to be an XSL expression.voidSet whether this param should be used.voidSet the parameter name.voidsetProject(org.apache.tools.ant.Project project) Set the current projectvoidSet whether this param should NOT be used.booleanEnsures that the param passes the conditions placed on it withifandunlessproperties.
-
Constructor Details
-
Param
public Param()
-
-
Method Details
-
setProject
public void setProject(org.apache.tools.ant.Project project) Set the current project- Parameters:
project- the current project
-
setName
Set the parameter name.- Parameters:
name- the name of the parameter.
-
setExpression
The parameter value NOTE : was intended to be an XSL expression.- Parameters:
expression- the parameter's value.
-
getName
Get the parameter name- Returns:
- the parameter name
- Throws:
org.apache.tools.ant.BuildException- if the name is not set.
-
getExpression
Get the parameter's value- Returns:
- the parameter value
- Throws:
org.apache.tools.ant.BuildException- if the value is not set.
-
setIf
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
-
setUnless
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 withifandunlessproperties.- Returns:
- true if the task passes the "if" and "unless" parameters
-