|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.optimizationservices.oscommon.representationparser.OSgLWriter
org.optimizationservices.oscommon.representationparser.OSRegistryWriter
public class OSRegistryWriter
The OSRegistryWriter
class is used to construct an instance that follows
the OSRegistry format.
Field Summary |
---|
Fields inherited from class org.optimizationservices.oscommon.representationparser.OSgLWriter |
---|
m_document |
Constructor Summary | |
---|---|
OSRegistryWriter()
Constructor. |
Method Summary | |
---|---|
boolean |
addNewsElement(java.util.GregorianCalendar time,
java.lang.String value)
Add a news element. |
boolean |
addService(ServiceEntry service)
Add an OSRegistry service. |
boolean |
deleteService(java.lang.String serviceURI)
Delete an OSRegistry service. |
static void |
main(java.lang.String[] argv)
main for test purposes. |
boolean |
setDescription(java.lang.String description)
Set the description element. |
boolean |
setNews(NewsElement[] newsElements)
Set the OSRegistry news. |
boolean |
setOSRegistry(OSRegistry osRegistry)
set the OSRegistry, a standard os registry data structure. |
boolean |
setServices(ServiceEntry[] services)
Set the OSRegistry services. |
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 |
---|
public OSRegistryWriter()
Method Detail |
---|
public boolean setOSRegistry(OSRegistry osRegistry) throws java.lang.Exception
osRegistry
- holds the standard os registry data structure.
java.lang.Exception
public boolean setDescription(java.lang.String description)
description
- holds the description of the os registry.
public boolean addNewsElement(java.util.GregorianCalendar time, java.lang.String value)
time
- holds the time.value
- holds the news element value.
public boolean setNews(NewsElement[] newsElements)
NewsElement
public boolean setServices(ServiceEntry[] services)
ServiceEntry
public boolean addService(ServiceEntry service)
ServiceEntry
public boolean deleteService(java.lang.String serviceURI)
ServiceEntry
public static void main(java.lang.String[] argv)
argv
- command line arguments.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |