Package net.sf.saxon.trans.rules
Class RuleSetWithTypeCheck
java.lang.Object
net.sf.saxon.trans.rules.RuleSetWithTypeCheck
- All Implemented Interfaces:
ContextOriginator,BuiltInRuleSet
A set of built-in template rules that performs the same action as an underlying set of rules,
but with the addition of type-checking that the result of the built-in template rules conforms
to a supplied sequence type.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetActionForParentNodes(int nodeKind) Get the default action for unmatched nodesgetName()Identify this built-in rule setvoidoutputWarning(Item item, XPathContext context) voidprocess(Item item, ParameterSet parameters, ParameterSet tunnelParams, Outputter output, XPathContext context, Location locationId) Perform the built-in template action for a given item.
-
Constructor Details
-
RuleSetWithTypeCheck
-
-
Method Details
-
getBaseRuleSet
-
getRequiredType
-
process
public void process(Item item, ParameterSet parameters, ParameterSet tunnelParams, Outputter output, XPathContext context, Location locationId) throws XPathException Perform the built-in template action for a given item.- Specified by:
processin interfaceBuiltInRuleSet- Parameters:
item- the item to be matchedparameters- the parameters supplied to apply-templatestunnelParams- the tunnel parameters to be passed throughoutput- the destination for the resultcontext- the dynamic evaluation contextlocationId- location of the instruction (apply-templates, apply-imports etc)- Throws:
XPathException- if the output of the built-in template rule does not match the required type
-
getName
Identify this built-in rule set- Specified by:
getNamein interfaceBuiltInRuleSet- Returns:
- the base name plus "with warnings"
-
outputWarning
-
getActionForParentNodes
Get the default action for unmatched nodes- Specified by:
getActionForParentNodesin interfaceBuiltInRuleSet- Parameters:
nodeKind- the node kind- Returns:
- the default action for unmatched element nodes: one of DEEP_COPY, APPLY_TEMPLATES, DEEP_SKIP, FAIL
-