org.pm4j.core.pm.impl.converter
Class PmConverterOptionBased

java.lang.Object
  extended by org.pm4j.core.pm.impl.converter.PmConverterOptionBased
All Implemented Interfaces:
PmAttr.Converter<java.lang.Object>

public class PmConverterOptionBased
extends java.lang.Object
implements PmAttr.Converter<java.lang.Object>

A converter that uses the option set of the attribute in combination with a path that points to the option-id.

Author:
olaf boede

Constructor Summary
PmConverterOptionBased(PathResolver idPath)
           
PmConverterOptionBased(java.lang.String idPathString)
           
 
Method Summary
 java.lang.Object serializeableToValue(PmAttr<?> pmAttr, java.io.Serializable s)
           
 java.lang.Object stringToValue(PmAttr<?> pmAttr, java.lang.String s)
           
 java.io.Serializable valueToSerializable(PmAttr<?> pmAttr, java.lang.Object v)
           
 java.lang.String valueToString(PmAttr<?> pmAttr, java.lang.Object pmValue)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PmConverterOptionBased

public PmConverterOptionBased(java.lang.String idPathString)

PmConverterOptionBased

public PmConverterOptionBased(PathResolver idPath)
Method Detail

stringToValue

public java.lang.Object stringToValue(PmAttr<?> pmAttr,
                                      java.lang.String s)
Specified by:
stringToValue in interface PmAttr.Converter<java.lang.Object>

valueToString

public java.lang.String valueToString(PmAttr<?> pmAttr,
                                      java.lang.Object pmValue)
Specified by:
valueToString in interface PmAttr.Converter<java.lang.Object>

valueToSerializable

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

serializeableToValue

public java.lang.Object serializeableToValue(PmAttr<?> pmAttr,
                                             java.io.Serializable s)
Specified by:
serializeableToValue in interface PmAttr.Converter<java.lang.Object>