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

      • ExtensibleObjectImpl

        public ExtensibleObjectImpl()
        Creates new ExtensibleObjectImpl
    • Method Detail

      • addSlot

        public void addSlot​(javax.xml.registry.infomodel.Slot slot)
                     throws javax.xml.registry.JAXRException
        Add a single slot to the map. The map key is slot.getName() The slot cannot be null.
        Specified by:
        addSlot in interface javax.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:
        addSlots in interface javax.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:
        getSlot in interface javax.xml.registry.infomodel.ExtensibleObject
        Throws:
        javax.xml.registry.JAXRException
      • getSlots

        public Collection getSlots()
                            throws javax.xml.registry.JAXRException
        Returns all slots.
        Specified by:
        getSlots in interface javax.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:
        removeSlot in interface javax.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:
        removeSlots in interface javax.xml.registry.infomodel.ExtensibleObject
        Throws:
        javax.xml.registry.JAXRException