/**
* 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: InsertEntry.java,v 1.2 2008/06/25 05:47:10 qcheng Exp $
*
*/
/**
* The class <code>InsertEntry</code> represents a Insert Entry for Discovery
* Modify request.
* <p>The following schema fragment specifies the expected content within the
* <code>InsertEntry</code> object.
* <p>
* <pre>
* <xs:element name="InsertEntry" type="InsertEntryType">
* <complexType name="InsertEntryType">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element ref="{urn:liberty:disco:2003-08}ResourceOffering"/>
* <any/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
* @supported.all.api
*/
public class InsertEntry {
/**
* Constructor.
* @param resourceOffering discovery Resource offering to be inserted.
* @param any List of Directive object, this is to allow the requester to
* include directives about the resource offering being inserted.
*/
public InsertEntry(
{
}
/**
* Constructor.
* @param elem <code>InsertEntry</code> DOM element
* @exception DiscoveryException if error occurs
*/
throw new DiscoveryException(
}
{
throw new DiscoveryException(
}
(nameSpaceURI != null) &&
{
+ "included more than one ResourceOffering.");
}
throw new DiscoveryException(
}
} else {
}
}
}
}
+ "ResourceOffering.");
}
throw new DiscoveryException(
}
}
/**
* Gets the resource offering to be inserted.
*
* @return the resource offering to be inserted.
* @see #setResourceOffering(ResourceOffering)
*/
return offering;
}
/**
* Sets the resource offering to be inserted.
*
* @param value the resource offering to be inserted.
* @see #getResourceOffering()
*/
}
/**
* Gets the value of the Any property.
*
* @return List of <code>com.sun.identity.liberty.ws.disco.Directive</code>
* objects.
* @see #setAny(List)
*/
return any;
}
/**
* Sets the value of the Any property.
*
* @param any List of
* <code>com.sun.identity.liberty.ws.disco.Directive</code> objects.
* @see #getAny()
*/
}
/**
* Gets string format.
*
* @return formatted String.
*/
append("\">");
}
}
}
}
}