|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
edu.ucsb.nceas.metacat.QuerySpecification
A Class that represents a structured query, and can be constructed from an XML serialization conforming to @see pathquery.dtd. The printSQL() method can be used to print a SQL serialization of the query.
Constructor Summary | |
QuerySpecification(java.io.Reader queryspec,
java.lang.String parserName)
construct an instance of the QuerySpecification class |
|
QuerySpecification(java.lang.String queryspec,
java.lang.String parserName)
construct an instance of the QuerySpecification class |
Method Summary | |
void |
characters(char[] ch,
int start,
int length)
callback method used by the SAX Parser when the text sequences of an xml stream are detected. |
void |
endElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qName)
callback method used by the SAX Parser when the end tag of an element is detected. |
static void |
main(java.lang.String[] args)
Main routine for testing |
java.lang.String |
printSQL()
create a SQL serialization of the query that this instance represents |
void |
startElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qName,
org.xml.sax.Attributes atts)
callback method used by the SAX Parser when the start tag of an element is detected. |
java.lang.String |
toString()
create a String description of the query that this instance represents. |
Constructor Detail |
public QuerySpecification(java.io.Reader queryspec, java.lang.String parserName) throws java.io.IOException
queryspec
- the XML representation of the query (should conform
to pathquery.dtd) as a ReaderparserName
- the fully qualified name of a Java Class implementing
the org.xml.sax.XMLReader interfacepublic QuerySpecification(java.lang.String queryspec, java.lang.String parserName) throws java.io.IOException
queryspec
- the XML representation of the query (should conform
to pathquery.dtd) as a StringparserName
- the fully qualified name of a Java Class implementing
the org.xml.sax.Parser interfaceMethod Detail |
public static void main(java.lang.String[] args)
public void startElement(java.lang.String uri, java.lang.String localName, java.lang.String qName, org.xml.sax.Attributes atts) throws org.xml.sax.SAXException
public void endElement(java.lang.String uri, java.lang.String localName, java.lang.String qName) throws org.xml.sax.SAXException
public void characters(char[] ch, int start, int length)
public java.lang.String printSQL()
public java.lang.String toString()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |