public class Callback extends Object
| Constructor and Description | 
|---|
| Callback() | 
| Modifier and Type | Method and Description | 
|---|---|
| static int | booleanFromString(CharSequence s)Convert a string to a boolean value, using the XML Schema rules (including
 whitespace trimming) | 
| static XPathException | makeJavaInvocationException(Exception err,
                           JavaExtensionFunctionCall call)Construct (but do not throw) an exception wrapping an exception thrown by a Java extension function | 
| static XPathException | makeMultipleItemsException(CardinalityChecker expression,
                          XPathContext context)Construct an exception reporting that a sequence of more than item was found where a single item
 was expected | 
| static XPathException | makeNonComparableException(AtomicValue av0,
                          AtomicValue av1,
                          SourceLocator location)Construct (but don't throw) an exception reporting that two atomic values are not comparable | 
| static XPathException | makeXmlNamespaceException(String prefix,
                         String namespace,
                         Instruction instr)Construct (but do not throw) an exception reporting that the namespace prefix "xml" and the XML namespace
 URI can only be used as a pair | 
| static double | stringToNumberOrNaN(StringToDouble s2d,
                   CharSequence string)Convert a string to a double number, returning NaN if the string is not numeric | 
public static XPathException makeNonComparableException(AtomicValue av0, AtomicValue av1, SourceLocator location)
av0 - the first atomic valueav1 - the second atomic valuelocation - the source location of the comparisonpublic static XPathException makeXmlNamespaceException(String prefix, String namespace, Instruction instr)
prefix - the prefix that was actually usednamespace - the namespace URI that was actually usedinstr - the instruction in which the error occurredpublic static XPathException makeJavaInvocationException(Exception err, JavaExtensionFunctionCall call)
err - the exception thrown by the called extension functioncall - the extension function call in which the error occurredpublic static XPathException makeMultipleItemsException(CardinalityChecker expression, XPathContext context)
expression - the cardinality checker that detects the error. This is re-evaluated to include
 the first few items of the sequence in the error messagecontext - the dynamic contextpublic static double stringToNumberOrNaN(StringToDouble s2d, CharSequence string)
s2d - the string to double converter to be usedstring - the string to be convertedpublic static int booleanFromString(CharSequence s)
s - the input stringCopyright (c) 2004-2013 Saxonica Limited. All rights reserved.