|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xwiki.properties.converter.AbstractConverter
org.xwiki.properties.internal.converter.EnumConverter
@Component @Named(value="enum") @Singleton public class EnumConverter
Bean Utils converter that converts a value into an enumeration class value.
| Constructor Summary | |
|---|---|
EnumConverter()
|
|
| Method Summary | ||
|---|---|---|
protected
|
convertToType(java.lang.reflect.Type type,
java.lang.Object value)
Convert the input object into an output object of the specified type. |
|
| Methods inherited from class org.xwiki.properties.converter.AbstractConverter |
|---|
convert, convertToString, convertToType |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EnumConverter()
| Method Detail |
|---|
protected <T> T convertToType(java.lang.reflect.Type type,
java.lang.Object value)
Typical implementations will provide a minimum of String --> type conversion.
convertToType in class AbstractConverterT - the type in which the provided value has o be convertedtype - Data type to which this value should be converted.value - The input value to be converted.
org.apache.commons.beanutils.converters.AbstractConverter#convertToType(java.lang.Class, java.lang.Object)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||