|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectto.etc.domui.converter.ConverterRegistry
public class ConverterRegistry
A repository of Converter instances.
Constructor Summary | |
---|---|
ConverterRegistry()
|
Method Summary | ||
---|---|---|
static
|
convertStringToValue(java.lang.Class<T> clz,
java.util.Locale loc,
java.lang.String in)
Convert a String value to some object, using the specified converter. |
|
static
|
convertStringToValue(java.lang.Class<T> clz,
java.lang.String in)
Convert a String value to some object, using the specified converter. |
|
static
|
convertToString(PropertyMetaModel<X> pmm,
X value)
Convert the value which is for a given property to a presentation string. |
|
static
|
convertURLStringToValue(java.lang.Class<X> toType,
java.lang.String svalue)
Convert the URL string passed to some object value. |
|
static
|
convertValueToString(java.lang.Class<T> clz,
java.util.Locale loc,
X in)
Convert some object to a String value, using the specified converter. |
|
static
|
convertValueToString(java.lang.Class<T> clz,
X in)
Convert some object to a String value, using the specified converter. |
|
static
|
findBestConverter(PropertyMetaModel<X> pmm)
Obtain the very best presentation converter we can find for the specified property. |
|
static
|
findConverter(java.lang.Class<X> clz)
Finds the best converter to convert a value of the specified type to a string. |
|
static
|
findConverter(java.lang.Class<X> clz,
PropertyMetaModel<X> pmm)
Finds the best converter to convert a value of the specified type (and the optionally specified metadata) to a string. |
|
static
|
findURLConverter(java.lang.Class<X> totype)
Find an URL converter to convert to the given type. |
|
static
|
getConverter(java.lang.Class<X> clz,
PropertyMetaModel<X> pmm)
Gets the best converter to convert a value of the specified type (and the optionally specified metadata) to a string. |
|
static
|
getConverterInstance(java.lang.Class<T> clz)
Get an instance of a given converter type. |
|
static void |
register(IConverterFactory cf)
Registers the specified converter factory. |
|
static
|
registerURLConverter(java.lang.Class<X> totype,
IConverter<X> c)
Register an URL converter for the specified class. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ConverterRegistry()
Method Detail |
---|
public static <X,T extends IConverter<X>> T getConverterInstance(java.lang.Class<T> clz)
clz
-
public static <X,T extends IConverter<X>> X convertStringToValue(java.lang.Class<T> clz, java.util.Locale loc, java.lang.String in) throws java.lang.Exception
clz
- loc
- in
-
java.lang.Exception
public static <X,T extends IConverter<X>> java.lang.String convertValueToString(java.lang.Class<T> clz, java.util.Locale loc, X in) throws java.lang.Exception
clz
- loc
- in
-
java.lang.Exception
public static <X,T extends IConverter<X>> X convertStringToValue(java.lang.Class<T> clz, java.lang.String in) throws java.lang.Exception
clz
- in
-
java.lang.Exception
public static <X,T extends IConverter<X>> java.lang.String convertValueToString(java.lang.Class<T> clz, X in) throws java.lang.Exception
clz
- in
-
java.lang.Exception
public static <X> void registerURLConverter(java.lang.Class<X> totype, IConverter<X> c)
totype
- c
- public static <X> IConverter<X> findURLConverter(java.lang.Class<X> totype)
totype
-
public static <X> X convertURLStringToValue(java.lang.Class<X> toType, java.lang.String svalue) throws java.lang.Exception
toType
- svalue
-
java.lang.Exception
public static void register(IConverterFactory cf)
public static <X> IConverter<X> findConverter(java.lang.Class<X> clz, PropertyMetaModel<X> pmm)
clz
- The class type of the value to convertpmm
- The metadata for the property, or null if unknown.
public static <X> IConverter<X> findConverter(java.lang.Class<X> clz)
clz
- The class type of the value to convertpublic static <X> IConverter<X> getConverter(java.lang.Class<X> clz, PropertyMetaModel<X> pmm)
clz
- The class type of the value to convertpmm
- The metadata for the property, or null if unknown.
public static <X> java.lang.String convertToString(PropertyMetaModel<X> pmm, X value)
X
- pmm
- value
-
public static <X> IConverter<X> findBestConverter(PropertyMetaModel<X> pmm)
pmm
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |