org.optimizationservices.oscommon.representationparser
Class OSuLReader

java.lang.Object
  extended by org.optimizationservices.oscommon.representationparser.OSgLReader
      extended by org.optimizationservices.oscommon.representationparser.OSuLReader

public class OSuLReader
extends OSgLReader

The OSuLReader class parses an OSuL instance into a DOM tree and provides a set of "get" methods that can be used to retrieve different pieces of information of the instance.

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.OSgLReader
m_document
 
Constructor Summary
OSuLReader()
          Default constructor.
OSuLReader(boolean validate)
          constructor.
 
Method Summary
 OSURI getOSURI()
          get the standard OSURI, a local interface for storing Optimization Services uri/url results.
 URI[] getURIMatches()
          Get URI matches.
static void main(java.lang.String[] argv)
          main for test purposes.
 
Methods inherited from class org.optimizationservices.oscommon.representationparser.OSgLReader
getDocument, getRootElement, isValidate, readFile, readString, setDocument, setRootElement, setValidate, writeToFile, writeToSring, writeToStandardOutput
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OSuLReader

public OSuLReader(boolean validate)
constructor.

Parameters:
validate - holds whether the reader should be validating against the schema or not.

OSuLReader

public OSuLReader()
Default constructor.

Method Detail

getOSURI

public OSURI getOSURI()
               throws java.lang.Exception
get the standard OSURI, a local interface for storing Optimization Services uri/url results.

Returns:
the OSURI.
Throws:
java.lang.Exception - if there are errors getting the OSURI.

getURIMatches

public URI[] getURIMatches()
Get URI matches.

Returns:
an array of URIs, null if none. Each member of the URI array is of a URI data structure. It contains information such as the uri value, matchType, serviceName, licenceRequired, userNameRequired, passwordRequired.
See Also:
URI

main

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

Parameters:
argv - command line arguments.