org.rblasch.convert.converters.collections
Class ArrayToArrayListConverter

java.lang.Object
  extended byorg.rblasch.convert.converters.AbstractConverter
      extended byorg.rblasch.convert.converters.collections.ArrayToArrayListConverter
All Implemented Interfaces:
Converter, MetaConverter

public class ArrayToArrayListConverter
extends AbstractConverter

Author:
Ronald Blaschke

Constructor Summary
ArrayToArrayListConverter(Type sourceCType, Type destinationCType, MetaConverter cConverter)
           
 
Method Summary
 java.lang.Object convert(java.lang.Object obj)
          Try to convert the given Object.
 Type getDestinationType()
           
 Type getSourceType()
           
 int getWeight()
           
 
Methods inherited from class org.rblasch.convert.converters.AbstractConverter
equals, getConverter, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ArrayToArrayListConverter

public ArrayToArrayListConverter(Type sourceCType,
                                 Type destinationCType,
                                 MetaConverter cConverter)
Method Detail

getSourceType

public Type getSourceType()

getDestinationType

public Type getDestinationType()

getWeight

public int getWeight()

convert

public java.lang.Object convert(java.lang.Object obj)
                         throws java.lang.Exception
Description copied from interface: Converter
Try to convert the given Object.

Parameters:
obj - Object
Returns:
converted Object
Throws:
java.lang.Exception - Conversion failed for some reason


Copyright © 2004 Ronald Blaschke. All Rights Reserved.