org.compass.core.converter.basic
Class EnumConverter

java.lang.Object
  extended by org.compass.core.converter.basic.AbstractBasicConverter
      extended by org.compass.core.converter.basic.EnumConverter
All Implemented Interfaces:
Converter, ContextResourcePropertyConverter, ResourcePropertyConverter

public class EnumConverter
extends AbstractBasicConverter

Author:
kimchy

Constructor Summary
EnumConverter()
           
 
Method Summary
protected  Object doFromString(String str, ResourcePropertyMapping resourcePropertyMapping, MarshallingContext context)
          Override the from String in order to un-marshall the String back into its object representation.
protected  String doToString(Object o, ResourcePropertyMapping resourcePropertyMapping, MarshallingContext context)
          Allows to override to toString operation.
 
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
 

Constructor Detail

EnumConverter

public EnumConverter()
Method Detail

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-2009 The Compass Project.