|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.vraptor.converter.FixedPatternCalendarConverter
public class FixedPatternCalendarConverter
Fixed Locale based calendar converter. Uses the error key invalid_date if unable to parse its information.
| Constructor Summary | |
|---|---|
FixedPatternCalendarConverter(String pattern)
Simple constructor with pattern |
|
| Method Summary | |
|---|---|
Object |
convert(String value,
Class<?> type,
LogicRequest context)
Converts a value to an specific type |
Class<?>[] |
getSupportedTypes()
Returns the list of supported types |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FixedPatternCalendarConverter(String pattern)
pattern - pattern| Method Detail |
|---|
public Object convert(String value,
Class<?> type,
LogicRequest context)
throws ConversionException
Converter
convert in interface Convertervalue - current valuetype - desired type
ConversionException - some convertion problem hapennedorg.vraptor.converter.Converter#convert(java.lang.String,
java.lang.Class, org.vraptor.scope.LogicRequest)public Class<?>[] getSupportedTypes()
Converter
getSupportedTypes in interface Converter
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||