| org.w3c.tools.resources.ContainerInterface
All known Subclasses: org.w3c.tools.resources.AbstractContainer,
ContainerInterface | public interface ContainerInterface (Code) | | |
Method Summary | |
public void | delete(String name) Remove a child resource from that container. | public Enumeration | enumerateResourceIdentifiers(boolean all) Enumerate children resource identifiers.
Parameters: all - Should all resources be enumerated ? Resources are oftencreated on demand only, this flag allows the caller to tell the container about wether it is interested only in already createdresources, or in all resources (even the one that have not yet beencreated). | public ResourceReference | lookup(String name) Lookup a children in the container. | public void | registerResource(String name, Resource resource, Hashtable defs) Initialize and register the given resource within that container. |
enumerateResourceIdentifiers | public Enumeration enumerateResourceIdentifiers(boolean all)(Code) | | Enumerate children resource identifiers.
Parameters: all - Should all resources be enumerated ? Resources are oftencreated on demand only, this flag allows the caller to tell the container about wether it is interested only in already createdresources, or in all resources (even the one that have not yet beencreated). An String enumeration, one element per child. |
lookup | public ResourceReference lookup(String name)(Code) | | Lookup a children in the container.
Parameters: name - The name of the children to lookup.the resource from its store. |
registerResource | public void registerResource(String name, Resource resource, Hashtable defs) throws InvalidResourceException(Code) | | Initialize and register the given resource within that container.
Parameters: name - The identifier for the resource. Parameters: resource - An unitialized resource instance. Parameters: defs - A default set of init attribute values (may benull). exception: InvalidResourceException - If an error occurs during theregistration. |
|
|