Package org.apache.tools.ant.taskdefs
Class XSLTProcess.Param
java.lang.Object
org.apache.tools.ant.taskdefs.XSLTProcess.Param
- Enclosing class:
- XSLTProcess
The Param inner class used to store XSL parameters
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionGet the parameter's valuegetName()Get the parameter namegetType()voidsetExpression(String expression) The parameter value - can be a primitive type value or an XPath expression.voidSet whether this param should be used.voidSet whether this param should be used.voidSet the parameter name.voidsetProject(Project project) Set the current projectvoidvoidSet whether this param should NOT be used.voidSet whether this param should NOT be used.booleanEnsures that the param passes the conditions placed on it withifandunlessproperties.
- 
Constructor Details- 
Parampublic Param()
 
- 
- 
Method Details- 
setProjectSet the current project- Parameters:
- project- the current project
 
- 
setNameSet the parameter name.- Parameters:
- name- the name of the parameter.
 
- 
setExpressionThe parameter value - can be a primitive type value or an XPath expression.- Parameters:
- expression- the parameter's value/expression.
- See Also:
 
- 
setType- Parameters:
- type- String
- Since:
- Ant 1.9.3
- See Also:
 
- 
getNameGet the parameter name- Returns:
- the parameter name
- Throws:
- BuildException- if the name is not set.
 
- 
getExpressionGet the parameter's value- Returns:
- the parameter value
- Throws:
- BuildException- if the value is not set.
- See Also:
 
- 
getType- Returns:
- String
- Since:
- Ant 1.9.3
- See Also:
 
- 
setIfSet whether this param should be used. It will be used if the expression evaluates 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
 
- 
setIfSet whether this param should be used. It will be used if the expression evaluates to true or the name of a property which has been set, otherwise it won't.- Parameters:
- ifProperty- evaluated expression
 
- 
setUnlessSet 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
 
- 
setUnlessSet 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
 
- 
shouldUsepublic boolean shouldUse()Ensures that the param passes the conditions placed on it withifandunlessproperties.- Returns:
- true if the task passes the "if" and "unless" parameters
 
 
-