com.sun.identity.liberty.ws.disco
Class InsertEntry

java.lang.Object
  |
  +--com.sun.identity.liberty.ws.disco.InsertEntry

public class InsertEntry
extends java.lang.Object

The class InsertEntry represents a Insert Entry for Discovery Modify request.

The following schema fragment specifies the expected content within the InsertEntry object.

 <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>
 


Constructor Summary
InsertEntry(org.w3c.dom.Element elem)
          Constructor.
InsertEntry(ResourceOffering resourceOffering, java.util.List any)
          Constructor
 
Method Summary
 java.util.List getAny()
          Gets the value of the Any property.
 ResourceOffering getResourceOffering()
          Gets the resource offering to be inserted.
 void setAny(java.util.List any)
          Sets the value of the Any property.
 void setResourceOffering(ResourceOffering value)
          Sets the resource offering to be inserted.
 java.lang.String toString()
          Gets string format.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

InsertEntry

public InsertEntry(ResourceOffering resourceOffering,
                   java.util.List any)
Constructor
Parameters:
resourceOffering - discovery Resource offering to be inserted.
any - List of Directive object, this is to allow the requester to include directives about the resource offering being inserted.

InsertEntry

public InsertEntry(org.w3c.dom.Element elem)
            throws DiscoveryException
Constructor.
Parameters:
elem - InsertEntry DOM element
Throws:
DiscoveryException - if error occurs
Method Detail

getResourceOffering

public ResourceOffering getResourceOffering()
Gets the resource offering to be inserted.
Returns:
the resource offering to be inserted.

setResourceOffering

public void setResourceOffering(ResourceOffering value)
Sets the resource offering to be inserted.
Parameters:
value - the resource offering to be inserted.

getAny

public java.util.List getAny()
Gets the value of the Any property.
Returns:
List of com.sun.identity.liberty.ws.disco.Directive objects.

setAny

public void setAny(java.util.List any)
Sets the value of the Any property.
Parameters:
any - List of com.sun.identity.liberty.ws.disco.Directive objects.

toString

public java.lang.String toString()
Gets string format.
Overrides:
toString in class java.lang.Object
Returns:
formatted String.


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