| java.lang.Object com.xoetrope.carousel.services.ServiceManager
ServiceManager | public class ServiceManager (Code) | | Singleton class for tracking loaded services and changes being made in the
editor to the services. The services are stored as XmlElements within the
services Hashtable. This storage mechanism makes it easier to load and save
data
Copyright (c) Xoetrope Ltd., 2001-2006, This software is licensed under
the GNU Public License (GPL), please see license.txt for more details. If
you make commercial use of this software you must purchase a commercial
license from Xoetrope.
$Revision: 1.8 $
|
SIDE_CLIENT | final public static int SIDE_CLIENT(Code) | | |
SIDE_SERVER | final public static int SIDE_SERVER(Code) | | |
ServiceManager | public ServiceManager(XEditorProject proj)(Code) | | Create the services Hashtable
|
addService | public void addService(String name, int side)(Code) | | Add a service with the specified name to the Hashtable. The object added is
an XmlElement.
Parameters: name - |
getServices | public XBaseModel getServices(int side)(Code) | | Get a reference to the services Hashtable.
the services Hashtable |
loadServicesFromFile | public void loadServicesFromFile(XEditorProject proj)(Code) | | Get the sevices file name from the XLibXModelManager and load it into an
xml element. Iterate the child elements and add them to the services
Hashtable.
Parameters: currentProject - the currentProject we are working with |
removeService | public void removeService(String serviceName, int side)(Code) | | |
saveServices | public void saveServices(XEditorProject project)(Code) | | Save the services file using the filename passed. Iterate the services
Hashtable and build up the xml hierarchy. Save the file using the root
node.
Parameters: currentProject - the currentProject we are working with Parameters: filename - the name of the services file |
setRouteName | public void setRouteName(String serviceName, String routeName, int side)(Code) | | |
|
|