org.compass.core.converter.basic
Class BigDecimalConverter

java.lang.Object
  extended by org.compass.core.converter.basic.AbstractBasicConverter<T>
      extended by org.compass.core.converter.basic.AbstractFormatConverter<N>
          extended by org.compass.core.converter.basic.AbstractNumberConverter<BigDecimal>
              extended by org.compass.core.converter.basic.BigDecimalConverter
All Implemented Interfaces:
CompassConfigurable, FormatConverter<BigDecimal>, Converter<BigDecimal>, ContextResourcePropertyConverter<BigDecimal>, ResourcePropertyConverter<BigDecimal>

public class BigDecimalConverter
extends AbstractNumberConverter<BigDecimal>

Author:
kimchy

Field Summary
 
Fields inherited from class org.compass.core.converter.basic.AbstractNumberConverter
SORTABLE_FORMAT
 
Fields inherited from class org.compass.core.converter.basic.AbstractFormatConverter
formatters, hasFormatter, locale
 
Constructor Summary
BigDecimalConverter()
           
 
Method Summary
protected  Formatter createSortableFormatter()
           
protected  BigDecimal defaultFromString(String str, ResourcePropertyMapping resourcePropertyMapping)
           
protected  BigDecimal fromNumber(Number number)
           
 
Methods inherited from class org.compass.core.converter.basic.AbstractNumberConverter
defaultToString, doCreateFormatterFactory, doFromString, doToString
 
Methods inherited from class org.compass.core.converter.basic.AbstractFormatConverter
canNormalize, configure, copy, doGetDefaultFormat, setFormat, suggestIndex
 
Methods inherited from class org.compass.core.converter.basic.AbstractBasicConverter
createProperty, doSetBoost, fromString, fromString, getNullValue, handleNulls, isNullValue, marshall, 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
 
Methods inherited from interface org.compass.core.config.CompassConfigurable
configure
 
Methods inherited from interface org.compass.core.converter.mapping.ResourcePropertyConverter
fromString, suggestOmitNorms, suggestOmitTf, suggestStore, suggestTermVector, toString
 
Methods inherited from interface org.compass.core.converter.Converter
marshall, unmarshall
 

Constructor Detail

BigDecimalConverter

public BigDecimalConverter()
Method Detail

defaultFromString

protected BigDecimal defaultFromString(String str,
                                       ResourcePropertyMapping resourcePropertyMapping)
Specified by:
defaultFromString in class AbstractNumberConverter<BigDecimal>

fromNumber

protected BigDecimal fromNumber(Number number)
Specified by:
fromNumber in class AbstractNumberConverter<BigDecimal>

createSortableFormatter

protected Formatter createSortableFormatter()
Specified by:
createSortableFormatter in class AbstractNumberConverter<BigDecimal>


Copyright (c) 2004-2009 The Compass Project.