org.compass.core.converter.mapping.support
Class DynamicFormatDelegateConverter

java.lang.Object
  extended by org.compass.core.converter.mapping.support.FormatDelegateConverter
      extended by org.compass.core.converter.mapping.support.DynamicFormatDelegateConverter
All Implemented Interfaces:
Converter, DelegateConverter, ResourcePropertyConverter

public class DynamicFormatDelegateConverter
extends FormatDelegateConverter

Author:
kimchy

Constructor Summary
DynamicFormatDelegateConverter(String format, ConverterLookup converterLookup)
           
 
Method Summary
 String toString(Object o, ResourcePropertyMapping resourcePropertyMapping)
          Converts the Object into a String.
 
Methods inherited from class org.compass.core.converter.mapping.support.FormatDelegateConverter
canNormalize, fromString, getDelegatedConverter, marshall, setDelegatedConverter, suggestIndex, suggestOmitNorms, suggestOmitTf, suggestStore, suggestTermVector, unmarshall
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DynamicFormatDelegateConverter

public DynamicFormatDelegateConverter(String format,
                                      ConverterLookup converterLookup)
Method Detail

toString

public String toString(Object o,
                       ResourcePropertyMapping resourcePropertyMapping)
                throws ConversionException
Description copied from interface: ResourcePropertyConverter
Converts the Object into a String.

Note that toString must be able to handle a null resourcePropertyMapping.

Specified by:
toString in interface ResourcePropertyConverter
Overrides:
toString in class FormatDelegateConverter
Parameters:
o - The Object to convert from
resourcePropertyMapping - The resource proeprty mapping
Returns:
The String converted from the Object
Throws:
ConversionException


Copyright (c) 2004-2009 The Compass Project.