|
||||||||||
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.DocumentPreloaderProcessor
public class DocumentPreloaderProcessor
INTERNAL: A document processor that preloads an external document referenced by one of the documents fields.
Field Summary | |
---|---|
protected DocumentProcessorIF |
post_processor
|
protected DocumentProcessorIF |
pre_processor
|
protected PreloaderIF |
preloader
|
Fields inherited from class net.ontopia.infoset.fulltext.utils.AbstractLocatorDocumentProcessor |
---|
address_field, notation_field |
Constructor Summary | |
---|---|
DocumentPreloaderProcessor(PreloaderIF preloader)
|
|
DocumentPreloaderProcessor(PreloaderIF preloader,
java.lang.String notation_field,
java.lang.String address_field)
|
Method Summary | |
---|---|
DocumentProcessorIF |
getPostProcessor()
INTERNAL: Gets the document post-processor if any. |
java.lang.String |
getPreloadedAddressField()
INTERNAL: Gets the name of the preloaded address field. |
java.lang.String |
getPreloadedNotationField()
INTERNAL: Gets the name of the preloaded notation field. |
DocumentProcessorIF |
getPreProcessor()
INTERNAL: Gets the document pre-processor if any. |
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 |
setPostProcessor(DocumentProcessorIF post_processor)
INTERNAL: Sets the document post-processor. |
void |
setPreProcessor(DocumentProcessorIF pre_processor)
INTERNAL: Sets the document pre-processor. |
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 PreloaderIF preloader
protected DocumentProcessorIF pre_processor
protected DocumentProcessorIF post_processor
Constructor Detail |
---|
public DocumentPreloaderProcessor(PreloaderIF preloader)
public DocumentPreloaderProcessor(PreloaderIF preloader, java.lang.String notation_field, java.lang.String address_field)
Method Detail |
---|
public DocumentProcessorIF getPreProcessor()
public void setPreProcessor(DocumentProcessorIF pre_processor)
public DocumentProcessorIF getPostProcessor()
public void setPostProcessor(DocumentProcessorIF post_processor)
public java.lang.String getPreloadedNotationField()
public java.lang.String getPreloadedAddressField()
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 |