/**
* 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: Modify.java,v 1.2 2008/06/25 05:47:10 qcheng Exp $
*
*/
/**
* This class represents a discovery modify request.
* The following schema fragment specifies the expected content within
* the <code>Modify</code> object.
* <pre>
* <xs:element name="Modify" type="ModifyType"/>
* <complexType name="ModifyType">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <group ref="{urn:liberty:disco:2003-08}ResourceIDGroup"/>
* <element name="InsertEntry" type="{urn:liberty:disco:2003-08}InsertEntryType" maxOccurs="unbounded" minOccurs="0"/>
* <element name="RemoveEntry" type="{urn:liberty:disco:2003-08}RemoveEntryType" maxOccurs="unbounded" minOccurs="0"/>
* </sequence>
* <attribute name="id" type="{http://www.w3.org/2001/XMLSchema}ID" />
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
* @supported.all.api
*/
public class Modify {
/**
* Constructor.
* @param resourceID ID for the discovery resource to be modified
* @param insertEntry List of insert entries
* @param removeEntry List of remove entries
*/
{
this.resourceID = resourceID;
}
/**
* Constructor.
* @param resourceID Encrypted Discovery Resource ID to be modified
* @param insertEntry List of insert entries
* @param removeEntry List of remove entries
*/
{
}
/**
* Default constructor.
*/
public Modify() {}
/**
* Constructor.
* @param root Modify DOM element
* @exception DiscoveryException if error occurs
*/
throw new DiscoveryException(
}
{
throw new DiscoveryException(
}
if ((nameSpaceURI == null) ||
{
+ "invalid namespace for node " + nodeName);
}
throw new DiscoveryException(
}
+ " more than one ResourceIDGroup element.");
}
throw new DiscoveryException(
}
+ " more than one ResourceIDGroup element.");
}
throw new DiscoveryException(
}
}
}
} else {
+ " node" + nodeName);
}
throw new DiscoveryException(
}
} // if nodeName != null
} // done for the nl loop
// make sure there is a ResourceID or EncryptedResourceID
+ "or EncryptedResourceID element.");
}
throw new DiscoveryException(
}
}
/**
* Gets the encrypted resource ID for the discovery resource to be modified.
*
* @return the encrypted resource ID.
* @see #setEncryptedResourceID(EncryptedResourceID)
*/
return encryptResID;
}
/**
* Sets the encrypted resource ID for the discovery resource to be modified.
*
* @param value the encrypted resource ID.
* @see #getEncryptedResourceID()
*/
}
/**
* Gets the resource ID for the discovery resource to be modified.
*
* @return resource ID for the discovery resource to be modified.
* @see #setResourceID(ResourceID)
*/
return resourceID;
}
/**
* Sets resource ID for the discovery resource to be modified.
* @param resourceID resource ID for the discovery resource to be modified.
* @see #getResourceID()
*/
this.resourceID = resourceID;
}
/**
* Gets id attribute.
*
* @return id attribute.
*/
return id;
}
/**
* Gets the value of the <code>RemoveEntry</code> property.
*
* @return List of <code>RemoveEntry</code> objects
* @see #setRemoveEntry(List)
*/
return removes;
}
/**
* Sets the value of the <code>RemoveEntry</code> property.
*
* @param removes List of <code>RemoveEntry</code> object.
* @see #getRemoveEntry()
*/
}
/**
* Gets the value of the <code>InsertEntry</code> property.
*
* @return List of <code>InsertEntry</code> object
* @see #setInsertEntry(List)
*/
return inserts;
}
/**
* Sets the value of the <code>InsertEntry</code> property.
*
* @param inserts List of <code>InsertEntry</code> object.
* @see #getInsertEntry()
*/
}
/**
* Gets string format.
*
* @return formatted String.
*/
append("\"");
}
if (resourceID != null) {
} else if (encryptResID != null) {
}
}
}
}
}
}
}