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

java.lang.Object
  |
  +--com.sun.identity.liberty.ws.disco.ServiceInstance

public class ServiceInstance
extends java.lang.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(org.w3c.dom.Element elem)
          Constructor.
ServiceInstance(java.lang.String serviceType, java.lang.String providerID, java.util.List descriptions)
          Constructor
 
Method Summary
 java.util.List getDescription()
          Gets the service descriptions
 java.lang.String getProviderID()
          Gets provider ID of the service instance
 java.lang.String getServiceType()
          Gets service type.
 void setDescription(java.util.List desc)
          Sets the service descriptions.
 void setProviderID(java.lang.String value)
          Sets provider ID
 void setServiceType(java.lang.String value)
          Sets service type
 java.lang.String toString()
          Returns string format.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ServiceInstance

public ServiceInstance()
Default Constructor

ServiceInstance

public ServiceInstance(java.lang.String serviceType,
                       java.lang.String providerID,
                       java.util.List descriptions)
Constructor
Parameters:
serviceType - service type
providerID - provider ID
descriptions - List of Description objects

ServiceInstance

public ServiceInstance(org.w3c.dom.Element elem)
                throws DiscoveryException
Constructor.
Parameters:
elem - ServiceInstance DOM element.
Throws:
DiscoveryException - if error occurs.
Method Detail

getProviderID

public java.lang.String getProviderID()
Gets provider ID of the service instance
Returns:
provider ID of the service instance.

setProviderID

public void setProviderID(java.lang.String value)
Sets provider ID
Parameters:
value - provider ID.

getDescription

public java.util.List getDescription()
Gets the service descriptions
Returns:
List of Description objects

setDescription

public void setDescription(java.util.List desc)
Sets the service descriptions.
Parameters:
desc - List of Description objects.

getServiceType

public java.lang.String getServiceType()
Gets service type.
Returns:
service type.

setServiceType

public void setServiceType(java.lang.String value)
Sets service type
Parameters:
value - service type.

toString

public java.lang.String toString()
Returns string format.
Overrides:
toString in class java.lang.Object
Returns:
formatted string.