com.sun.identity.liberty.ws.dst
Class DSTQueryResponse

java.lang.Object
  |
  +--com.sun.identity.liberty.ws.dst.DSTQueryResponse

public class DSTQueryResponse
extends java.lang.Object

The class DSTQueryResponse represents a DST query response. The following schema fragment specifies the expected content within the DSTQueryResponse object.

 <complexType name="QueryResponse">
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <sequence>
         <element ref="{urn:liberty:idpp:2003-08}Status"/>
         <element name="Data" maxOccurs="unbounded" minOccurs="0">
           <complexType>
             <complexContent>
               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
                 <sequence>
                   <any/>
                 </sequence>
                 <attribute name="itemIDRef" type="{urn:liberty:idpp:2003-08}IDReferenceType" />
                 <attribute name="id" type="{http://www.w3.org/2001/XMLSchema}ID" />
               </restriction>
             </complexContent>
           </complexType>
         </element>
         <element ref="{urn:liberty:idpp:2003-08}Extension" maxOccurs="unbounded" minOccurs="0"/>
       </sequence>
       <attribute name="timeStamp" type="{http://www.w3.org/2001/XMLSchema}dateTime" />
       <attribute name="itemIDRef" type="{urn:liberty:idpp:2003-08}IDReferenceType" />
       <attribute name="id" type="{http://www.w3.org/2001/XMLSchema}ID" />
     </restriction>
   </complexContent>
 </complexType>
 


Constructor Summary
DSTQueryResponse()
          Default constructor
DSTQueryResponse(org.w3c.dom.Element element)
          Constructor
DSTQueryResponse(java.util.List data, java.lang.String serviceNS)
          Constructor
 
Method Summary
 java.util.List getData()
          Gets the value of the Data property.
 java.util.List getExtension()
          Gets the extension property.
 java.lang.String getId()
          Gets id attribute.
 java.lang.String getItemIDRef()
          Gets item reference.
 java.lang.String getNameSpacePrefix()
          Gets the name space prefix.
 java.lang.String getNameSpaceURI()
          Gets the name space.
 Status getStatus()
          Gets status for the query response
 java.util.Date getTimeStamp()
          Gets time stamp
 void setId(java.lang.String id)
          Sets id attribute
 void setItemIDRef(java.lang.String ref)
          Sets item reference.
 void setNameSpacePrefix(java.lang.String prefix)
          Sets the name space prefix.
 void setNameSpaceURI(java.lang.String nameSpace)
          Sets the name space.
 void setStatus(Status status)
          Sets status for the query response
 void setTimeStamp(java.util.Date date)
          Sets time stamp
 java.lang.String toString()
          Creates a String representation of this object.
 java.lang.String toString(boolean includeNS, boolean declareNS)
          Creates a String representation of this object.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DSTQueryResponse

public DSTQueryResponse()
Default constructor

DSTQueryResponse

public DSTQueryResponse(java.util.List data,
                        java.lang.String serviceNS)
Constructor
Parameters:
data - List of DSTData objects
serviceNS - service name space

DSTQueryResponse

public DSTQueryResponse(org.w3c.dom.Element element)
                 throws DSTException
Constructor
Parameters:
element - DOM Element
Throws:
DSTException -  
Method Detail

getStatus

public Status getStatus()
Gets status for the query response
Returns:
Status

setStatus

public void setStatus(Status status)
Sets status for the query response
Parameters:
status - Status object to be set

getTimeStamp

public java.util.Date getTimeStamp()
Gets time stamp
Returns:
Date

setTimeStamp

public void setTimeStamp(java.util.Date date)
Sets time stamp
Parameters:
date - Date to be set

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 to be set

getItemIDRef

public java.lang.String getItemIDRef()
Gets item reference.
Returns:
item reference.

setItemIDRef

public void setItemIDRef(java.lang.String ref)
Sets item reference.
Parameters:
ref - item ID reference to be set.

getData

public java.util.List getData()
Gets the value of the Data property.
Returns:
List of DSTData objects

getExtension

public java.util.List getExtension()
Gets the extension property.
Returns:
List of any java.lang.Object

getNameSpaceURI

public java.lang.String getNameSpaceURI()
Gets the name space.
Returns:
Name space.

setNameSpaceURI

public void setNameSpaceURI(java.lang.String nameSpace)
Sets the name space.
Parameters:
nameSpace - Name space URI.

setNameSpacePrefix

public void setNameSpacePrefix(java.lang.String prefix)
Sets the name space prefix.
Parameters:
prefix - Name Space prefix.

getNameSpacePrefix

public java.lang.String getNameSpacePrefix()
Gets the name space prefix.
Returns:
Name Space prefix.

toString

public java.lang.String toString()
Creates a String representation of this object. By default name space name is prepended to the element name
Overrides:
toString in class java.lang.Object
Returns:
String A string containing the valid XML for this element

toString

public java.lang.String toString(boolean includeNS,
                                 boolean declareNS)
Creates a String representation of this object.
Parameters:
includeNS - if true prepends all elements by their name space prefix
declareNS - if true includes the name space within the generated.
Returns:
String A string containing the valid XML for this element


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