org.compass.core.converter.mapping.json
Class JsonIdMappingConverter

java.lang.Object
  extended by org.compass.core.converter.mapping.json.JsonPropertyMappingConverter
      extended by org.compass.core.converter.mapping.json.JsonIdMappingConverter
All Implemented Interfaces:
Converter

public class JsonIdMappingConverter
extends JsonPropertyMappingConverter

Author:
kimchy

Constructor Summary
JsonIdMappingConverter()
           
 
Method Summary
 boolean marshall(Resource resource, Object root, Mapping mapping, MarshallingContext context)
          Marshall the given Object to the given Resource.
 
Methods inherited from class org.compass.core.converter.mapping.json.JsonPropertyMappingConverter
unmarshall
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JsonIdMappingConverter

public JsonIdMappingConverter()
Method Detail

marshall

public boolean marshall(Resource resource,
                        Object root,
                        Mapping mapping,
                        MarshallingContext context)
                 throws ConversionException
Description copied from interface: Converter
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).

Specified by:
marshall in interface Converter
Overrides:
marshall in class JsonPropertyMappingConverter
Parameters:
resource - The resource to marhsall the object to
root - The Object to marshall to the resource
mapping - The mapping definition of how to marshall the Object to the resoruce
context - The context for the current marhslling process
Returns:
true if data was saved in the the index that can be read.
Throws:
ConversionException


Copyright (c) 2004-2008 The Compass Project.