All Packages Class Hierarchy This Package Previous Next Index
Interface org.w3c.tools.resources.ResourceSpace
- public interface ResourceSpace
-
acquireChildren(SpaceEntry)
- Acquire the children of the resource.
-
acquireChildren(SpaceEntry, File, boolean)
- acquire children from an external file.
-
addResource(SpaceEntry, Resource, Hashtable)
- Add this resource to the space.
-
checkpoint()
- Checkpoint all modified resource, by saving them to disk.
-
deleteChildren(SpaceEntry)
- Delete all the children of resource indentified by its
space entry.
-
deleteResource(SpaceEntry, Resource)
- Delete this resource from the space.
-
enumerateResourceIdentifiers(SpaceEntry)
- Enumerate the name (ie identifiers) of the resource children
identified by its space entry.
-
getEventQueue()
-
-
loadResource(SpaceEntry, String, Hashtable)
- Restore the resource whose name is given.
-
loadRootResource(String, Hashtable)
- Restore the resource whose name is given from the root.
-
lookupResource(SpaceEntry, String)
- Lookup this resource.
-
markModified(SpaceEntry, Resource)
- Mark the given resource as being modified.
-
renameResource(SpaceEntry, String, String)
- Rename a resource in this resource space.
-
saveChildren(SpaceEntry)
- Save all the children of the resource indentified by its
spaec entry.
-
saveResource(SpaceEntry, Resource)
- Save this resource to the space.
-
shutdown()
- Shutdown this resource space.
getEventQueue
public abstract ResourceEventQueue getEventQueue()
shutdown
public abstract void shutdown()
- Shutdown this resource space.
Go through all entries, and shut them down.
checkpoint
public abstract void checkpoint()
- Checkpoint all modified resource, by saving them to disk.
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.
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.
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.
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.
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.
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.
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.
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.
deleteChildren
public abstract void deleteChildren(SpaceEntry sentry)
- Delete all the children of resource indentified by its
space entry.
- Parameters:
- sentry - The resource space entry
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
acquireChildren
public abstract void acquireChildren(SpaceEntry sentry)
- Acquire the children of the resource.
- Parameters:
- sentry - The resource space entry.
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.
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