org.optimizationservices.oscommon.representationparser
Class OSuLWriter

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

public class OSuLWriter
extends OSgLWriter

The OSuLWriter class is used to construct an instance that follows the OSuL 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
OSuLWriter()
          constructor.
 
Method Summary
 boolean addURI(URI uri)
          Add a uri match.
static void main(java.lang.String[] argv)
          main for test purposes.
 boolean setOSURI(OSURI osURI)
          set the OSURI, a standard os uri/url interface.
 boolean setURIMatches(URI[] URIs)
          Set URI matches.
 
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

OSuLWriter

public OSuLWriter()
constructor.

Method Detail

setOSURI

public boolean setOSURI(OSURI osURI)
                 throws java.lang.Exception
set the OSURI, a standard os uri/url interface.

Parameters:
osURI - holds the standard os uri interface.
Returns:
whether the OSURI is set successfully.
Throws:
java.lang.Exception

setURIMatches

public boolean setURIMatches(URI[] URIs)
Set URI matches.

Parameters:
URIs - holds an array of URIs. 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.
Returns:
whether the URIs are set successfully or not.
See Also:
URI

addURI

public boolean addURI(URI uri)
Add a uri match.

Parameters:
URI - holds a uri match. It contains information such as the uri value, matchType, serviceName, licenceRequired, userNameRequired, passwordRequired.
Returns:
whether the uri element is added successfully.

main

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

Parameters:
argv - command line arguments.