com.sun.identity.liberty.ws.disco
Class ServiceInstance

java.lang.Object
  extended by com.sun.identity.liberty.ws.disco.ServiceInstance

public class ServiceInstance
extends Object

The class ServiceInstance describes a web service at a distinct protocol endpoint.

The following schema fragment specifies the expected content within the ServiceInstance object.

 <xs:element name="ServiceInstance" type="ServiceInstanceType"/>
 <complexType name="ServiceInstanceType">
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <sequence>
         <element ref="{urn:liberty:disco:2003-08}ServiceType"/>
         <element name="ProviderID" type="{urn:liberty:metadata:2003-08}entityIDType"/>
         <element name="Description" type="{urn:liberty:disco:2003-08}DescriptionType" maxOccurs="unbounded"/>
       </sequence>
     </restriction>
   </complexContent>
 </complexType>
 


Constructor Summary
ServiceInstance()
          Default Constructor.
ServiceInstance(Element elem)
          Constructor.
ServiceInstance(String serviceType, String providerID, List descriptions)
          Constructor
 
Method Summary
 List getDescription()
          Gets the service descriptions.
 String getProviderID()
          Gets provider ID of the service instance.
 String getServiceType()
          Gets service type.
 void setDescription(List desc)
          Sets the service descriptions.
 void setProviderID(String value)
          Sets provider ID.
 void setServiceType(String value)
          Sets service type.
 String toString()
          Returns string format of object ServiceInstance.
 

Constructor Detail

ServiceInstance

public ServiceInstance()
Default Constructor.


ServiceInstance

public ServiceInstance(String serviceType,
                       String providerID,
                       List descriptions)
Constructor

Parameters:
serviceType - service type
providerID - provider ID
descriptions - List of Description objects

ServiceInstance

public ServiceInstance(Element elem)
                throws DiscoveryException
Constructor.

Parameters:
elem - ServiceInstance DOM element.
Throws:
DiscoveryException - if error occurs.
Method Detail

getProviderID

public String getProviderID()
Gets provider ID of the service instance.

Returns:
provider ID of the service instance.
See Also:
ServiceInstance.setProviderID(String)

setProviderID

public void setProviderID(String value)
Sets provider ID.

Parameters:
value - provider ID.
See Also:
ServiceInstance.getProviderID()

getDescription

public List getDescription()
Gets the service descriptions.

Returns:
List of Description objects
See Also:
ServiceInstance.setDescription(List)

setDescription

public void setDescription(List desc)
Sets the service descriptions.

Parameters:
desc - List of Description objects.
See Also:
ServiceInstance.getDescription()

getServiceType

public String getServiceType()
Gets service type.

Returns:
service type.
See Also:
ServiceInstance.setServiceType(String)

setServiceType

public void setServiceType(String value)
Sets service type.

Parameters:
value - service type.
See Also:
ServiceInstance.getServiceType()

toString

public String toString()
Returns string format of object ServiceInstance.

Overrides:
toString in class Object
Returns:
formatted string.