Package net.sf.saxon.type.coercion
Class JNodeCoercionPlan
java.lang.Object
net.sf.saxon.type.coercion.CoercionPlan
net.sf.saxon.type.coercion.JNodeCoercionPlan
A coercion plan represents a process for implementing the coercion rules for converting
a supplied value to a given required type. This class handles the case where the required
type is jnode().
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncoerceItem(Item item, ItemType requiredType, CoercionRequest request) Apply the coercion rules (function conversion rules) to a value, given a required type.static JNodeCoercionPlanMethods inherited from class net.sf.saxon.type.coercion.CoercionPlan
check, coerceSequence, coercionError
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
JNodeCoercionPlan
public JNodeCoercionPlan()
-
-
Method Details
-
getInstance
-
coerceItem
public GroundedValue coerceItem(Item item, ItemType requiredType, CoercionRequest request) throws XPathException Apply the coercion rules (function conversion rules) to a value, given a required type.- Specified by:
coerceItemin classCoercionPlan- Parameters:
item- the value to be convertedrequiredType- the required array typerequest- the input to the coercion- Returns:
- the converted value (possibly as a lazily-evaluated sequence)
- Throws:
XPathException- if the value cannot be converted to the required type
-