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

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

public class ArrayMappingConverter
extends AbstractCollectionMappingConverter

Author:
kimchy

Field Summary
 
Fields inherited from class org.compass.core.converter.mapping.osem.AbstractCollectionMappingConverter
COLLECTION_RESOURCE_WRAPPER_KEY
 
Constructor Summary
ArrayMappingConverter()
           
 
Method Summary
protected  void addValue(Object col, int index, Object value)
           
protected  Object createColObject(Getter getter, AbstractCollectionMapping.CollectionType collectionType, int size)
           
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

ArrayMappingConverter

public ArrayMappingConverter()
Method Detail

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)
Specified by:
createColObject in class AbstractCollectionMappingConverter

addValue

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


Copyright (c) 2004-2008 The Compass Project.