com.arsdigita.util.parameter
Class Converters

java.lang.Object
  extended bycom.arsdigita.util.parameter.Converters

public class Converters
extends Object

Subject to change. Collects together BeanUtils converters for use by the base Parameters.

Version:
$Id: //core-platform/dev/src/com/arsdigita/util/parameter/Converters.java#5 $
Author:
Justin Ross <jross@redhat.com>

Field Summary
static String versionId
           
 
Constructor Summary
Converters()
           
 
Method Summary
static Object convert(Class clacc, String value)
          Converts value using the converter registered for clacc.
static org.apache.commons.beanutils.Converter get(Class clacc)
          Gets the Converter registered for clacc.
static void set(Class clacc, org.apache.commons.beanutils.Converter converter)
          Registers converter for clacc.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

versionId

public static final String versionId
See Also:
Constant Field Values
Constructor Detail

Converters

public Converters()
Method Detail

get

public static final org.apache.commons.beanutils.Converter get(Class clacc)
Gets the Converter registered for clacc. This method will fail if no converter is found.

Parameters:
clacc - The Class of the parameter value; it cannot be null
Returns:
A Converter instance; it cannot be null

set

public static final void set(Class clacc,
                             org.apache.commons.beanutils.Converter converter)
Registers converter for clacc.

Parameters:
clacc - The Class of the parameter value; it cannot be null
converter - The Converter to register to clacc; it cannot be null

convert

public static final Object convert(Class clacc,
                                   String value)
Converts value using the converter registered for clacc.

Parameters:
clacc - The Class of the parameter value; it cannot be null
value - The String-encoded value of the parameter; it may be null
Returns:
The Java object conversion for value; it may be null


Copyright (c) 2004 Red Hat, Inc. Corporation. All Rights Reserved. Generated at July 20 2004:2337 UTC