|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.ontopia.infoset.fulltext.utils.AbstractLocatorDocumentProcessor net.ontopia.infoset.fulltext.utils.Locator2ContentProcessor
public class Locator2ContentProcessor
INTERNAL: A document processor that replaces notation and address fields with a reader field.
Field Summary | |
---|---|
protected java.lang.String |
content_field
|
protected LocatorReaderFactoryIF |
lrf
|
Fields inherited from class net.ontopia.infoset.fulltext.utils.AbstractLocatorDocumentProcessor |
---|
address_field, notation_field |
Constructor Summary | |
---|---|
Locator2ContentProcessor(LocatorReaderFactoryIF lrf)
|
|
Locator2ContentProcessor(LocatorReaderFactoryIF lrf,
java.lang.String notation_field,
java.lang.String address_field,
java.lang.String content_field)
|
Method Summary | |
---|---|
java.lang.String |
getContentField()
INTERNAL: Gets the name of the content field. |
boolean |
needsProcessing(DocumentIF document)
INTERNAL: Can be used to figure out if it is necessary to process the document. |
void |
process(DocumentIF document)
INTERNAL: Processes the specified document. |
void |
setContentField(java.lang.String content_field)
INTERNAL: Sets the name of the content field. |
Methods inherited from class net.ontopia.infoset.fulltext.utils.AbstractLocatorDocumentProcessor |
---|
getAddressField, getLocator, getNotationField, setAddressField, setNotationField |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.lang.String content_field
protected LocatorReaderFactoryIF lrf
Constructor Detail |
---|
public Locator2ContentProcessor(LocatorReaderFactoryIF lrf)
public Locator2ContentProcessor(LocatorReaderFactoryIF lrf, java.lang.String notation_field, java.lang.String address_field, java.lang.String content_field)
Method Detail |
---|
public java.lang.String getContentField()
public void setContentField(java.lang.String content_field)
public void process(DocumentIF document) throws java.lang.Exception
DocumentProcessorIF
java.lang.Exception
public boolean needsProcessing(DocumentIF document)
DocumentProcessorIF
This method should be used to quickly decide whether or not the document needs to be processed. Note that this method should return quickly, since it would normally be executed serially.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |