Class ExtensibleObjectImpl
- java.lang.Object
-
- 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
Constructors Constructor Description ExtensibleObjectImpl()Creates new ExtensibleObjectImpl
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddSlot(Slot slot)Add a single slot to the map.voidaddSlots(Collection slots)Add multiple slots.SlotgetSlot(String slotName)Get single slot from map.CollectiongetSlots()Returns all slots.voidremoveSlot(String slotName)Remove single slot from the map.voidremoveSlots(Collection slotNames)Remove all slots with the given names.
-
-
-
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:
addSlotin interfaceExtensibleObject- 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:
addSlotsin interfaceExtensibleObject- 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:
getSlotin interfaceExtensibleObject- 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:
getSlotsin interfaceExtensibleObject- 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:
removeSlotin interfaceExtensibleObject- 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:
removeSlotsin interfaceExtensibleObject- 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
-
-