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

java.lang.Object
  extended by com.sun.identity.liberty.ws.disco.InsertEntry

public class InsertEntry
extends 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(Element elem)
          Constructor.
InsertEntry(ResourceOffering resourceOffering, List any)
          Constructor.
 
Method Summary
 List getAny()
          Gets the value of the Any property.
 ResourceOffering getResourceOffering()
          Gets the resource offering to be inserted.
 void setAny(List any)
          Sets the value of the Any property.
 void setResourceOffering(ResourceOffering value)
          Sets the resource offering to be inserted.
 String toString()
          Gets string format.
 

Constructor Detail

InsertEntry

public InsertEntry(ResourceOffering resourceOffering,
                   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(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.
See Also:
InsertEntry.setResourceOffering(ResourceOffering)

setResourceOffering

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

Parameters:
value - the resource offering to be inserted.
See Also:
InsertEntry.getResourceOffering()

getAny

public List getAny()
Gets the value of the Any property.

Returns:
List of com.sun.identity.liberty.ws.disco.Directive objects.
See Also:
InsertEntry.setAny(List)

setAny

public void setAny(List any)
Sets the value of the Any property.

Parameters:
any - List of com.sun.identity.liberty.ws.disco.Directive objects.
See Also:
InsertEntry.getAny()

toString

public String toString()
Gets string format.

Overrides:
toString in class Object
Returns:
formatted String.