org.compass.core.converter.basic
Class EnumConverter
java.lang.Object
org.compass.core.converter.basic.AbstractBasicConverter
org.compass.core.converter.basic.EnumConverter
- All Implemented Interfaces:
- Converter, ResourcePropertyConverter
public class EnumConverter
- extends AbstractBasicConverter
- Author:
- kimchy
| Methods inherited from class org.compass.core.converter.basic.AbstractBasicConverter |
canNormalize, createProperty, doSetBoost, fromString, fromString, getNullValue, handleNulls, isNullValue, marshall, suggestIndex, suggestOmitNorms, suggestOmitTf, suggestStore, suggestTermVector, toString, toString, unmarshall |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EnumConverter
public EnumConverter()
doFromString
protected Object doFromString(String str,
ResourcePropertyMapping resourcePropertyMapping,
MarshallingContext context)
throws ConversionException
- Description copied from class:
AbstractBasicConverter
- Override the from String in order to un-marshall the String back into its object representation.
- Specified by:
doFromString in class AbstractBasicConverter
- Throws:
ConversionException
doToString
protected String doToString(Object o,
ResourcePropertyMapping resourcePropertyMapping,
MarshallingContext context)
- Description copied from class:
AbstractBasicConverter
- Allows to override to toString operation. Default implementation calls the object
toString.
Note, the marshalling context might be null.
- Overrides:
doToString in class AbstractBasicConverter
Copyright (c) 2004-2008 The Compass Project.