Class Query


  • public class Query
    extends Object
    The class Query represents a discovery Query object. The following schema fragment specifies the expected content within the Query object.
     <xs:element name="Query" type="Query"/> 
     <complexType name="Query">
       <complexContent>
         <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
           <sequence>
             <group ref="{urn:liberty:disco:2003-08}ResourceIDGroup"/>
             <element name="RequestedServiceType" maxOccurs="unbounded" minOccurs="0">
               <complexType>
                 <complexContent>
                   <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
                     <sequence>
                       <element ref="{urn:liberty:disco:2003-08}ServiceType"/>
                       <element ref="{urn:liberty:disco:2003-08}Options" minOccurs="0"/>
                     </sequence>
                   </restriction>
                 </complexContent>
               </complexType>
             </element>
           </sequence>
           <attribute name="id" type="{http://www.w3.org/2001/XMLSchema}ID" />
         </restriction>
       </complexContent>
     </complexType>
     
    • Constructor Detail

      • Query

        public Query​(ResourceID resourceID,
                     List RequestedService)
        Constructor.
        Parameters:
        resourceID - resource ID of the discovery resource to be queried.
        RequestedService - List of RequestService object.
      • Query

        public Query​(EncryptedResourceID resourceID,
                     List RequestedService)
        Constructor.
        Parameters:
        resourceID - encrypted resource ID of the discovery resource to be queried.
        RequestedService - List of RequestService object.
    • Method Detail

      • getId

        public String getId()
        Gets id attribute.
        Returns:
        id attribute.
        See Also:
        setId(String)
      • setId

        public void setId​(String id)
        Sets id attribute.
        Parameters:
        id - id attribute.
        See Also:
        getId()
      • setEncryptedResourceID

        public void setEncryptedResourceID​(EncryptedResourceID value)
        Sets the encrypted resource ID of the discovery resource to be queried.
        Parameters:
        value - the encrypted resource ID.
        See Also:
        getEncryptedResourceID()
      • getResourceID

        public ResourceID getResourceID()
        Gets the resource ID of the discovery resource to be queried.
        Returns:
        the resource ID of the discovery resource to be queried.
        See Also:
        setResourceID(ResourceID)
      • setResourceID

        public void setResourceID​(ResourceID resourceID)
        Sets the resource ID of the discovery resource to be queried
        Parameters:
        resourceID - the resource ID of the discovery resource to be queried.
        See Also:
        getResourceID()
      • getRequestedServiceType

        public List getRequestedServiceType()
        Gets the list of the requested service types.
        Returns:
        the list of the requested service types.
        See Also:
        setRequestedServiceType(List)
      • setRequestedServiceType

        public void setRequestedServiceType​(List requestedService)
        Sets the list of the requested service types.
        Parameters:
        requestedService - the list of the requested service types to be set.
        See Also:
        getRequestedServiceType()
      • toString

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