|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.optimizationservices.oscommon.localinterface.OSURI
public class OSURI
The OSURI
class is a local interface for storing Optimization Services
uri. Its design follows the Optimization Services uri Language (OSuL).
All the data structures in this class are standards specified in OSuL.
Field Summary | |
---|---|
URI[] |
uri
uri holds an array of URIs. |
Constructor Summary | |
---|---|
OSURI()
Default constructor. |
Method Summary | |
---|---|
URI[] |
getURIMatches()
Get URI matches. |
static void |
main(java.lang.String[] args)
main for test purposes. |
OSURI |
readOSuL(java.lang.String osul,
boolean isFile,
boolean validate)
read an OSuL instance and return and OSURI object. |
boolean |
setURIMatches(URI[] URIs)
Set URI matches. |
java.lang.String |
writeOSuL()
write the OSURI to an osul xml string. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public URI[] uri
Constructor Detail |
---|
public OSURI()
Method Detail |
---|
public OSURI readOSuL(java.lang.String osul, boolean isFile, boolean validate) throws java.lang.Exception
osul
- holds the optimization uri in a string which format follows the
Optimization Services uri Language (OSuL) schema.isFile
- holds whether the osul string is a file name or a string that literally holds the osul 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 OSURI.public java.lang.String writeOSuL() throws java.lang.Exception
java.lang.Exception
- if there are errors in writing the osul string.public URI[] getURIMatches()
URI
public boolean setURIMatches(URI[] URIs)
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.
URI
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 |