org.pm4j.core.pm
Interface PmAttr.Converter<T>

Type Parameters:
T - The type of the items to convert.
All Known Implementing Classes:
PmAttrEnumImpl.PmConverterEnum, PmConverterBigDecimal, PmConverterBoolean, PmConverterDate, PmConverterDouble, PmConverterInteger, PmConverterList, PmConverterLong, PmConverterNumber, PmConverterOptionBased, PmConverterSerializeableBase, PmConverterShort, PmConverterString, PmConverterString.Trimmed
Enclosing interface:
PmAttr<T>

public static interface PmAttr.Converter<T>

Converts single values between its attribute type representation and String or Serializable representation.


Method Summary
 T serializeableToValue(PmAttr<?> pmAttr, java.io.Serializable s)
           
 T stringToValue(PmAttr<?> pmAttr, java.lang.String s)
           
 java.io.Serializable valueToSerializable(PmAttr<?> pmAttr, T v)
           
 java.lang.String valueToString(PmAttr<?> pmAttr, T v)
           
 

Method Detail

stringToValue

T stringToValue(PmAttr<?> pmAttr,
                java.lang.String s)
                throws org.pm4j.core.exception.PmConverterException
Throws:
org.pm4j.core.exception.PmConverterException

valueToString

java.lang.String valueToString(PmAttr<?> pmAttr,
                               T v)

serializeableToValue

T serializeableToValue(PmAttr<?> pmAttr,
                       java.io.Serializable s)
                       throws org.pm4j.core.exception.PmConverterException
Throws:
org.pm4j.core.exception.PmConverterException

valueToSerializable

java.io.Serializable valueToSerializable(PmAttr<?> pmAttr,
                                         T v)