org.optimizationservices.oscommon.representationparser
Class OSqLWriter

java.lang.Object
  extended by org.optimizationservices.oscommon.representationparser.OSgLWriter
      extended by org.optimizationservices.oscommon.representationparser.OSqLWriter

public class OSqLWriter
extends OSgLWriter

The OSqLWriter class is used to construct an instance that follows the OSqL format.

Since:
OS 1.0
Version:
1.0, 03/14/2004
Author:
Robert Fourer, Jun Ma, Kipp Martin

Field Summary
 
Fields inherited from class org.optimizationservices.oscommon.representationparser.OSgLWriter
m_document
 
Constructor Summary
OSqLWriter()
          constructor.
 
Method Summary
static void main(java.lang.String[] argv)
          main for test purposes.
 boolean setOSQuery(OSQuery osQuery)
          set the OSQuery, a standard os query interface.
 boolean setStandardQuery(StandardQuery standardQuery)
          set the standard query.
 boolean setXQuery(java.lang.String xQuery)
          Set the XQuery.
 
Methods inherited from class org.optimizationservices.oscommon.representationparser.OSgLWriter
getDocument, setDocument, writeToFile, writeToSring, writeToStandardOutput
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OSqLWriter

public OSqLWriter()
constructor.

Method Detail

setOSQuery

public boolean setOSQuery(OSQuery osQuery)
                   throws java.lang.Exception
set the OSQuery, a standard os query interface.

Parameters:
osQuery - holds the standard os query interface.
Returns:
whether the OSQuery is set successfully.
Throws:
java.lang.Exception

setStandardQuery

public boolean setStandardQuery(StandardQuery standardQuery)
set the standard query.

Parameters:
standardQuery - holds the standard query in the StandardQuery data structure.
Returns:
whether the standard query is set successfully.
See Also:
StandardQuery

setXQuery

public boolean setXQuery(java.lang.String xQuery)
Set the XQuery.

Parameters:
xQuery - holds the XQuery in a string.
Returns:
whether the XQuery is set successfully or not.

main

public static void main(java.lang.String[] argv)
main for test purposes.

Parameters:
argv - command line arguments.