com.arsdigita.util.parameter
Class Converters
java.lang.Object
com.arsdigita.util.parameter.Converters
- public class Converters
- extends Object
Subject to change.
Collects together BeanUtils converters for use by the base
Parameter
s.
- Version:
- $Id: //core-platform/dev/src/com/arsdigita/util/parameter/Converters.java#5 $
- Author:
- Justin Ross <jross@redhat.com>
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 |
versionId
public static final String versionId
- See Also:
- Constant Field Values
Converters
public Converters()
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 nullconverter
- 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 nullvalue
- 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 21 2004:2337 UTC