org.w3c.jigsaw.indexer
Class ContentTypeIndexer
java.lang.Object
|
+--org.w3c.tools.resources.AttributeHolder
|
+--org.w3c.tools.resources.Resource
|
+--org.w3c.tools.resources.indexer.SampleResourceIndexer
|
+--org.w3c.jigsaw.indexer.ContentTypeIndexer
- public class ContentTypeIndexer
- extends SampleResourceIndexer
Methods inherited from class org.w3c.tools.resources.indexer.SampleResourceIndexer |
createDirectoryResource,
createResource,
createVirtualResource,
delete,
getContext,
getDirectories,
getExtensions,
getFileExtensions,
getIndexedDirName,
getIndexedFileName,
getIndexedName,
getSuperIndexer,
getTemplateFor,
lastModified,
loadDirectory,
loadExtension,
mergeDefaultAttributes,
mergeFrameAttributes,
registerResource |
Methods inherited from class org.w3c.tools.resources.Resource |
acceptUnload,
checkMultipleLock,
collectFrames,
getClone,
getFrame,
getFrames,
getHelpURL,
getHelpURL,
getIdentifier,
getLastModified,
getParent,
getResourceReference,
getServer,
getSpace,
getSpaceEntry,
getStoreEntry,
getURLPath,
getValue,
getValue,
initialize,
isInitialized,
isUnloaded,
markModified,
notifyUnload,
registerFrame,
setContext,
setContext,
setValue,
setValue,
unregisterFrame,
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,
pickle,
print,
setBoolean,
setChar,
setDouble,
setFloat,
setInt,
setLong,
setString,
setValue,
unpickle,
unpickle,
unpickle,
unpickleInstance,
unpickleInstance |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
contentTypes
protected ResourceReference contentTypes
ContentTypeIndexer
public ContentTypeIndexer()
enumerateResourceIdentifiers
public java.util.Enumeration enumerateResourceIdentifiers(boolean all)
- Overrides:
- enumerateResourceIdentifiers in class SampleResourceIndexer
getContentTypes
protected ResourceReference getContentTypes()
lookup
public ResourceReference lookup(java.lang.String name)
- Overrides:
- lookup in class SampleResourceIndexer
delete
public void delete()
throws MultipleLockException
- Delete this indexer.
- Throws:
- MultipleLockException - if someone else has locked the resource
- Overrides:
- delete in class SampleResourceIndexer
loadContentType
public ResourceReference loadContentType(java.lang.String type)
createFileResource
protected Resource createFileResource(java.io.File directory,
RequestInterface req,
java.lang.String name,
java.util.Hashtable defs)
- Create a default file resource for this file (that exists).
- Parameters:
directory
- The directory of the file.name
- The name of the file.defs
- A set of default attribute values.- Returns:
- An instance of Resource, or null if
we were unable to create it.
- Overrides:
- createFileResource in class SampleResourceIndexer