public abstract class FormatUtils extends Object
| Constructor and Description |
|---|
FormatUtils() |
| Modifier and Type | Method and Description |
|---|---|
static <A extends Annotation> |
getAnnotation(PropertyDescriptor pd,
Class<A> annotationType) |
static Field |
getDeclaredField(PropertyDescriptor pd)
Field for property name, if any
|
static org.springframework.format.Formatter<?> |
getFormatter(Class<?> clazz,
String propertyName)
Get a formatter for class and property name
|
static org.springframework.format.Parser<?> |
getParser(Class<?> clazz,
String propertyName)
Get Parser for property name
|
static org.springframework.format.Printer<?> |
getPrinter(Class<?> clazz,
String propertyName)
Get Printer for class and property name
|
public static org.springframework.format.Printer<?> getPrinter(Class<?> clazz, String propertyName)
clazz - the classpropertyName - the property namepublic static org.springframework.format.Parser<?> getParser(Class<?> clazz, String propertyName)
clazz - ClasspropertyName - the property namepublic static org.springframework.format.Formatter<?> getFormatter(Class<?> clazz, String propertyName)
clazz - the classpropertyName - the property namepublic static <A extends Annotation> A getAnnotation(PropertyDescriptor pd, Class<A> annotationType)
public static Field getDeclaredField(PropertyDescriptor pd)
pd - PropertyDescriptorCopyright © 2014 JDAL. All Rights Reserved.