Package net.sf.saxon.expr
Class TreatExpression
java.lang.Object
net.sf.saxon.expr.TreatExpression
Treat Expression: implements "treat as data-type ( expression )". This is a factory class only.
-
Method Summary
Modifier and TypeMethodDescriptionstatic Expression
make
(Expression sequence, SequenceType type) Make a treat expression with error code XPDY0050static Expression
make
(Expression sequence, SequenceType type, String errorCode) Make a treat expression with a non-standard error code
-
Method Details
-
make
Make a treat expression with error code XPDY0050- Parameters:
sequence
- the expression whose result is to be checkedtype
- the type against which the result is to be checked- Returns:
- the expression
-
make
Make a treat expression with a non-standard error code- Parameters:
sequence
- the expression whose result is to be checkedtype
- the type against which the result is to be checkederrorCode
- the error code to be returned if the check fails- Returns:
- the expression
-