Package net.sf.saxon.s9api
Class XsltExecutable.ParameterDetails
java.lang.Object
net.sf.saxon.s9api.XsltExecutable.ParameterDetails
- Enclosing class:
XsltExecutable
Inner class containing information about a global parameter to a compiled stylesheet
- Since:
- 9.3
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
ParameterDetails
(Processor processor, SequenceType type, boolean isRequired) -
Method Summary
Modifier and TypeMethodDescriptionGet the declared cardinality of the parameterGet the declared item type of the parameterGet the underlying SequenceType object representing the declared type of the parameterboolean
Ask whether the parameter is required (mandatory) or optional
-
Constructor Details
-
ParameterDetails
-
-
Method Details
-
getDeclaredItemType
Get the declared item type of the parameter- Returns:
- the type defined in the
as
attribute of thexsl:param
element, without its occurrence indicator
-
getDeclaredCardinality
Get the declared cardinality of the parameter- Returns:
- the occurrence indicator from the type appearing in the
as
attribute of thexsl:param
element
-
getUnderlyingDeclaredType
Get the underlying SequenceType object representing the declared type of the parameter- Returns:
- the type
-
isRequired
public boolean isRequired()Ask whether the parameter is required (mandatory) or optional- Returns:
- true if the parameter is mandatory (
required="yes"
), false if it is optional
-