eu.etaxonomy.cdm.remote.json.processor.bean
Class LuceneDocumentBeanProcessor

java.lang.Object
  extended by eu.etaxonomy.cdm.remote.json.processor.bean.AbstractBeanProcessor<org.apache.lucene.document.Document>
      extended by eu.etaxonomy.cdm.remote.json.processor.bean.LuceneDocumentBeanProcessor
All Implemented Interfaces:
net.sf.json.processors.JsonBeanProcessor

public class LuceneDocumentBeanProcessor
extends AbstractBeanProcessor<org.apache.lucene.document.Document>

Author:
Andreas Kohlbecker

Field Summary
 
Fields inherited from class eu.etaxonomy.cdm.remote.json.processor.bean.AbstractBeanProcessor
logger
 
Constructor Summary
LuceneDocumentBeanProcessor()
           
 
Method Summary
 List getIgnorePropNames()
          Implementations of this abstract class may override this method in order to supply a List of property names to be ignored in AbstractBeanProcessor.processBean(Object, JsonConfig).
 net.sf.json.JSONObject processBeanSecondStep(org.apache.lucene.document.Document document, net.sf.json.JSONObject json, net.sf.json.JsonConfig jsonConfig)
          This method is called ate the end of AbstractBeanProcessor.processBean(Object, JsonConfig) just before the JSONObject is returned.
 
Methods inherited from class eu.etaxonomy.cdm.remote.json.processor.bean.AbstractBeanProcessor
addJsonElement, getExcludes, getMergedExcludes, processBean, setExcludes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LuceneDocumentBeanProcessor

public LuceneDocumentBeanProcessor()
Method Detail

getIgnorePropNames

public List getIgnorePropNames()
Description copied from class: AbstractBeanProcessor
Implementations of this abstract class may override this method in order to supply a List of property names to be ignored in AbstractBeanProcessor.processBean(Object, JsonConfig). This feature generally is used when #processBeanSecondStep(CdmBase, JSONObject, JsonConfig) is implemented. such that this method is responsible of serializing this property.

Specified by:
getIgnorePropNames in class AbstractBeanProcessor<org.apache.lucene.document.Document>
Returns:
a List of property names.

processBeanSecondStep

public net.sf.json.JSONObject processBeanSecondStep(org.apache.lucene.document.Document document,
                                                    net.sf.json.JSONObject json,
                                                    net.sf.json.JsonConfig jsonConfig)
Description copied from class: AbstractBeanProcessor
This method is called ate the end of AbstractBeanProcessor.processBean(Object, JsonConfig) just before the JSONObject is returned. By overriding this method it is possible to to further processing.

See also AbstractBeanProcessor.getIgnorePropNames()!

Specified by:
processBeanSecondStep in class AbstractBeanProcessor<org.apache.lucene.document.Document>
Returns:


Copyright © 2007-2013 EDIT. All Rights Reserved.