| org.compass.core.converter.Converter
All known Subclasses: org.compass.core.converter.mapping.osem.AbstractCollectionMappingConverter, org.compass.core.converter.extended.InputStreamConverter, org.compass.core.converter.mapping.osem.ParentMappingConverter, org.compass.core.converter.mapping.xsem.XmlIdMappingConverter, org.compass.core.converter.mapping.osem.AbstractRefAliasMappingConverter, org.compass.core.converter.mapping.osem.PlainCascadeMappingConverter, org.compass.core.converter.extended.PrimitiveByteArrayConverter, org.compass.core.test.map.MapConverter, org.compass.core.converter.mapping.osem.ConstantMappingConverter, org.compass.core.converter.extended.ObjectByteArrayConverter, org.compass.core.converter.xsem.SimpleXmlValueConverter, org.compass.core.converter.extended.ReaderConverter, org.compass.core.converter.mapping.xsem.XmlContentMappingConverter, org.compass.core.converter.mapping.osem.ClassPropertyMappingConverter, org.compass.core.converter.mapping.xsem.XmlPropertyMappingConverter,
Converter | public interface Converter (Code) | | A converter is responsible for performing conversion between the actual
object and the resource. Must be thread safe.
author: kimchy |
marshall | boolean marshall(Resource resource, Object root, Mapping mapping, MarshallingContext context) throws ConversionException(Code) | | Marshall the given Object to the given Resource . Will use
the mapping definition as to how to marshall the object.
Returns true if data was saved in the index, and it can
be read as well (i.e. stored).
Parameters: resource - The resource to marhsall the object to Parameters: root - The Object to marshall to the resource Parameters: mapping - The mapping definition of how to marshall the Object to the resoruce Parameters: context - The context for the current marhslling process true if data was saved in the the index that can be read. throws: ConversionException - |
unmarshall | Object unmarshall(Resource resource, Mapping mapping, MarshallingContext context) throws ConversionException(Code) | | Unmarshall the given Resource to the appropiate Object .
Parameters: resource - The resource to unmarshall into an Object Parameters: mapping - The mapping definition of how to unmarshall the Resource into an Object Parameters: context - The context for the current marshalling process The object unmarshalled throws: ConversionException - |
|
|