Package net.sf.saxon.type.coercion
Class RecordCoercionPlan
java.lang.Object
net.sf.saxon.type.coercion.CoercionPlan
net.sf.saxon.type.coercion.RecordCoercionPlan
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 a record type.
-
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.Methods inherited from class net.sf.saxon.type.coercion.CoercionPlan
check, coerceSequence, coercionError
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
RecordCoercionPlan
public RecordCoercionPlan()
-
-
Method Details
-
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 map to be convertedrequiredType- the required record 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
-