|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.gisgraphy.util.DateConverter
public class DateConverter
This class is converts a java.util.Date to a String and a String to a java.util.Date.
| Constructor Summary | |
|---|---|
DateConverter()
|
|
| Method Summary | |
|---|---|
Object |
convert(Class type,
Object value)
Convert a date to a String and a String to a Date |
protected Object |
convertToDate(Class type,
Object value,
String pattern)
Convert a String to a Date with the specified pattern. |
protected Object |
convertToString(Class type,
Object value)
Convert a java.util.Date to a String |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DateConverter()
| Method Detail |
|---|
public Object convert(Class type,
Object value)
convert in interface org.apache.commons.beanutils.Convertertype - String, Date or Timestampvalue - value to convert
protected Object convertToDate(Class type,
Object value,
String pattern)
type - Stringvalue - value of Stringpattern - date pattern to parse with
protected Object convertToString(Class type,
Object value)
type - Date or Timestampvalue - value to convert
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||