no.ubicollab.osgi
Class Service

java.lang.Object
  extended by no.ubicollab.osgi.Service

public class Service
extends java.lang.Object

The Service Class is intended to store information about proxy services in UbiCollab.


Constructor Summary
Service()
          Constructor to create an empty Service object.
Service(java.lang.String name, java.lang.String serviceURI, java.lang.String space, int spaceID, long bundleID, java.lang.String descriptionUri, java.lang.String type, java.lang.String description)
          Constructor for creating an Service object and setting the variables at the same time.
 
Method Summary
 long getBundleID()
          Gets the bundle ID attribute of the service.
 java.lang.String getDescription()
          Gets the description attribute of the service.
 java.lang.String getDescriptionURI()
          Gets the description URI attribute of the service.
 java.lang.String getName()
          Gets the name attribute of the service.
 java.lang.String getServiceURI()
          Gets the service URI attribute of the service.
 java.lang.String getSpace()
          Gets the space attribute of the service.
 int getSpaceID()
          Gets the space ID attribute of the service.
 java.lang.String getType()
          Gets the type attribute of the service.
 void setBundleID(long bundleID)
          Sets the bundle ID attribute of the service.
 void setDescription(java.lang.String description)
          Sets the description attribute of the service.
 void setDescriptionURI(java.lang.String descriptionURI)
          Sets the description URI attribute of the service.
 void setName(java.lang.String name)
          Sets the name attribute of the service.
 void setServiceURI(java.lang.String serviceURI)
          Sets the service URI attribute of the service.
 void setSpace(java.lang.String space)
          Sets the space attribute of the service.
 void setSpaceID(int spaceID)
          Sets the space ID attribute of the service.
 void setType(java.lang.String type)
          Sets the type attribute of the service.
 java.lang.String toXML(java.lang.String state)
          Gets the XML represenatation for the service.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Service

public Service()
Constructor to create an empty Service object.


Service

public Service(java.lang.String name,
               java.lang.String serviceURI,
               java.lang.String space,
               int spaceID,
               long bundleID,
               java.lang.String descriptionUri,
               java.lang.String type,
               java.lang.String description)
Constructor for creating an Service object and setting the variables at the same time.

Parameters:
spaceID - the space ID for the space this service is located in
space - the name of the space
name - the name
bundleID - the bundle ID
serviceURI - the service URI
descriptionUri - the URI pointing to the service description
type - the service type
description - a textual description of the service
Method Detail

toXML

public java.lang.String toXML(java.lang.String state)
Gets the XML represenatation for the service.

Parameters:
state - the state of the service
Returns:
the XML representing the service

getBundleID

public long getBundleID()
Gets the bundle ID attribute of the service.

Returns:
the bundle ID attribute of the service

setBundleID

public void setBundleID(long bundleID)
Sets the bundle ID attribute of the service.

Parameters:
bundleID - the bundle ID attribute of the service

getName

public java.lang.String getName()
Gets the name attribute of the service.

Returns:
the name attribute of the service

setName

public void setName(java.lang.String name)
Sets the name attribute of the service.

Parameters:
name - the name attribute of the service

getServiceURI

public java.lang.String getServiceURI()
Gets the service URI attribute of the service.

Returns:
the service URI attribute of the service

setServiceURI

public void setServiceURI(java.lang.String serviceURI)
Sets the service URI attribute of the service.

Parameters:
serviceURI - the service URI attribute of the service

getSpace

public java.lang.String getSpace()
Gets the space attribute of the service.

Returns:
the space attribute of the service

setSpace

public void setSpace(java.lang.String space)
Sets the space attribute of the service.

Parameters:
space - the space attribute of the service

getSpaceID

public int getSpaceID()
Gets the space ID attribute of the service.

Returns:
the space ID attribute of the service

setSpaceID

public void setSpaceID(int spaceID)
Sets the space ID attribute of the service.

Parameters:
spaceID - the space ID attribute of the service

getDescriptionURI

public java.lang.String getDescriptionURI()
Gets the description URI attribute of the service.

Returns:
the description URI attribute of the service

setDescriptionURI

public void setDescriptionURI(java.lang.String descriptionURI)
Sets the description URI attribute of the service.

Parameters:
descriptionURI - the description URI attribute of the service

getType

public java.lang.String getType()
Gets the type attribute of the service.

Returns:
the type attribute of the service

setType

public void setType(java.lang.String type)
Sets the type attribute of the service.

Parameters:
type - the type attribute of the service

getDescription

public java.lang.String getDescription()
Gets the description attribute of the service.

Returns:
the description

setDescription

public void setDescription(java.lang.String description)
Sets the description attribute of the service.

Parameters:
description - the description