org.ow2.shelbie.core.internal.converter
Class CollectionConverter

java.lang.Object
  extended by org.ow2.shelbie.core.internal.converter.CollectionConverter
All Implemented Interfaces:
org.apache.felix.service.command.Converter, org.ow2.shelbie.core.TypeBasedConverter

public class CollectionConverter
extends Object
implements org.ow2.shelbie.core.TypeBasedConverter

Author:
Loris Bouzonnet

Field Summary
 
Fields inherited from interface org.apache.felix.service.command.Converter
CONVERTER_CLASSES, INSPECT, LINE, PART
 
Constructor Summary
CollectionConverter()
           
 
Method Summary
 void bindConverterManager(org.ow2.shelbie.core.IConverterManager converterManager)
           
 Object convert(Class<?> toType, Object in)
           
 Object convert(org.apache.felix.gogo.commands.converter.ReifiedType type, Object fromValue)
           
 CharSequence format(Object o, int i, org.apache.felix.service.command.Converter converter)
           
 void unbindConverterManager(org.ow2.shelbie.core.IConverterManager converterManager)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CollectionConverter

public CollectionConverter()
Method Detail

bindConverterManager

public void bindConverterManager(org.ow2.shelbie.core.IConverterManager converterManager)

unbindConverterManager

public void unbindConverterManager(org.ow2.shelbie.core.IConverterManager converterManager)

convert

public Object convert(Class<?> toType,
                      Object in)
               throws Exception
Specified by:
convert in interface org.apache.felix.service.command.Converter
Throws:
Exception

convert

public Object convert(org.apache.felix.gogo.commands.converter.ReifiedType type,
                      Object fromValue)
               throws Exception
Specified by:
convert in interface org.ow2.shelbie.core.TypeBasedConverter
Throws:
Exception

format

public CharSequence format(Object o,
                           int i,
                           org.apache.felix.service.command.Converter converter)
                    throws Exception
Specified by:
format in interface org.apache.felix.service.command.Converter
Throws:
Exception


Copyright © 2013 OW2 Consortium. All Rights Reserved.