All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class org.w3c.tools.resources.ExternalContainer

java.lang.Object
   |
   +----org.w3c.tools.resources.AttributeHolder
           |
           +----org.w3c.tools.resources.Resource
                   |
                   +----org.w3c.tools.resources.FramedResource
                           |
                           +----org.w3c.tools.resources.AbstractContainer
                                   |
                                   +----org.w3c.tools.resources.ContainerResource
                                           |
                                           +----org.w3c.tools.resources.ExternalContainer

public abstract class ExternalContainer
extends ContainerResource
A Container which manage an external store, outside the space.


Variable Index

 o repository
Our external repository.
 o transientFlag
Our transientFlag, is true that container must not be saved.

Constructor Index

 o ExternalContainer()
 o ExternalContainer(String, ResourceContext, boolean)

Method Index

 o acquireChildren()
acquire children and notify space if we will be saved.
 o createDefaultResource(String)
Create a default child resource in that container.
 o delete()
Delete this Resource instance , and remove it from its store.
 o getRepository(ResourceContext)
Get The repository for this external container.
 o initialize(Object[])
Initialize ourself.
 o markModified()
Mark this resource as having been modified.

Variables

 o transientFlag
 protected boolean transientFlag
Our transientFlag, is true that container must not be saved.

 o repository
 protected File repository
Our external repository.

Constructors

 o ExternalContainer
 public ExternalContainer(String id,
                          ResourceContext context,
                          boolean transientFlag)
Parameters:
id - The identifier.
context - The default context.
transientFlag - The transient flag.
 o ExternalContainer
 public ExternalContainer()

Methods

 o createDefaultResource
 public ResourceReference createDefaultResource(String name)
Create a default child resource in that container.

Overrides:
createDefaultResource in class ContainerResource
 o markModified
 public void markModified()
Mark this resource as having been modified.

Overrides:
markModified in class FramedResource
 o acquireChildren
 protected synchronized void acquireChildren()
acquire children and notify space if we will be saved.

Overrides:
acquireChildren in class ContainerResource
 o delete
 public synchronized void delete() throws MultipleLockException
Delete this Resource instance , and remove it from its store. This method will erase definitely this resource, for ever, by removing it from its resource store (when doable).

Throws: MultipleLockException
if someone has locked this resource.
Overrides:
delete in class ContainerResource
 o getRepository
 public abstract File getRepository(ResourceContext context)
Get The repository for this external container. Warning: called in the constructor!

Parameters:
context - The container context.
Returns:
A File instance
 o initialize
 public void initialize(Object values[])
Initialize ourself.

Overrides:
initialize in class ContainerResource

All Packages  Class Hierarchy  This Package  Previous  Next  Index