|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.jxml.quick.Quick
This class provides static access to a large majority of the Quick API.
Revised in 1.1
Field Summary | |
static String |
encoding
The encoding used by express in generating the encoding line. |
static QParserPool |
parserPool
|
static QSoftDocHash |
schemaHash
|
static String |
xxx
|
Constructor Summary | |
Quick()
|
Method Summary | |
static QDoc |
convert(QDoc doc,
QDoc schema)
Use a conversion tree to create a second object tree. |
static QDoc |
convert(QDoc doc,
QDoc schema,
String url)
Use a conversion tree to create a second object tree. |
static QDoc |
createDoc(Object root,
QDoc schema)
Create a new QDoc object. |
static QDoc |
createDoc(String url,
Object root,
QDoc schema)
Create a new unique QDoc object. |
static String |
express(QDoc doc)
Express an object tree as an XML document. |
static String |
express(QDoc doc,
boolean expressDefaults)
Express an object tree as an XML document. |
static void |
express(QDoc doc,
PrintWriter pw)
Express an object tree as an XML document. |
static void |
express(QDoc doc,
PrintWriter pw,
boolean expressDefaults)
Express an object tree as an XML document. |
static void |
express(QDoc doc,
String filename)
Express an object tree as an XML document using the default encoding. |
static void |
express(QDoc doc,
String filename,
boolean expressDefaults)
Express an object tree as an XML document using the default encoding. |
static String |
genDocType(String encoding,
QDoc doc)
generate the DOCTYPE for doc. |
static String |
genDocType(String encoding,
String rootTag,
String PUBLIC,
String SYSTEM)
generate the DOCTYPE for doc. |
static HRef |
getHRef(QDoc doc,
Object key)
Get the HRef of an object being referenced by an object tree. |
static String |
getId(QDoc doc,
Object value)
Returns the ID of an object. |
static Object |
getRoot(QDoc doc)
Return the root object of the object tree held by the QDoc object. |
static QDoc |
parse(QDoc schema,
InputSource is)
Create a QDoc object which holds the object tree build from the XML document specified by a SAX InputSource object. |
static QDoc |
parse(QDoc schema,
String url)
Create a QDoc object which holds the object tree build from the XML document referenced by a URL. |
static QDoc |
parseQIML(InputSource is,
String url)
Create a (unique) QDoc object which holds the schema referenced by a URL. |
static QDoc |
parseQIML(String url)
Create a (unique) QDoc object which holds the schema referenced by a URL. |
static QDoc |
parseSchema(InputSource is,
String url)
Create a (unique) QDoc object which holds the schema referenced by a URL. |
static QDoc |
parseSchema(String url)
Create a (unique) QDoc object which holds the schema referenced by a URL. |
static QDoc |
parseString(QDoc schema,
String document)
Create a QDoc object which holds the object tree build from the XML document held in a String. |
static QDoc |
QIMLSchema()
Returns the binding schema for QIML |
static void |
setId(QDoc doc,
String id,
Object value)
Assign an ID to an object held by a QDoc object. |
static void |
setParserClassName(String parserClassName)
Deprecated. |
static QDoc |
transcribe(QDoc doc,
QDoc schema)
Use the structure and content of one object tree to build a second object tree. |
static QDoc |
transcribe(QDoc doc,
QDoc schema,
boolean expressDefaults)
Use the structure and content of one object tree to build a second object tree. |
static QDoc |
transcribe(QDoc doc,
QDoc schema,
String url)
Use the structure and content of one object tree to build a second, unique object tree. |
static QDoc |
transcribe(QDoc doc,
QDoc schema,
String url,
boolean expressDefaults)
Use the structure and content of one object tree to build a second, unique object tree. |
static QDoc |
uniqueParse(QDoc schema,
InputSource is,
String url)
Create a unique QDoc object which holds the object tree build from the XML document referenced by a URL. |
static QDoc |
uniqueParse(QDoc schema,
String url)
Create a unique QDoc object which holds the object tree build from the XML document referenced by a URL. |
static String |
xmlEncoding(String encoding)
Format the character encoding. |
static String |
xmlEncodingNo(String encoding)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static QParserPool parserPool
public static QSoftDocHash schemaHash
public static String encoding
public static String xxx
Constructor Detail |
public Quick()
Method Detail |
public static void setParserClassName(String parserClassName)
public static Object getRoot(QDoc doc)
public static QDoc createDoc(Object root, QDoc schema)
root
- The root object of the object tree.schema
- The QDoc object which knows how to navigate the tree.public static QDoc createDoc(String url, Object root, QDoc schema) throws SAXException
url
- The String containing the URL or filename which names the document.root
- The root object of the object tree.schema
- The QDoc object which knows how to navigate the tree.public static String getId(QDoc doc, Object value) throws SAXException
doc
- The QDoc object whose object tree includes the object.value
- The object for which the ID is to be obtained.public static void setId(QDoc doc, String id, Object value) throws SAXException
doc
- The QDoc object which contains the object whose ID
is to be set.id
- The value of the ID to be assigned to the object.value
- The object to which an ID is to be assigned.public static HRef getHRef(QDoc doc, Object key)
doc
- The QDoc object which contains the object tree that references the object.key
- The object being referenced.public static String xmlEncoding(String encoding)
encoding
- Example: ISO-8859public static String xmlEncodingNo(String encoding)
public static String genDocType(String encoding, QDoc doc)
public static String genDocType(String encoding, String rootTag, String PUBLIC, String SYSTEM)
public static void express(QDoc doc, String filename) throws SAXException, IOException
doc
- The QDoc object holding the object tree to be expressed in XML.filename
- File name of the new XML document.public static void express(QDoc doc, String filename, boolean expressDefaults) throws SAXException, IOException
doc
- The QDoc object holding the object tree to be expressed in XML.filename
- File name of the new XML document.expressDefaults
- Turns on the expression of default values.public static void express(QDoc doc, PrintWriter pw) throws SAXException, IOException
doc
- The QDoc object holding the object tree to be expressed in XML.PW
- PrintWriter where the XML document is to be written.public static void express(QDoc doc, PrintWriter pw, boolean expressDefaults) throws SAXException, IOException
doc
- The QDoc object holding the object tree to be expressed in XML.PW
- PrintWriter where the XML document is to be written.expressDefaults
- Turns on the expression of default values.public static String express(QDoc doc) throws SAXException, IOException
doc
- The QDoc object holding the object tree to be expressed in XML.public static String express(QDoc doc, boolean expressDefaults) throws SAXException, IOException
doc
- The QDoc object holding the object tree to be expressed in XML.expressDefaults
- Turns on the expression of default values.public static QDoc convert(QDoc doc, QDoc schema) throws SAXException, IOException
doc
- The QDoc object holding the conversion tree.
The root object of this tree must implement the QConverter interface.schema
- The schema for the object tree to be built.public static QDoc convert(QDoc doc, QDoc schema, String url) throws SAXException, IOException
doc
- The QDoc object holding the conversion tree.
The root object of this tree must implement the QConverter interface.schema
- The schema for the object tree to be built.url
- The String containing the URL or filename which names the unique document.public static QDoc transcribe(QDoc doc, QDoc schema) throws SAXException
doc
- The QDoc object containing the data to be extracted.schema
- The schema for the object tree to be built.public static QDoc transcribe(QDoc doc, QDoc schema, boolean expressDefaults) throws SAXException
doc
- The QDoc object containing the data to be extracted.schema
- The schema for the object tree to be built.expressDefaults
- Turns on the expression of default values.public static QDoc transcribe(QDoc doc, QDoc schema, String url) throws SAXException
doc
- The QDoc object containing the data to be extracted.schema
- The schema for the object tree to be built.url
- The String containing the URL or filename which names the unique document.public static QDoc transcribe(QDoc doc, QDoc schema, String url, boolean expressDefaults) throws SAXException
doc
- The QDoc object containing the data to be extracted.schema
- The schema for the object tree to be built.url
- The String containing the URL or filename which names the unique document.expressDefaults
- Turns on the expression of default values.public static QDoc QIMLSchema() throws SAXException
public static QDoc parseQIML(InputSource is, String url) throws IOException, SAXException
is
- An InputSource object specifying the schema to be parsed.url
- The String containing the unique name of the schema to be parsed.public static QDoc parseQIML(String url) throws IOException, SAXException
url
- The String containing the URL or filename of the QIML schema to
be parsed.public static QDoc parseSchema(InputSource is, String url) throws IOException, SAXException
is
- An InputSource object specifying the schema to be parsed.url
- The String containing the unique name of the schema to be parsed.public static QDoc parseSchema(String url) throws IOException, SAXException
url
- The String containing the URL or filename of the QJML or QIML schema to
be parsed.public static QDoc uniqueParse(QDoc schema, String url) throws IOException, SAXException
schema
- The schema for the object tree to be built.url
- The String containing the URL or filename of the document to be parsed.public static QDoc uniqueParse(QDoc schema, InputSource is, String url) throws IOException, SAXException
schema
- The schema for the object tree to be built.is
- An InputSource object specifying the document to be parsed.url
- The String containing the unique name of the document to be parsed.public static QDoc parse(QDoc schema, String url) throws IOException, SAXException
schema
- The schema for the object tree to be built.url
- The String containing the URL or filename of the document to be parsed.public static QDoc parse(QDoc schema, InputSource is) throws IOException, SAXException
schema
- The schema for the object tree to be built.is
- An InputSource object specifying the document to be parsed.public static QDoc parseString(QDoc schema, String document) throws IOException, SAXException
schema
- The schema for the object tree to be built.document
- The String containing the XML document to be parsed.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |