org.compass.core.converter.mapping
Interface ResourceMappingConverter

All Superinterfaces:
Converter
All Known Implementing Classes:
ClassMappingConverter, RawResourceMappingConverter, XmlObjectMappingConverter

public interface ResourceMappingConverter
extends Converter

A converter associated with a ResourceMapping implementation. Allows to marhsall/unmarshall just ids as well.

Author:
kimchy

Method Summary
 boolean marshallIds(Resource idResource, Object id, ResourceMapping resourceMapping, MarshallingContext context)
           
 Object[] unmarshallIds(Object id, ResourceMapping resourceMapping, MarshallingContext context)
           
 
Methods inherited from interface org.compass.core.converter.Converter
marshall, unmarshall
 

Method Detail

marshallIds

boolean marshallIds(Resource idResource,
                    Object id,
                    ResourceMapping resourceMapping,
                    MarshallingContext context)
                    throws ConversionException
Throws:
ConversionException

unmarshallIds

Object[] unmarshallIds(Object id,
                       ResourceMapping resourceMapping,
                       MarshallingContext context)
                       throws ConversionException
Throws:
ConversionException


Copyright (c) 2004-2006 The Compass Project.