By Jamie Ho
University of Toronto
June 19, 1999
Listening and accepting the registration of new and updated descriptions from the description builder.
Listening and providing XIBDescription object on request from information brokers.
Note: You do not need to manually run the RMI registry program before running the server. The server will automatically run the registry program when it starts.
While connected to the server, the following methods can be called:
/**
*Method: addDTD
*Parameters:
* String doc: The DTD represented in string format.
* String key: A unique name that the DTD will be stored under.
* boolean update: true if we are updating an existing DTD and false otherwise.
*Return value:
* A boolean value to indicate whether or not the DTD was successfully added or
* updated.
*/
public boolean addDTD(String doc, String key, boolean
update) throws RemoteException;
/**
*Method: addXML
*Parameters:
* String desc: The XIBDescription object to be added to the repository in string format.
* boolean update: true if we are updating an existing XML document and false otherwise.
*Return value:
* A boolean value to indicate whether or not the DTD was successfully added or
* updated.
*/
public boolean addXML(Object desc, boolean update) throws RemoteException;
/**
*Method: elements
*Return value:
* An enumeration of all descriptions in the repository.
*/
public Object elements() throws
RemoteException;
/**
*Method: getDTD
*Parameters:
* String key: The key for the DTD to be retrieved.
* A string representing the DTD or null if there is no DTD in the repository with the
given key.
*/
public String getDTD(String key) throws
RemoteException;
/**
*Method: getDtdList
*Return value:
* An array of names of DTDs in the repository.
*/
public String[] getDtdList() throws
RemoteException;
/**
*Method: getNumXmlDocs
*Return value:
* An integer representing the number of XML documents in the repository.
*/
public int getNumXmlDocs() throws
RemoteException;
/**
*Method: getXML
*Parameters:
* String key: The key for the XML document to be retrieved.
* A string representing the XML documenr or null if there is no XML document
* in the repository with the given key.
*/
public String getXML(String key) throws
RemoteException;
/**
*Method: getXmlList
*Return value:
* An array of names of all XML documents in the repository.
*/
public Object getXmlList() throws
RemoteException;
/**
*Method: removeDTD
*Parameters:
* String key: The name of the DTD to be removed from the repository.
*/
public void removeDTD(String key) throws
RemoteException;
/**
*Method: removeXML
*Parameters:
* String key: The name of the XML document to be removed from the repository.
*/
public void removeXML(String key) throws
RemoteException;