Previous section   Next section
RegistryPackage javax.xml.registry.infomodel

JAXR 1.0; JWSDP 1.0, J2EE 1.4
public interface RegistryPackage extends RegistryEntry {
// Public Instance Methods
    public abstract void addRegistryObject(RegistryObject registryObject)
       throws javax.xml.registry.JAXRException;             //L1
    public abstract void addRegistryObjects(Collection registryObjects)
       throws javax.xml.registry.JAXRException;             //L1
    public abstract Set getRegistryObjects(  )
       throws javax.xml.registry.JAXRException;             //L1
    public abstract void removeRegistryObject(RegistryObject registryObject)
       throws javax.xml.registry.JAXRException;             //L1
    public abstract void removeRegistryObjects(Collection registryObjects)
       throws javax.xml.registry.JAXRException;             //L1
}

RegistryPackage is an interface supported by level 1 JAXR providers. It allows a set of RegistryObjects to be logically grouped together. An empty RegistryPackage can be created using the LifeCycleManager createRegistryPackage( ) method, and entries can be added to it by calling addRegistryObject( ) or addRegistryObjects( ). To remove items from the package, use removeRegistryObject( ) or removeRegistryObjects( ). The benefits of a RegistryPackage include the ability to version it or to indicate its stability, using methods provided by the RegistryEntry interface, which it extends. You can also use the getRegistryObjects( ) method to get a list of the objects that it contains. Since a RegistryPackage is a RegistryObject, it is possible to nest one package inside another.

Returned By

javax.xml.registry.LifeCycleManager.createRegistryPackage( )


  Previous section   Next section