Class Query
- java.lang.Object
-
- com.sun.identity.liberty.ws.disco.Query
-
public class Query extends Object
The classQueryrepresents a discovery Query object. The following schema fragment specifies the expected content within theQueryobject.<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
Constructors Constructor Description Query(EncryptedResourceID resourceID, List RequestedService)Constructor.Query(ResourceID resourceID, List RequestedService)Constructor.Query(Element root)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EncryptedResourceIDgetEncryptedResourceID()Gets the encrypted resource ID of the discovery resource to be queried.StringgetId()Gets id attribute.ListgetRequestedServiceType()Gets the list of the requested service types.ResourceIDgetResourceID()Gets the resource ID of the discovery resource to be queried.voidsetEncryptedResourceID(EncryptedResourceID value)Sets the encrypted resource ID of the discovery resource to be queried.voidsetId(String id)Sets id attribute.voidsetRequestedServiceType(List requestedService)Sets the list of the requested service types.voidsetResourceID(ResourceID resourceID)Sets the resource ID of the discovery resource to be queriedStringtoString()Returns formatted string of theQueryobject.
-
-
-
Constructor Detail
-
Query
public Query(ResourceID resourceID, List RequestedService)
Constructor.- Parameters:
resourceID- resource ID of the discovery resource to be queried.RequestedService- List ofRequestServiceobject.
-
Query
public Query(EncryptedResourceID resourceID, List RequestedService)
Constructor.- Parameters:
resourceID- encrypted resource ID of the discovery resource to be queried.RequestedService- List ofRequestServiceobject.
-
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:
setId(String)
-
setId
public void setId(String id)
Sets id attribute.- Parameters:
id- id attribute.- See Also:
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:
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:
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()
-
-