org.kuali.rice.krad.datadictionary.parse
Class StringMapConverter

java.lang.Object
  extended by org.kuali.rice.krad.datadictionary.parse.StringMapConverter
All Implemented Interfaces:
org.springframework.core.convert.converter.GenericConverter

public class StringMapConverter
extends Object
implements org.springframework.core.convert.converter.GenericConverter

Converts a string configured in the dictionary for a map property type to a Map object using the convention of commas to separate map entries and a colon to separate the key value pair

Author:
Kuali Rice Team (rice.collab@kuali.org)

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.springframework.core.convert.converter.GenericConverter
org.springframework.core.convert.converter.GenericConverter.ConvertiblePair
 
Constructor Summary
StringMapConverter()
           
 
Method Summary
 Object convert(Object source, org.springframework.core.convert.TypeDescriptor sourceType, org.springframework.core.convert.TypeDescriptor targetType)
           
 Set<org.springframework.core.convert.converter.GenericConverter.ConvertiblePair> getConvertibleTypes()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringMapConverter

public StringMapConverter()
Method Detail

getConvertibleTypes

public Set<org.springframework.core.convert.converter.GenericConverter.ConvertiblePair> getConvertibleTypes()
Specified by:
getConvertibleTypes in interface org.springframework.core.convert.converter.GenericConverter

convert

public Object convert(Object source,
                      org.springframework.core.convert.TypeDescriptor sourceType,
                      org.springframework.core.convert.TypeDescriptor targetType)
Specified by:
convert in interface org.springframework.core.convert.converter.GenericConverter


Copyright © 2005-2013 The Kuali Foundation. All Rights Reserved.