|
||||||||||
| 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. |
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).
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||