org.compass.core.converter.mapping.osem
Class CollectionMappingConverter

java.lang.Object
  extended by org.compass.core.converter.mapping.osem.AbstractCollectionMappingConverter
      extended by org.compass.core.converter.mapping.osem.CollectionMappingConverter
All Implemented Interfaces:
CompassConfigurable, Converter

public class CollectionMappingConverter
extends AbstractCollectionMappingConverter
implements CompassConfigurable

Author:
kimchy

Field Summary
 
Fields inherited from class org.compass.core.converter.mapping.osem.AbstractCollectionMappingConverter
COLLECTION_RESOURCE_WRAPPER_KEY
 
Constructor Summary
CollectionMappingConverter()
           
 
Method Summary
protected  void addValue(Object col, int index, Object value, AbstractCollectionMapping mapping, MarshallingContext context)
           
 void configure(CompassSettings settings)
          Configure using the given settings.
protected  Object createColObject(Getter getter, AbstractCollectionMapping.CollectionType collectionType, int size, AbstractCollectionMapping mapping, MarshallingContext context)
           
protected  AbstractCollectionMapping.CollectionType getRuntimeCollectionType(Object root)
           
protected  int marshallIterateData(Object root, AbstractCollectionMapping colMapping, Resource resource, MarshallingContext context)
          Marhall the data, returning the number of elements that were actually stored in the index (and can later be read).
 
Methods inherited from class org.compass.core.converter.mapping.osem.AbstractCollectionMappingConverter
marshall, unmarshall
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CollectionMappingConverter

public CollectionMappingConverter()
Method Detail

configure

public void configure(CompassSettings settings)
               throws CompassException
Description copied from interface: CompassConfigurable
Configure using the given settings.

Specified by:
configure in interface CompassConfigurable
Parameters:
settings - The settings for the configured object
Throws:
CompassException

marshallIterateData

protected int marshallIterateData(Object root,
                                  AbstractCollectionMapping colMapping,
                                  Resource resource,
                                  MarshallingContext context)
Description copied from class: AbstractCollectionMappingConverter
Marhall the data, returning the number of elements that were actually stored in the index (and can later be read).

Specified by:
marshallIterateData in class AbstractCollectionMappingConverter

getRuntimeCollectionType

protected AbstractCollectionMapping.CollectionType getRuntimeCollectionType(Object root)
Specified by:
getRuntimeCollectionType in class AbstractCollectionMappingConverter

createColObject

protected Object createColObject(Getter getter,
                                 AbstractCollectionMapping.CollectionType collectionType,
                                 int size,
                                 AbstractCollectionMapping mapping,
                                 MarshallingContext context)
Specified by:
createColObject in class AbstractCollectionMappingConverter

addValue

protected void addValue(Object col,
                        int index,
                        Object value,
                        AbstractCollectionMapping mapping,
                        MarshallingContext context)
Specified by:
addValue in class AbstractCollectionMappingConverter


Copyright (c) 2004-2009 The Compass Project.