Package org.apache.tools.ant.taskdefs
Enum Class XSLTProcess.ParamType
- All Implemented Interfaces:
Serializable
,Comparable<XSLTProcess.ParamType>
,Constable
- Enclosing class:
XSLTProcess
Enum for types of the parameter expression.
The expression can be:
- primitive type that will be parsed from the string value e.g. Integer.parseInt(java.lang.String)
- XPath expression that will be evaluated (outside of the transformed document - on empty one) and casted to given type. Inside XPath expressions the Ant variables (properties) can be used (as XPath variables - e.g. $variable123). n.b. placeholders in form of ${variable123} will be substituted with their values before evaluating the XPath expression (so it can be used for dynamic XPath function names and other hacks).
The parameter will be then passed to the XSLT template.
Default type (if omitted) is primitive String. So if the expression is e.g "true" with no type, in XSLT it will be only a text string, not true boolean.
- Since:
- Ant 1.9.3
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescription -
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic XSLTProcess.ParamType
Returns the enum constant of this class with the specified name.static XSLTProcess.ParamType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
STRING
-
BOOLEAN
-
INT
-
LONG
-
DOUBLE
-
XPATH_STRING
-
XPATH_BOOLEAN
-
XPATH_NUMBER
-
XPATH_NODE
-
XPATH_NODESET
-
-
Field Details
-
XPATH_TYPES
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-