|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.xqdoc.conversion.XQDocController
public class XQDocController
This class is the mainline controller for processing library and main modules. Drivers for various XML database vendors would interact with this class to parse a module and use the generated XML to store into their database. The following would be the typical interactions with this class.
Field Summary | |
---|---|
static java.lang.String |
APR2005
|
static java.lang.String |
COLLECTION
|
static java.lang.String |
JAN2007
|
static java.lang.String |
MAY2003
|
static java.lang.String |
NOV2003
|
static java.lang.String |
NOV2005
|
static java.lang.String |
OCT2004
|
static java.lang.String |
SEP2005
|
Constructor Summary | |
---|---|
XQDocController(java.lang.String spec)
Constructor. |
Method Summary | |
---|---|
java.lang.String |
getDefaultFunctionNamespace()
Return the default function namespace that should be used when parsing a library or main module. |
boolean |
getEncodeURIs()
Return the encode document URI flag. |
java.lang.String |
getModuleBase()
Return the module base. |
java.util.HashMap |
getPredefinedFunctionNamespaces()
Return the predefined function namespaces that should be used when parsing a library or main module. |
org.xqdoc.conversion.XQDocPayload |
process(java.io.InputStream is,
java.lang.String name)
Process the library or main module identified by the InputStream. |
org.xqdoc.conversion.XQDocPayload |
process(java.io.Reader rdr,
java.lang.String name)
Process the library or main module identified by the Reader. |
void |
setDefaultFunctionNamespace(java.lang.String uri)
Set the default function namespace that should be used when parsing a library or main module. |
void |
setEncodeURIs(boolean bool)
Encoded document URIs. |
void |
setModuleBase(java.lang.String base)
Set the module base to use for main modules. |
void |
setPredefinedFunctionNamespaces(java.util.HashMap map)
Set any predefined function namespaces that should be used when parsing a library or main module. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String MAY2003
public static final java.lang.String NOV2003
public static final java.lang.String OCT2004
public static final java.lang.String APR2005
public static final java.lang.String SEP2005
public static final java.lang.String NOV2005
public static final java.lang.String JAN2007
public static final java.lang.String COLLECTION
Constructor Detail |
---|
public XQDocController(java.lang.String spec) throws org.xqdoc.conversion.XQDocException
spec
- The version of the W3C XQuery specification that should be
used to parse the library and main modules. Valid values
include the following: may2003, nov2003, oct2004, apr2005,
sep2005, and nov2005.
org.xqdoc.conversion.XQDocException
Method Detail |
---|
public void setPredefinedFunctionNamespaces(java.util.HashMap map)
map
- A mapping of namespace prefixes and namespace URIs.public java.util.HashMap getPredefinedFunctionNamespaces()
public void setDefaultFunctionNamespace(java.lang.String uri)
uri
- The uri for the default namespace.public java.lang.String getDefaultFunctionNamespace()
public void setModuleBase(java.lang.String base)
base
- The module base.public java.lang.String getModuleBase()
public void setEncodeURIs(boolean bool)
bool
- flag to indicate whether URIs should be encodedpublic boolean getEncodeURIs()
public org.xqdoc.conversion.XQDocPayload process(java.io.InputStream is, java.lang.String name) throws org.xqdoc.conversion.XQDocException
is
- The input stream for the library or main modulename
- The 'common name' for the library or main module
org.xqdoc.conversion.XQDocException
- Problems while parsing the modulepublic org.xqdoc.conversion.XQDocPayload process(java.io.Reader rdr, java.lang.String name) throws org.xqdoc.conversion.XQDocException
rdr
- The reader for the library or main modulename
- The 'common name' for the library or main module
org.xqdoc.conversion.XQDocException
- Problems while parsing the module
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |