public abstract class TreatExpression extends Object
Modifier and Type | Method and Description |
---|---|
static Expression |
make(Expression sequence,
SequenceType type)
Make a treat expression with error code XPDY0050
|
static Expression |
make(Expression sequence,
SequenceType type,
String errorCode)
Make a treat expression with a non-standard error code
|
public static Expression make(Expression sequence, SequenceType type)
sequence
- the expression whose result is to be checkedtype
- the type against which the result is to be checkedpublic static Expression make(Expression sequence, SequenceType type, String errorCode)
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 failsCopyright (c) 2004-2014 Saxonica Limited. All rights reserved.