nl.openedge.baritus.population
Class OgnlConverterWrapper

java.lang.Object
  extended byognl.DefaultTypeConverter
      extended bynl.openedge.baritus.population.OgnlConverterWrapper
All Implemented Interfaces:
ognl.TypeConverter

public class OgnlConverterWrapper
extends ognl.DefaultTypeConverter

This class should be registered with the Ognl context before parsing in order to be abel to use our converters. It implements Ognl TypeConverter and uses the ConverterRegistry to lookup converters. If no converter is found for a given type, the default conversion of Ognl is used.

Author:
Eelco Hillenius

Constructor Summary
OgnlConverterWrapper()
           
 
Method Summary
 java.lang.Object convertValue(java.util.Map context, java.lang.Object value, java.lang.Class toType)
          Convert the provided value to provided type using provided context.
 java.lang.Object convertValue(java.util.Map context, java.lang.Object target, java.lang.reflect.Member member, java.lang.String propertyName, java.lang.Object value, java.lang.Class toType)
          This method is only here to satisfy the interface.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OgnlConverterWrapper

public OgnlConverterWrapper()
Method Detail

convertValue

public java.lang.Object convertValue(java.util.Map context,
                                     java.lang.Object value,
                                     java.lang.Class toType)
Convert the provided value to provided type using provided context.

Parameters:
context - Ognl context
value - the current, unconverted value
toType - the type that should be converted to
Returns:
Object the converted value
See Also:
DefaultTypeConverter.convertValue(java.util.Map, java.lang.Object, java.lang.Class)

convertValue

public java.lang.Object convertValue(java.util.Map context,
                                     java.lang.Object target,
                                     java.lang.reflect.Member member,
                                     java.lang.String propertyName,
                                     java.lang.Object value,
                                     java.lang.Class toType)
This method is only here to satisfy the interface. Method convertValue(Map, Object, Class) is called, so parameters member and propertyName are ignored.

See Also:
DefaultTypeConverter.convertValue(java.util.Map, java.lang.Object, java.lang.Class)


Copyright © 2003-2004 Open Edge. All Rights Reserved.