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

java.lang.Object
  extended bycom.sun.identity.liberty.ws.disco.Query

public class Query
extends java.lang.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(org.w3c.dom.Element root)
          Constructor.
Query(EncryptedResourceID resourceID, java.util.List RequestedService)
          Constructor.
Query(ResourceID resourceID, java.util.List RequestedService)
          Constructor.
 
Method Summary
 EncryptedResourceID getEncryptedResourceID()
          Gets the encrypted resource ID of the discovery resource to be queried.
 java.lang.String getId()
          Gets id attribute.
 java.util.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(java.lang.String id)
          Sets id attribute.
 void setRequestedServiceType(java.util.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
 java.lang.String toString()
          Returns formatted string of the Query object.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Query

public Query(ResourceID resourceID,
             java.util.List RequestedService)
Constructor.

Parameters:
resourceID - resource ID of the discovery resource to be queried.
RequestedService - List of RequestService object.

Query

public Query(EncryptedResourceID resourceID,
             java.util.List RequestedService)
Constructor.

Parameters:
resourceID - encrypted resource ID of the discovery resource to be queried.
RequestedService - List of RequestService object.

Query

public Query(org.w3c.dom.Element root)
      throws DiscoveryException
Constructor.

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

getId

public java.lang.String getId()
Gets id attribute.

Returns:
id attribute.

setId

public void setId(java.lang.String id)
Sets id attribute.

Parameters:
id - id attribute.

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.

setEncryptedResourceID

public void setEncryptedResourceID(EncryptedResourceID value)
Sets the encrypted resource ID of the discovery resource to be queried.

Parameters:
value - the encrypted resource ID.

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.

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.

getRequestedServiceType

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

Returns:
the list of the requested service types.

setRequestedServiceType

public void setRequestedServiceType(java.util.List requestedService)
Sets the list of the requested service types.

Parameters:
requestedService - the list of the requested service types to be set.

toString

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

Returns:
formatted string of the Query object.


Copyright 2005 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.