org.compass.core.converter.mapping
Interface ContextResourcePropertyConverter<T>

All Superinterfaces:
Converter<T>, ResourcePropertyConverter<T>
All Known Implementing Classes:
AbstractBasicConverter, AbstractDynamicConverter, AbstractFormatConverter, AbstractNumberConverter, AtomicBooleanConverter, AtomicIntConverter, AtomicLongConverter, BigDecimalConverter, BigIntegerConverter, BooleanConverter, ByteConverter, CalendarConverter, CharConverter, ContextResourcePropertyJsonValueConverter, DataTimeConverter, DateConverter, DoubleConverter, EnumConverter, FileConverter, FloatConverter, GroovyDynamicConverter, IntConverter, JakartaElDynamicConverter, JexlDynamicConverter, LocaleConverter, LongConverter, MVELDynamicConverter, OgnlDynamicConverter, ResourcePropertyJsonValueConverter, ShortConverter, SqlDateConverter, SqlTimeConverter, SqlTimestampConverter, StringBufferConverter, StringBuilderConverter, StringConverter, URIConverter, URLConverter, VelocityDynamicConverter

public interface ContextResourcePropertyConverter<T>
extends ResourcePropertyConverter<T>

Author:
kimchy

Method Summary
 T fromString(String str, ResourcePropertyMapping resourcePropertyMapping, MarshallingContext context)
          Converts from a String and into it's Object representation.
 String toString(T o, ResourcePropertyMapping resourcePropertyMapping, MarshallingContext context)
          Converts the Object into a String.
 
Methods inherited from interface org.compass.core.converter.mapping.ResourcePropertyConverter
canNormalize, fromString, suggestIndex, suggestOmitNorms, suggestOmitTf, suggestStore, suggestTermVector, toString
 
Methods inherited from interface org.compass.core.converter.Converter
marshall, unmarshall
 

Method Detail

fromString

T fromString(String str,
             ResourcePropertyMapping resourcePropertyMapping,
             MarshallingContext context)
             throws ConversionException
Converts from a String and into it's Object representation.

Parameters:
str - The string to convert from
resourcePropertyMapping - The resource property mapping
Returns:
Theh object converterd from the String
Throws:
ConversionException

toString

String toString(T o,
                ResourcePropertyMapping resourcePropertyMapping,
                MarshallingContext context)
                throws ConversionException
Converts the Object into a String.

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

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.