org.w3c.jigedit.resources
Class AutoLookupDirectory
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.DirectoryResource
|
+--org.w3c.jigsaw.resources.DirectoryResource
|
+--org.w3c.jigsaw.resources.PassDirectory
|
+--org.w3c.jigedit.cvs.CvsRootDirectory
|
+--org.w3c.jigedit.resources.AutoLookupDirectory
- public class AutoLookupDirectory
- extends CvsRootDirectory
A special version of DirectoryResource that can fetch a file
from CVS directly if it is not already here.
It can alos do an automatic update, depending on a flag
Methods inherited from class org.w3c.tools.resources.DirectoryResource |
createDefaultResource,
createDefaultResource,
createResource,
createResource,
delete,
enumerateAllResourceIdentifiers,
enumerateResourceIdentifiers,
getDirStamp,
getExtensibleFlag,
getIndexedName,
getIndexer,
reindex,
resourceRemoved,
updateDefaultChildAttributes,
verify |
Methods inherited from class org.w3c.tools.resources.ContainerResource |
acquireChildren,
addResource,
delete,
deleteChildren,
getChildrenSpaceEntry,
getClone,
getKey,
getMatchingCharsCount,
getSpaceEntry,
internalLookup,
notifyUnload,
registerResource,
replace,
resourceCreated,
resourceModified |
Methods inherited from class org.w3c.tools.resources.FramedResource |
addAttributeChangedListener,
addStructureChangedListener,
collectFramesReference,
disableEvent,
displayEvent,
enableEvent,
eventDisabled,
fireAttributeChangeEvent,
fireStructureChangedEvent,
fireStructureChangedEvent,
frameAdded,
frameModified,
frameRemoved,
getFrame,
getFrame,
getFrameReference,
getFrameReference,
getFramesReference,
getOid,
markModified,
perform,
performFrames,
postAttributeChangeEvent,
postEvent,
postStructureChangedEvent,
postStructureChangedEvent,
processEvent,
registerFrame,
registerFrameIfNone,
removeAttributeChangedListener,
removeStructureChangedListener,
setSilentValue,
setSilentValue,
unregisterFrame |
Methods inherited from class org.w3c.tools.resources.Resource |
acceptUnload,
checkMultipleLock,
collectFrames,
getContext,
getFrame,
getFrames,
getHelpURL,
getHelpURL,
getIdentifier,
getLastModified,
getParent,
getResourceReference,
getServer,
getSpace,
getStoreEntry,
getURLPath,
getValue,
getValue,
isInitialized,
isUnloaded,
setContext,
setContext,
setValue,
updateAttributes |
Methods inherited from class org.w3c.tools.resources.AttributeHolder |
definesAttribute,
definesAttribute,
getAttributes,
getBoolean,
getChar,
getClone,
getClone,
getDouble,
getFloat,
getInt,
getLong,
getString,
getValue,
initialize,
lookupAttribute,
pickleValues,
print,
setBoolean,
setChar,
setDouble,
setFloat,
setInt,
setLong,
setString,
setValue |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
AutoLookupDirectory
public AutoLookupDirectory()
getCvsManager
protected CvsDirectory getCvsManager()
throws CvsException
- Get the appropriate CVS manager for the directory we handle.
- Returns:
- A CvsDirectory instance.
- Throws:
- CvsException - If we couldn't get the manager.
isAutoUpdatable
public boolean isAutoUpdatable()
- tell if we must always do an update.
isCvsExtensible
public boolean isCvsExtensible()
- tell if we must add in cvs the new puted documents.
createDirectoryResource
public ResourceReference createDirectoryResource(java.lang.String name)
- Create a DirectoryResource and the physical directory too.
Add the new directory in the CVS repository.
- Overrides:
- createDirectoryResource in class DirectoryResource
- Parameters:
name
- the name of the resource.- Returns:
- A ResourceReference instance.
lookup
public boolean lookup(LookupState ls,
LookupResult lr)
throws ProtocolException
- Lookup the next component of this lookup state in here.
- Overrides:
- lookup in class DirectoryResource
- Parameters:
ls
- The current lookup state.lr
- The lookup result under construction.- Returns:
- A boolean, true if lookup has completed,
false if it should be continued by the caller.
- Throws:
- ProtocolException - If an error occurs.
lookup
public ResourceReference lookup(java.lang.String name)
- Lookup the resource having the given name in this directory.
if the resource is not present, it will try to fetch it from
the Cvs repository.
- Overrides:
- lookup in class DirectoryResource
- Parameters:
name
- The name of the resource.- Returns:
- A ResourceReference instance, or null.