JDOMQuery
public class Query
extends java.lang.Object
The XQuery syntax supported conforms to the W3C XQuery 1.0 drafts.
Modifier and Type | Field | Description |
---|---|---|
protected Configuration |
config |
Constructor | Description |
---|---|
Query() |
Modifier and Type | Method | Description |
---|---|---|
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 |
doQuery(java.lang.String[] args,
java.lang.String name) |
Support method for main program.
|
protected Configuration |
getConfiguration() |
Get the configuration in use
|
static void |
main(java.lang.String[] args) |
Main program, can be used directly from the command line.
|
protected Configuration |
makeConfiguration(boolean schemaAware) |
Set the configuration.
|
protected static void |
quit(java.lang.String message,
int code) |
Exit with a message
|
void |
setPOption(Configuration config) |
protected Configuration config
protected Configuration makeConfiguration(boolean schemaAware)
protected Configuration getConfiguration()
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 linejava.lang.Exception
- Indicates that a compile-time or
run-time error occurredprotected void doQuery(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 shellpublic void setPOption(Configuration config)
protected void badUsage(java.lang.String name, java.lang.String message)
name
- The name of the command being executed (allows subclassing)message
- The error message