|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.commons.scaffold.lucene.SearchUtils
General purpose utility methods related to Hits
| Constructor Summary | |
SearchUtils()
|
|
| Method Summary | |
static java.util.Collection |
getCollection(java.lang.Object target,
org.apache.lucene.search.Hits hits)
Return a ArrayList of hits by looping and calling populate. |
static void |
populate(java.lang.Object bean,
org.apache.lucene.document.Document document)
Populate the properties of the specified JavaBean from the specified Lucene document, based on matching each parameter name against the corresponding JavaBeans "property setter" methods in the bean's class. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SearchUtils()
| Method Detail |
public static void populate(java.lang.Object bean,
org.apache.lucene.document.Document document)
throws PopulateException
BeanUtils.CopyProperites for more about automatic
conversion between types.
bean - The JavaBean whose properties are to be setdocument - The Lucene document whose parameters are to be used
to populate bean properties
PopulateException - if an exception is thrown while setting
property values
public static java.util.Collection getCollection(java.lang.Object target,
org.apache.lucene.search.Hits hits)
throws PopulateException
hits - The Hits whose documents are to be used
to populate bean propertiestarget - An instance of the bean to populate
PopulateException - if an exception is thrown while setting
property values, populating the bean, or accessing the Hits
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||