|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.optimizationservices.oscommon.localinterface.OSQuery
public class OSQuery
The OSQuery
class is a local interface for storing Optimization Services
query. Its design follows the Optimization Services query Language (OSqL).
All the data structures in this class are standards specified in OSqL.
Field Summary | |
---|---|
StandardQuery |
standard
standard holds the pre-built standard query keywords in the StandardQuery data structure. |
java.lang.String |
xQuery
xQuery holds the query in the W3C XQuery format. |
Constructor Summary | |
---|---|
OSQuery()
Default constructor. |
Method Summary | |
---|---|
StandardQuery |
getStandardQuery()
get the standard query data structure. |
java.lang.String |
getXQuery()
Get the xQuery in a string. |
static void |
main(java.lang.String[] args)
main for test purposes. |
OSQuery |
readOSqL(java.lang.String osql,
boolean isFile,
boolean validate)
read an OSqL instance and return and OSQuery object. |
boolean |
setStandardQuery(StandardQuery standardQuery)
set the standard query. |
boolean |
setXQuery(java.lang.String xQuery)
Set the XQuery. |
java.lang.String |
writeOSqL()
write the OSQuery to an osql xml string. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public StandardQuery standard
public java.lang.String xQuery
Constructor Detail |
---|
public OSQuery()
Method Detail |
---|
public OSQuery readOSqL(java.lang.String osql, boolean isFile, boolean validate) throws java.lang.Exception
osql
- holds the optimization query in a string which format follows the
Optimization Services query Language (OSqL) schema.isFile
- holds whether the osql string is a file name or a string that literally holds the osql contents.validate
- holds whether the reader should be validating against the schema or not.
java.lang.Exception
- if there are errors in reading the string or setting the OSQuery.public java.lang.String writeOSqL() throws java.lang.Exception
java.lang.Exception
- if there are errors in writing the osql string.public StandardQuery getStandardQuery()
StandardQuery
public boolean setStandardQuery(StandardQuery standardQuery)
standardQuery
- holds the standard query in the StandardQuery data structure.
StandardQuery
public java.lang.String getXQuery()
public boolean setXQuery(java.lang.String xQuery)
xQuery
- holds the XQuery in a string.
public static void main(java.lang.String[] args)
argv
- command line arguments.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |