Package net.sf.saxon.type.coercion
Class QNameCoercionPlan
java.lang.Object
net.sf.saxon.type.coercion.CoercionPlan
net.sf.saxon.type.coercion.AtomicCoercionPlan
net.sf.saxon.type.coercion.QNameCoercionPlan
A coercion plan for use when the target type is QName or NOTATION
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected AtomicValueconvertUntyped(AtomicValue atom, ItemType requiredType, CoercionRequest request) Coerce an untyped atomic value to the required atomic type.static QNameCoercionPlanMethods inherited from class net.sf.saxon.type.coercion.AtomicCoercionPlan
coerceAtomicValue, coerceItem, promoteMethods inherited from class net.sf.saxon.type.coercion.CoercionPlan
check, coerceSequence, coercionError
-
Constructor Details
-
QNameCoercionPlan
public QNameCoercionPlan()
-
-
Method Details
-
getInstance
-
convertUntyped
protected AtomicValue convertUntyped(AtomicValue atom, ItemType requiredType, CoercionRequest request) throws XPathException Description copied from class:AtomicCoercionPlanCoerce an untyped atomic value to the required atomic type.- Overrides:
convertUntypedin classAtomicCoercionPlan- Parameters:
atom- the untyped atomic value to be convertedrequiredType- the required atomic typerequest- details of the coercion request for diagnostics- Returns:
- the converted atomic value
- Throws:
XPathException- if conversion fails
-