    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.

##

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

##

ExternalContainer()
ExternalContainer(String, ResourceContext, boolean)

##

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

##

transientFlag

     protected boolean transientFlag

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

repository

     protected File repository

  Our external repository.

##

ExternalContainer

     public ExternalContainer(String id,
                              ResourceContext context,
                              boolean transientFlag)

  Parameters:
    id - The identifier.
    context - The default context.
    transientFlag - The transient flag.

ExternalContainer

     public ExternalContainer()

##

createDefaultResource

     public ResourceReference createDefaultResource(String name)

  Create a default child resource in that container.

  Overrides:
    createDefaultResource in class ContainerResource

markModified

     public void markModified()

  Mark this resource as having been modified.

  Overrides:
    markModified in class FramedResource

acquireChildren

     protected synchronized void acquireChildren()

  acquire children and notify space if we will be saved.

  Overrides:
    acquireChildren in class ContainerResource

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

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

initialize

     public void initialize(Object values[])

  Initialize ourself.

  Overrides:
    initialize in class ContainerResource

    All Packages  Class Hierarchy  This Package  Previous  Next  Index