|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.sf.saxon.Query
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.
Constructor Summary | |
Query()
|
Method Summary | |
protected void |
badUsage(java.lang.String name,
java.lang.String message)
Report incorrect usage of the command line, with a list of the options and arguments that are available |
protected void |
doMain(java.lang.String[] args,
java.lang.String name)
Support method for main program. |
static void |
main(java.lang.String[] args)
Main program, can be used directly from the command line. |
protected Configuration |
makeConfiguration()
Set the configuration. |
static javax.xml.transform.URIResolver |
makeURIResolver(java.lang.String className)
Create an instance of a URIResolver with a specified class name |
protected static void |
quit(java.lang.String message,
int code)
Exit with a message |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Query()
Method Detail |
protected Configuration makeConfiguration()
public static void main(java.lang.String[] args) throws java.lang.Exception
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.
args
- List of arguments supplied on operating system command line
java.lang.Exception
- Indicates that a compile-time or
run-time error occurredprotected void doMain(java.lang.String[] args, java.lang.String name)
args
- the command-line argumentsname
- name of the class, to be used in error messagesprotected static void quit(java.lang.String message, int code)
message
- The message to be outputcode
- The result code to be returned to the operating
system shellprotected void badUsage(java.lang.String name, java.lang.String message)
name
- The name of the command being executed (allows subclassing)message
- The error messagepublic static javax.xml.transform.URIResolver makeURIResolver(java.lang.String className) throws javax.xml.transform.TransformerException
className
- The fully-qualified name of the URIResolver class
javax.xml.transform.TransformerException
- if the requested class does not
implement the javax.xml.transform.URIResolver interface
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |