|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ResourcePropertyConverter
A specialized converter that can convert to and from strings as well. Handles ResourcePropertyMapping.
| Method Summary | |
|---|---|
boolean |
canNormalize()
Returns true if this converter should be used to convert query parser related
values. |
Object |
fromString(String str,
ResourcePropertyMapping resourcePropertyMapping)
Converts from a String and into it's Object representation. |
Property.Index |
suggestIndex()
The converter can suggest what type of index will be used in case no index is configured. |
Boolean |
suggestOmitNorms()
The converter can suggest if norms should be saved for this type in case no explicit one is configured. |
Boolean |
suggestOmitTf()
The converter can suggest if tf should be saved for this type in case no explicit one is configured. |
Property.Store |
suggestStore()
The converter can suggest the store type for this type in case no explicit one is configured. |
Property.TermVector |
suggestTermVector()
The converter can suggest if term vectors should be saved for this type in case no explicit one is configured. |
String |
toString(Object o,
ResourcePropertyMapping resourcePropertyMapping)
Converts the Object into a String. |
| Methods inherited from interface org.compass.core.converter.Converter |
|---|
marshall, unmarshall |
| Method Detail |
|---|
Object fromString(String str,
ResourcePropertyMapping resourcePropertyMapping)
throws ConversionException
str - The string to convert fromresourcePropertyMapping - The resource property mapping
ConversionException
String toString(Object o,
ResourcePropertyMapping resourcePropertyMapping)
throws ConversionException
Note that toString must be able to handle a null resourcePropertyMapping.
o - The Object to convert fromresourcePropertyMapping - The resource proeprty mapping
ConversionExceptionboolean canNormalize()
true if this converter should be used to convert query parser related
values. Conversion is done by calling fromString(String, org.compass.core.mapping.ResourcePropertyMapping)
and then toString(Object, org.compass.core.mapping.ResourcePropertyMapping).
Property.Index suggestIndex()
null and will let global Compass defaults to be used.
Property.TermVector suggestTermVector()
null and will let global Compass defaults to be used.
Property.Store suggestStore()
null and will let global Compass defaults to be used.
Boolean suggestOmitNorms()
null and will let global Compass defaults to be used.
Boolean suggestOmitTf()
null and will let global Compass defaults to be used.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||