org.pm4j.core.pm.impl.converter
Class PmConverterList<T_ITEM>

java.lang.Object
  extended by org.pm4j.core.pm.impl.converter.PmConverterList<T_ITEM>
Type Parameters:
T_ITEM - Type of the list items.
All Implemented Interfaces:
PmAttr.Converter<java.util.List<T_ITEM>>

public class PmConverterList<T_ITEM>
extends java.lang.Object
implements PmAttr.Converter<java.util.List<T_ITEM>>

Converts a list by using a dedicated itemConverter for the list items.

Author:
olaf boede

Constructor Summary
PmConverterList(PmAttr.Converter<T_ITEM> itemConverter)
           
 
Method Summary
 java.util.List<T_ITEM> serializeableToValue(PmAttr<?> pmAttr, java.io.Serializable s)
           
 java.util.List<T_ITEM> stringToValue(PmAttr<?> pmAttr, java.lang.String s)
           
 java.io.Serializable valueToSerializable(PmAttr<?> pmAttr, java.util.List<T_ITEM> v)
           
 java.lang.String valueToString(PmAttr<?> pmAttr, java.util.List<T_ITEM> v)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PmConverterList

public PmConverterList(PmAttr.Converter<T_ITEM> itemConverter)
Method Detail

stringToValue

public java.util.List<T_ITEM> stringToValue(PmAttr<?> pmAttr,
                                            java.lang.String s)
                                     throws org.pm4j.core.exception.PmConverterException
Specified by:
stringToValue in interface PmAttr.Converter<java.util.List<T_ITEM>>
Throws:
org.pm4j.core.exception.PmConverterException

valueToString

public java.lang.String valueToString(PmAttr<?> pmAttr,
                                      java.util.List<T_ITEM> v)
Specified by:
valueToString in interface PmAttr.Converter<java.util.List<T_ITEM>>

valueToSerializable

public java.io.Serializable valueToSerializable(PmAttr<?> pmAttr,
                                                java.util.List<T_ITEM> v)
Specified by:
valueToSerializable in interface PmAttr.Converter<java.util.List<T_ITEM>>

serializeableToValue

public java.util.List<T_ITEM> serializeableToValue(PmAttr<?> pmAttr,
                                                   java.io.Serializable s)
                                            throws org.pm4j.core.exception.PmConverterException
Specified by:
serializeableToValue in interface PmAttr.Converter<java.util.List<T_ITEM>>
Throws:
org.pm4j.core.exception.PmConverterException