Package org.apache.tools.ant.taskdefs
Class XSLTProcess.Param
- java.lang.Object
- 
- org.apache.tools.ant.taskdefs.XSLTProcess.Param
 
- 
- Enclosing class:
- XSLTProcess
 
 public static class XSLTProcess.Param extends java.lang.ObjectThe Param inner class used to store XSL parameters
- 
- 
Constructor SummaryConstructors Constructor Description Param()
 - 
Method SummaryModifier and Type Method Description java.lang.StringgetExpression()Get the parameter's valuejava.lang.StringgetName()Get the parameter namejava.lang.StringgetType()voidsetExpression(java.lang.String expression)The parameter value - can be a primitive type value or an XPath expression.voidsetIf(java.lang.Object ifCond)Set whether this param should be used.voidsetIf(java.lang.String ifProperty)Set whether this param should be used.voidsetName(java.lang.String name)Set the parameter name.voidsetProject(Project project)Set the current projectvoidsetType(java.lang.String type)voidsetUnless(java.lang.Object unlessCond)Set whether this param should NOT be used.voidsetUnless(java.lang.String unlessProperty)Set whether this param should NOT be used.booleanshouldUse()Ensures that the param passes the conditions placed on it withifandunlessproperties.
 
- 
- 
- 
Method Detail- 
setProjectpublic void setProject(Project project) Set the current project- Parameters:
- project- the current project
 
 - 
setNamepublic void setName(java.lang.String name) Set the parameter name.- Parameters:
- name- the name of the parameter.
 
 - 
setExpressionpublic void setExpression(java.lang.String expression) The parameter value - can be a primitive type value or an XPath expression.- Parameters:
- expression- the parameter's value/expression.
- See Also:
- setType(java.lang.String)
 
 - 
setTypepublic void setType(java.lang.String type) - Parameters:
- type- String
- Since:
- Ant 1.9.3
- See Also:
- XSLTProcess.ParamType
 
 - 
getNamepublic java.lang.String getName() throws BuildExceptionGet the parameter name- Returns:
- the parameter name
- Throws:
- BuildException- if the name is not set.
 
 - 
getExpressionpublic java.lang.String getExpression() throws BuildExceptionGet the parameter's value- Returns:
- the parameter value
- Throws:
- BuildException- if the value is not set.
- See Also:
- getType()
 
 - 
getTypepublic java.lang.String getType() - Returns:
- String
- Since:
- Ant 1.9.3
- See Also:
- XSLTProcess.ParamType
 
 - 
setIfpublic void setIf(java.lang.Object ifCond) Set 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
 
 - 
setIfpublic void setIf(java.lang.String ifProperty) Set 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
 
 - 
setUnlesspublic void setUnless(java.lang.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
 
 - 
setUnlesspublic void setUnless(java.lang.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
 
 - 
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
 
 
- 
 
-