Package net.sf.saxon.type.coercion
Class FunctionItemCoercionPlan
java.lang.Object
net.sf.saxon.type.coercion.CoercionPlan
net.sf.saxon.type.coercion.FunctionItemCoercionPlan
Coercion plan for use when the required item type is a specific function type
-
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 FunctionItemCoercionPlangetInstance(int version) Methods inherited from class net.sf.saxon.type.coercion.CoercionPlan
check, coerceSequence, coercionError
-
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- an item to be coercedrequiredType- the required item typerequest- the input to the coercion- Returns:
- the converted value
- Throws:
XPathException- if the value cannot be converted to the required type
-