| java.lang.Object net.sf.saxon.Query
All known Subclasses: net.sf.saxon.jdom.JDOMQuery,
Query | public class Query (Code) | | This Query class provides a command-line interface to the Saxon XQuery processor.
The XQuery syntax supported conforms to the W3C XQuery 1.0 drafts.
author: Michael H. Kay |
badUsage | protected void badUsage(String name, String message)(Code) | | Report incorrect usage of the command line, with a list of the options and arguments that are available
Parameters: name - The name of the command being executed (allows subclassing) Parameters: message - The error message |
doMain | protected void doMain(String args, String name)(Code) | | Support method for main program. This support method can also be invoked from subclasses
that support the same command line interface
Parameters: args - the command-line arguments Parameters: name - name of the class, to be used in error messages |
getConfiguration | protected Configuration getConfiguration()(Code) | | Get the configuration in use
the configuration |
main | public static void main(String args) throws Exception(Code) | | Main program, can be used directly from the command line.
The format is:
java net.sf.saxon.Query [options] query-file >output-file
followed by any number of parameters in the form {keyword=value}... which can be
referenced from within the query.
This program executes the query in query-file.
Parameters: args - List of arguments supplied on operating system command line throws: Exception - Indicates that a compile-time orrun-time error occurred |
makeConfiguration | protected Configuration makeConfiguration()(Code) | | Set the configuration. This is designed to be
overridden in a subclass
|
quit | protected static void quit(String message, int code)(Code) | | Exit with a message
Parameters: message - The message to be output Parameters: code - The result code to be returned to the operatingsystem shell |
|
|