Class ExtensibleObjectImpl
- java.lang.Object
-
- com.sun.xml.registry.uddi.infomodel.ExtensibleObjectImpl
-
- All Implemented Interfaces:
Serializable,javax.xml.registry.infomodel.ExtensibleObject
- Direct Known Subclasses:
PostalAddressImpl,RegistryObjectImpl
public class ExtensibleObjectImpl extends Object implements javax.xml.registry.infomodel.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(javax.xml.registry.infomodel.Slot slot)Add a single slot to the map.voidaddSlots(Collection slots)Add multiple slots.javax.xml.registry.infomodel.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(javax.xml.registry.infomodel.Slot slot) throws javax.xml.registry.JAXRExceptionAdd a single slot to the map. The map key is slot.getName() The slot cannot be null.- Specified by:
addSlotin interfacejavax.xml.registry.infomodel.ExtensibleObject- Throws:
javax.xml.registry.JAXRException
-
addSlots
public void addSlots(Collection slots) throws javax.xml.registry.JAXRException
Add multiple slots. Null param is treated as an empty collection.- Specified by:
addSlotsin interfacejavax.xml.registry.infomodel.ExtensibleObject- Throws:
javax.xml.registry.JAXRException
-
getSlot
public javax.xml.registry.infomodel.Slot getSlot(String slotName) throws javax.xml.registry.JAXRException
Get single slot from map.- Specified by:
getSlotin interfacejavax.xml.registry.infomodel.ExtensibleObject- Throws:
javax.xml.registry.JAXRException
-
getSlots
public Collection getSlots() throws javax.xml.registry.JAXRException
Returns all slots.- Specified by:
getSlotsin interfacejavax.xml.registry.infomodel.ExtensibleObject- Throws:
javax.xml.registry.JAXRException
-
removeSlot
public void removeSlot(String slotName) throws javax.xml.registry.JAXRException
Remove single slot from the map.- Specified by:
removeSlotin interfacejavax.xml.registry.infomodel.ExtensibleObject- Throws:
javax.xml.registry.JAXRException
-
removeSlots
public void removeSlots(Collection slotNames) throws javax.xml.registry.JAXRException
Remove all slots with the given names. Null param is treated as an empty collection.- Specified by:
removeSlotsin interfacejavax.xml.registry.infomodel.ExtensibleObject- Throws:
javax.xml.registry.JAXRException
-
-