com.sun.xml.registry.uddi.infomodel
Class ExtensibleObjectImpl

java.lang.Object
  extended by com.sun.xml.registry.uddi.infomodel.ExtensibleObjectImpl
All Implemented Interfaces:
Serializable, ExtensibleObject
Direct Known Subclasses:
PostalAddressImpl, RegistryObjectImpl

public class ExtensibleObjectImpl
extends Object
implements ExtensibleObject, Serializable

Implementation of ExtensibleObject interface. Class contains a java.util.HashMap that maps names to slots. Unless specified for a given method, the behavior for null names and slots is the same as for null keys and objects in HashMap.

Author:
Bobby Bissett
See Also:
Serialized Form

Constructor Summary
ExtensibleObjectImpl()
          Creates new ExtensibleObjectImpl
 
Method Summary
 void addSlot(Slot slot)
          Add a single slot to the map.
 void addSlots(Collection slots)
          Add multiple slots.
 Slot getSlot(String slotName)
          Get single slot from map.
 Collection getSlots()
          Returns all slots.
 void removeSlot(String slotName)
          Remove single slot from the map.
 void removeSlots(Collection slotNames)
          Remove all slots with the given names.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExtensibleObjectImpl

public ExtensibleObjectImpl()
Creates new ExtensibleObjectImpl

Method Detail

addSlot

public void addSlot(Slot slot)
             throws JAXRException
Add a single slot to the map. The map key is slot.getName() The slot cannot be null.

Specified by:
addSlot in interface ExtensibleObject
Parameters:
slot - the Slot object being added to this object
Throws:
JAXRException - If the JAXR provider encounters an internal error

addSlots

public void addSlots(Collection slots)
              throws JAXRException
Add multiple slots. Null param is treated as an empty collection.

Specified by:
addSlots in interface ExtensibleObject
Parameters:
slots - the Collection of Slot objects being added to this object
Throws:
JAXRException - If the JAXR provider encounters an internal error

getSlot

public Slot getSlot(String slotName)
             throws JAXRException
Get single slot from map.

Specified by:
getSlot in interface ExtensibleObject
Parameters:
slotName - the name of the desired Slot object
Throws:
JAXRException - If the JAXR provider encounters an internal error

getSlots

public Collection getSlots()
                    throws JAXRException
Returns all slots.

Specified by:
getSlots in interface ExtensibleObject
Returns:
Collection of Slot instances. The Collection may be empty but not null.
Throws:
JAXRException - If the JAXR provider encounters an internal error

removeSlot

public void removeSlot(String slotName)
                throws JAXRException
Remove single slot from the map.

Specified by:
removeSlot in interface ExtensibleObject
Parameters:
slotName - the name for the Slot object being removed from this object
Throws:
JAXRException - If the JAXR provider encounters an internal error

removeSlots

public void removeSlots(Collection slotNames)
                 throws JAXRException
Remove all slots with the given names. Null param is treated as an empty collection.

Specified by:
removeSlots in interface ExtensibleObject
Parameters:
slotNames - the Collection of names for Slot objects being removed from this object. Must be a Collection of Strings
Throws:
JAXRException - If the JAXR provider encounters an internal error


Copyright © 2005-2013 Oracle Corporation. All Rights Reserved.