org.apache.bval.jsr303.util
Class EnumerationConverter

java.lang.Object
  extended by org.apache.bval.jsr303.util.EnumerationConverter
All Implemented Interfaces:
org.apache.commons.beanutils.Converter

public final class EnumerationConverter
extends Object
implements org.apache.commons.beanutils.Converter

A org.apache.commons.beanutils.Converter implementation to handle Enumeration type. $Id: EnumerationConverter.java 1226560 2012-01-02 22:18:19Z mbenson $


Method Summary
 Object convert(Class type, Object value)
          
static EnumerationConverter getInstance()
          Returns this converter instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static EnumerationConverter getInstance()
Returns this converter instance.

Returns:
this converter instance.

convert

public Object convert(Class type,
                      Object value)

Specified by:
convert in interface org.apache.commons.beanutils.Converter


Copyright © 2010-2014 The Apache Software Foundation. All Rights Reserved.