|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.grcomputing.opencms.search.lucene.ExtensionMapping
This class maps extensions to Lucene search document factories (e.g. implementations of I_DocumentFactory).
Extensions are used by the indexer to determine what document factory ought to be used to index the content of particular resources. Normally, extensions are only checked for content of type "plain", not Pages or JSPs.
I have tried to set suitable default values, such as a default document factory of net.grcomputing.opencms.search.lucene.BodylessDocument.
Constructor Summary | |
ExtensionMapping(java.lang.String docFac,
java.lang.String name)
Creates a new Extension Mapping with an empty list of extensions. |
Method Summary | |
boolean |
addExtension(java.lang.String ext)
Adds an extension. |
I_DocumentFactory |
getDocumentFactory()
Returns an instance of the appropriate DocumentFactory. |
java.lang.String |
getDocumentFactoryName()
Gets the class name for the document factory. |
java.lang.String |
getName()
Gets the name of this extension map. |
boolean |
handlesExtension(java.lang.String ext)
Returns true if this ExtensionMapping handles the given extension. |
boolean |
removeExtension(java.lang.String ext)
Removes an extension from the list of extensions. |
void |
setName(java.lang.String name)
Sets the name of this extension map. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ExtensionMapping(java.lang.String docFac, java.lang.String name)
Method Detail |
public boolean addExtension(java.lang.String ext)
public boolean removeExtension(java.lang.String ext)
public boolean handlesExtension(java.lang.String ext)
public void setName(java.lang.String name)
public java.lang.String getName()
public java.lang.String getDocumentFactoryName()
public I_DocumentFactory getDocumentFactory() throws CmsException
CmsException
- if it can't load the class.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |