Package net.sf.saxon.type.coercion
Class EnumUnionCoercionPlan
java.lang.Object
net.sf.saxon.type.coercion.CoercionPlan
net.sf.saxon.type.coercion.AtomicCoercionPlan
net.sf.saxon.type.coercion.UnionCoercionPlan
net.sf.saxon.type.coercion.EnumUnionCoercionPlan
Coercion plan for use with 4.0 when the required item type is an enum type
-
Field Summary
FieldsFields inherited from class net.sf.saxon.type.coercion.UnionCoercionPlan
INSTANCE31, INSTANCE40 -
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.AtomicCoercionPlan
coerceAtomicValue, convertUntyped, getInstance, promoteMethods inherited from class net.sf.saxon.type.coercion.CoercionPlan
check, coerceSequence, coercionError
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
EnumUnionCoercionPlan
protected EnumUnionCoercionPlan()
-
-
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.- Overrides:
coerceItemin classUnionCoercionPlan- Parameters:
item- the value to be convertedrequiredType- the required 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
-