ExtensibleObject

   
ExtensibleObject javax.xml.registry.infomodel

JAXR 1.0; JWSDP 1.0, J2EE 1.4
 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. Slot s 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 Slot s in the registry.

Slot s 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 Slot s.

Implementations

PostalAddress , RegistryObject


   


Java Web Services in a Nutshell
Java Web Services in a Nutshell
ISBN: 0596003994
EAN: 2147483647
Year: 2003
Pages: 257
Authors: Kim Topley

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net