/**
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
* Copyright (c) 2006 Sun Microsystems Inc. All Rights Reserved
*
* The contents of this file are subject to the terms
* of the Common Development and Distribution License
* (the License). You may not use this file except in
* compliance with the License.
*
* You can obtain a copy of the License at
* See the License for the specific language governing
* permission and limitations under the License.
*
* When distributing Covered Code, include this CDDL
* Header Notice in each file and include the License file
* at opensso/legal/CDDLv1.0.txt.
* If applicable, add the following below the CDDL Header,
* with the fields enclosed by brackets [] replaced by
* your own identifying information:
* "Portions Copyrighted [year] [name of copyright owner]"
*
* $Id: DSTQueryResponse.java,v 1.2 2008/06/25 05:47:13 qcheng Exp $
*
*/
/**
* The class <code>DSTQueryResponse</code> represents a <code>DST</code> query
* response.
* The following schema fragment specifies the expected content within
* the <code>DSTQueryResponse</code> object.
* <pre>
* <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>
* </pre>
*
* @supported.all.api
*/
public class DSTQueryResponse {
/**
* Default constructor
*/
public DSTQueryResponse() {}
/**
* Constructor
* @param data List of <code>DSTData</code> objects
* @param serviceNS service name space
*/
}
}
/**
* Constructor
*
* @param element <code>DOM</code> Element
* @throws DSTException
*/
}
"element name");
}
if(nameSpaceURI == null) {
" not defined");
}
try {
} catch (ParseException ex) {
"DSTQueryResponse(element): can not parse the date", ex);
}
}
"not have child elements.");
}
continue;
}
} else {
" have invalid elements.");
throw new DSTException(
}
}
"not have Status element.");
}
}
/**
* Gets status for the query response
* @return Status
*/
return dstStatus;
}
/**
* Sets status for the query response
* @param status Status object to be set
*/
}
/**
* Gets time stamp
* @return Date
*/
return dateStamp;
}
/**
* Sets time stamp
* @param date Date to be set
*/
}
/**
* Gets id attribute.
*
* @return id attribute.
*/
return id;
}
/**
* Sets id attribute
*
* @param id id attribute to be set
*/
}
/**
* Gets item reference.
*
* @return item reference.
*/
return itemIDRef;
}
/**
* Sets item reference.
*
* @param ref item ID reference to be set.
*/
}
/**
* Gets the value of the Data property.
*
* @return List of <code>DSTData</code> objects
*
*/
return data;
}
/**
* Gets the extension property.
*
* @return List of any <code>java.lang.Object</code>
*
*/
return extensions;
}
/**
* Gets the name space.
* @return Name space.
*/
return nameSpaceURI;
}
/**
* Sets the name space.
*
* @param nameSpace Name space URI.
*/
this.nameSpaceURI = nameSpace;
}
/**
* Sets the name space prefix.
* @param prefix Name Space prefix.
*/
}
/**
* Gets the name space prefix.
* @return Name Space prefix.
*/
return prefix;
}
/**
* Creates a String representation of this object.
* By default name space name is prepended to the element name
* @return String A string containing the valid XML for this element
*/
return toString(true, false);
}
/**
* Creates a String representation of this object.
* @param includeNS if true prepends all elements by their name space
* prefix
* @param declareNS if true includes the name space within the
* generated.
* @return String A string containing the valid XML for this element
*/
return "";
}
if(includeNS) {
}
}
if(declareNS) {
if(nameSpaceURI == null) {
"not defined");
return "";
}
}
}
}
.append("\"");
}
if(declareNS) {
}
}
}
}