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

java.lang.Object
  extended by com.sun.identity.liberty.ws.disco.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 Summary
Query(Element root)
          Constructor.
Query(EncryptedResourceID resourceID, List RequestedService)
          Constructor.
Query(ResourceID resourceID, List RequestedService)
          Constructor.
 
Method Summary
 EncryptedResourceID getEncryptedResourceID()
          Gets the encrypted resource ID of the discovery resource to be queried.
 String getId()
          Gets id attribute.
 List getRequestedServiceType()
          Gets the list of the requested service types.
 ResourceID getResourceID()
          Gets the resource ID of the discovery resource to be queried.
 void setEncryptedResourceID(EncryptedResourceID value)
          Sets the encrypted resource ID of the discovery resource to be queried.
 void setId(String id)
          Sets id attribute.
 void setRequestedServiceType(List requestedService)
          Sets the list of the requested service types.
 void setResourceID(ResourceID resourceID)
          Sets the resource ID of the discovery resource to be queried
 String toString()
          Returns formatted string of the Query object.
 

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.

Query

public Query(Element root)
      throws DiscoveryException
Constructor.

Parameters:
root - Query in DOM Element
Throws:
DiscoveryException - if error occurs
Method Detail

getId

public String getId()
Gets id attribute.

Returns:
id attribute.
See Also:
Query.setId(String)

setId

public void setId(String id)
Sets id attribute.

Parameters:
id - id attribute.
See Also:
Query.getId()

getEncryptedResourceID

public EncryptedResourceID getEncryptedResourceID()
Gets the encrypted resource ID of the discovery resource to be queried.

Returns:
the encrypted resource ID of the discovery resource to be queried.
See Also:
Query.setEncryptedResourceID(EncryptedResourceID)

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:
Query.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:
Query.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:
Query.getResourceID()

getRequestedServiceType

public List getRequestedServiceType()
Gets the list of the requested service types.

Returns:
the list of the requested service types.
See Also:
Query.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:
Query.getRequestedServiceType()

toString

public String toString()
Returns formatted string of the Query object.

Overrides:
toString in class Object
Returns:
formatted string of the Query object.