public interface ExtensibleObject {
// Public Instance Methods
public abstract void addSlot(Slot slot)
throws javax.xml.registry.JAXRException; //L0
public abstract void addSlots(Collection slots)
throws javax.xml.registry.JAXRException; //L0
public abstract Slot getSlot(String slotName)
throws javax.xml.registry.JAXRException; //L0
public abstract Collection getSlots( )
throws javax.xml.registry.JAXRException; //L0
public abstract void removeSlot(String slotName)
throws javax.xml.registry.JAXRException; //L0
public abstract void removeSlots(Collection slotNames)
throws javax.xml.registry.JAXRException; //L0
}
ExtensibleObject is the interface from which all
objects that reside in the registry are derived. The methods of this
interface provide for the association with a registry object of
attributes that are not explicitly defined in the JAXR API. An
ExtensibleObject may have any number of these
attributes, which are represented by the Slot
interface. Slots are created and added by the JAXR
provider and may also be used by application code, although not all
JAXR providers will store application-created
Slots in the registry.
Slots can be added to an
ExtensibleObject either singly using the
addSlot( ) method or as a group by calling
addSlots( ); they can be removed using
removeSlot( ) or removeSlots(
). Both of these methods use the name of the
Slot as the key. The getSlot( )
method locates a Slot given its name and returns
null if no slot with the supplied name is
associated with the ExtensibleObject. Finally, the
getSlots( ) method returns a
Collection containing all of an
object's Slots.