All Packages  Class Hierarchy  This Package  Previous  Next  Index

Interface org.w3c.tools.resources.ResourceSpace

public interface ResourceSpace

Method Index

 o acquireChildren(SpaceEntry)
Acquire the children of the resource.
 o acquireChildren(SpaceEntry, File, boolean)
acquire children from an external file.
 o addResource(SpaceEntry, Resource, Hashtable)
Add this resource to the space.
 o checkpoint()
Checkpoint all modified resource, by saving them to disk.
 o deleteChildren(SpaceEntry)
Delete all the children of resource indentified by its space entry.
 o deleteResource(SpaceEntry, Resource)
Delete this resource from the space.
 o enumerateResourceIdentifiers(SpaceEntry)
Enumerate the name (ie identifiers) of the resource children identified by its space entry.
 o getEventQueue()
 o loadResource(SpaceEntry, String, Hashtable)
Restore the resource whose name is given.
 o loadRootResource(String, Hashtable)
Restore the resource whose name is given from the root.
 o lookupResource(SpaceEntry, String)
Lookup this resource.
 o markModified(SpaceEntry, Resource)
Mark the given resource as being modified.
 o renameResource(SpaceEntry, String, String)
Rename a resource in this resource space.
 o saveChildren(SpaceEntry)
Save all the children of the resource indentified by its spaec entry.
 o saveResource(SpaceEntry, Resource)
Save this resource to the space.
 o shutdown()
Shutdown this resource space.

Methods

 o getEventQueue
 public abstract ResourceEventQueue getEventQueue()
 o shutdown
 public abstract void shutdown()
Shutdown this resource space. Go through all entries, and shut them down.

 o checkpoint
 public abstract void checkpoint()
Checkpoint all modified resource, by saving them to disk.

 o loadRootResource
 public abstract ResourceReference loadRootResource(String identifier,
                                                    Hashtable defs)
Restore the resource whose name is given from the root.

Parameters:
identifier - The identifier of the resource to restore.
defs - Default attribute values.
 o lookupResource
 public abstract ResourceReference lookupResource(SpaceEntry sentry,
                                                  String identifier)
Lookup this resource.

Parameters:
sentry - The resource space entry.
identifier - The resource identifier.
Returns:
A Resource instance, or null if either the resource doesn't exist, or it isn't loaded yet.
 o loadResource
 public abstract ResourceReference loadResource(SpaceEntry sentry,
                                                String identifier,
                                                Hashtable defs)
Restore the resource whose name is given.

Parameters:
sentry - The resource space entry.
identifier - The identifier of the resource to restore.
defs - Default attribute values.
 o addResource
 public abstract ResourceReference addResource(SpaceEntry sentry,
                                               Resource resource,
                                               Hashtable defs)
Add this resource to the space.

Parameters:
sentry - The resource space entry.
resource - The resource to add.
defs - Default attribute values.
 o saveResource
 public abstract void saveResource(SpaceEntry sentry,
                                   Resource resource)
Save this resource to the space.

Parameters:
sentry - The resource space entry.
resource - The resource to save.
 o markModified
 public abstract void markModified(SpaceEntry sentry,
                                   Resource resource)
Mark the given resource as being modified.

Parameters:
sentry - The resource space entry.
resource - The resource to mark as modified.
 o renameResource
 public abstract void renameResource(SpaceEntry sentry,
                                     String oldid,
                                     String newid)
Rename a resource in this resource space.

Parameters:
sentry - The resource space entry.
oldid - The old resorce identifier.
newid - The new resorce identifier.
 o deleteResource
 public abstract void deleteResource(SpaceEntry sentry,
                                     Resource resource)
Delete this resource from the space.

Parameters:
sentry - The resource space entry.
resource - The resource to delete.
 o deleteChildren
 public abstract void deleteChildren(SpaceEntry sentry)
Delete all the children of resource indentified by its space entry.

Parameters:
sentry - The resource space entry
 o saveChildren
 public abstract void saveChildren(SpaceEntry sentry)
Save all the children of the resource indentified by its spaec entry.

Parameters:
sentry - The resource space entry
 o acquireChildren
 public abstract void acquireChildren(SpaceEntry sentry)
Acquire the children of the resource.

Parameters:
sentry - The resource space entry.
 o acquireChildren
 public abstract void acquireChildren(SpaceEntry sentry,
                                      File repository,
                                      boolean transientFlag)
acquire children from an external file.

Parameters:
sentry - The resource space entry.
repository - The file used to store children.
 o enumerateResourceIdentifiers
 public abstract Enumeration enumerateResourceIdentifiers(SpaceEntry sentry)
Enumerate the name (ie identifiers) of the resource children identified by its space entry.

Parameters:
sentry - The space entry.
Returns:
An enumeration, providing one element per child, which is the name of the child, as a String.

All Packages  Class Hierarchy  This Package  Previous  Next  Index