|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.vraptor.converter.basic.PrimitiveBooleanConverter
public class PrimitiveBooleanConverter
Primitive boolean converter. For the wrapper class Boolean see
SimpleBooleanConverter.
Uses the error key invalid_boolean if unable to parse its information.
SimpleBooleanConverter| Constructor Summary | |
|---|---|
PrimitiveBooleanConverter()
|
|
| 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 PrimitiveBooleanConverter()
| 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 hapennedpublic Class<?>[] getSupportedTypes()
getSupportedTypes in interface ConverterConverter.getSupportedTypes()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||