org.springframework.roo.shell.converters
Class StaticFieldConverterImpl
java.lang.Object
org.springframework.roo.shell.converters.StaticFieldConverterImpl
- All Implemented Interfaces:
- Converter, StaticFieldConverter
@Service
public class StaticFieldConverterImpl
- extends Object
- implements StaticFieldConverter
A simple Converter
for those classes which provide public static fields to represent possible
textual values.
- Since:
- 1.0
- Author:
- Stefan Schmidt, Ben Alex
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StaticFieldConverterImpl
public StaticFieldConverterImpl()
add
public void add(Class<?> clazz)
- Specified by:
add
in interface StaticFieldConverter
remove
public void remove(Class<?> clazz)
- Specified by:
remove
in interface StaticFieldConverter
convertFromText
public Object convertFromText(String value,
Class<?> requiredType,
String optionContext)
- Specified by:
convertFromText
in interface Converter
getAllPossibleValues
public boolean getAllPossibleValues(List<String> completions,
Class<?> requiredType,
String existingData,
String optionContext,
MethodTarget target)
- Specified by:
getAllPossibleValues
in interface Converter
supports
public boolean supports(Class<?> requiredType,
String optionContext)
- Specified by:
supports
in interface Converter
Copyright © 2009-2010 VMware, Inc. All Rights Reserved.