/**
* 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: DSTModification.java,v 1.2 2008/06/25 05:47:13 qcheng Exp $
*
*/
/**
* The <code>DSTModification</code> class represents a <code>DST</code>
* modification operation.
*
* <p>The following schema fragment specifies the expected content within
* the <code>DSTModification</code> object.
* <p>
* <pre>
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="Select"
* type="{urn:liberty:idpp:2003-08}SelectType"/>
* <element name="NewData" minOccurs="0">
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}
* anyType">
* <sequence>
* <any/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
* </element>
* </sequence>
* <attribute name="overrideAllowed"
* type="{http://www.w3.org/2001/XMLSchema}boolean" />
* <attribute name="id" type="{http://www.w3.org/2001/XMLSchema}ID" />
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
* @supported.all.api
*/
public class DSTModification {
private boolean overrideAllowed = false;
/**
* Default constructor
*/
public DSTModification() {}
/**
* Constructor
* @param select identifies the data service to be modified
* @param notChangedSince match only entries that are not changed
* after the specified date.
* @param serviceNS service namespace
*/
this.notChangedSince = notChangedSince;
}
/**
* Constructor
*
* @param element <code>DOM</code> Element.
* @throws DSTException
*/
}
}
if(nameSpaceURI == null) {
}
}
try {
} catch(ParseException ex) {
"DSTModification(element): date can not be parsed.", ex);
}
}
nameSpaceURI, "Select");
" or more than one select found.");
throw new DSTException(
}
throw new DSTException(
}
nameSpaceURI, "NewData");
"not have more than one new data elements.");
throw new DSTException(
}
for(int i=0; i < size; i++) {
}
}
}
/**
* Gets id attribute
* @return
* {@link java.lang.String}
*/
return id;
}
/**
* Sets id attribute
* @param id id attribute value to be set.
*/
}
/**
* Gets new data value
* @return
* {@link java.util.List}
*/
return newData;
}
/**
* Sets new data value
* @param value list of Data XML DOM Elements
*
*/
}
}
/**
* Checks if override is allowed
* @return if true, means override is allowed, false otherwise
*/
public boolean isOverrideAllowed() {
return overrideAllowed;
}
/**
* Sets if override is allowed
* @param value if true, means override is allowed, false otherwise
*/
this.overrideAllowed = value;
}
/**
* Gets select element
* @return the select element as string
*/
return select;
}
/**
* Sets select element
* @param value select value to be set
*/
}
/**
* Gets the <code>NotChangedSince</code> attribute.
* @return Date for the <code>NotChangedSince</code> attribute
*/
return notChangedSince;
}
/**
* Sets <code>NotChangedSince</code> attribute.
* @param value value of the <code>NotChangedSince</code> attribute to be
* set.
*/
this.notChangedSince = value;
}
/**
* Gets the name space.
* @return String NameSpace String
*/
return nameSpaceURI;
}
/**
* Sets the name space.
* @param nameSpace NameSpace URI
*/
this.nameSpaceURI = nameSpace;
}
/**
* Sets the name space prefix.
* @param prefix NameSpace prefix.
*/
}
/**
* Gets the name space prefix.
* @return String NameSpace 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 Namespace prefix
* @param declareNS if true includes the namespace within the
* generated.
* @return String A string containing the valid XML for this element
*/
if(includeNS) {
}
}
if(declareNS) {
if(nameSpaceURI == null) {
"not defined");
return "";
}
}
}
if(overrideAllowed) {
} else {
}
if(notChangedSince != null) {
.append("\"");
}
if(declareNS) {
}
}
}
// prefix is already defined.
return select;
}
while(st.hasMoreTokens()) {
}
}
}