org.compass.core.converter.extended
Class FileConverter

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

public class FileConverter
extends AbstractBasicConverter

Author:
kimchy

Constructor Summary
FileConverter()
           
 
Method Summary
 Object fromString(String str, ResourcePropertyMapping resourcePropertyMapping)
          Converts from a String and into it's Object representation.
 String toString(Object obj, ResourcePropertyMapping resourcePropertyMapping)
          Default implementation of toString, simply calls the Object toString.
 
Methods inherited from class org.compass.core.converter.basic.AbstractBasicConverter
getNullValue, handleNulls, isNullValue, marshall, unmarshall
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileConverter

public FileConverter()
Method Detail

fromString

public Object fromString(String str,
                         ResourcePropertyMapping resourcePropertyMapping)
Description copied from interface: ResourcePropertyConverter
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

toString

public String toString(Object obj,
                       ResourcePropertyMapping resourcePropertyMapping)
Description copied from class: AbstractBasicConverter
Default implementation of toString, simply calls the Object toString.

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


Copyright (c) 2004-2006 The Compass Project.