Class 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 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
    • Method Detail

      • getProviderID

        public String getProviderID()
        Gets provider ID of the service instance.
        Returns:
        provider ID of the service instance.
        See Also:
        setProviderID(String)
      • setProviderID

        public void setProviderID​(String value)
        Sets provider ID.
        Parameters:
        value - provider ID.
        See Also:
        getProviderID()
      • getDescription

        public List getDescription()
        Gets the service descriptions.
        Returns:
        List of Description objects
        See Also:
        setDescription(List)
      • setDescription

        public void setDescription​(List desc)
        Sets the service descriptions.
        Parameters:
        desc - List of Description objects.
        See Also:
        getDescription()
      • setServiceType

        public void setServiceType​(String value)
        Sets service type.
        Parameters:
        value - service type.
        See Also:
        getServiceType()
      • toString

        public String toString()
        Returns string format of object ServiceInstance.
        Overrides:
        toString in class Object
        Returns:
        formatted string.