|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.slim3.commons.beanutil.DateConverter
public class DateConverter
The converter for date.
Field Summary | |
---|---|
protected String |
pattern
The pattern for DecimalFormat . |
Constructor Summary | |
---|---|
DateConverter(String pattern)
Constructor. |
Method Summary | |
---|---|
Object |
getAsObject(String value)
Returns the value as object. |
String |
getAsString(Object value)
Returns the value as string. |
boolean |
isTarget(Class<?> clazz)
Determines if the class is target. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected String pattern
DecimalFormat
.
Constructor Detail |
---|
public DateConverter(String pattern) throws NullPointerException
pattern
- the pattern for DecimalFormat
NullPointerException
- if the pattern parameter is nullMethod Detail |
---|
public Object getAsObject(String value)
Converter
getAsObject
in interface Converter
value
- the value
public String getAsString(Object value)
Converter
getAsString
in interface Converter
value
- the value
public boolean isTarget(Class<?> clazz)
Converter
isTarget
in interface Converter
clazz
- the class
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |