org.springframework.roo.classpath.converters
Class JavaPackageConverter
java.lang.Object
org.springframework.roo.classpath.converters.JavaPackageConverter
- All Implemented Interfaces:
- org.springframework.roo.shell.Converter<org.springframework.roo.model.JavaPackage>
@Service
public class JavaPackageConverter
- extends Object
- implements org.springframework.roo.shell.Converter<org.springframework.roo.model.JavaPackage>
A Converter for JavaPackages, with support for using
"~" to denote the user's top-level package.
- Since:
- 1.0
- Author:
- Ben Alex
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TOP_LEVEL_PACKAGE_SYMBOL
public static final String TOP_LEVEL_PACKAGE_SYMBOL
- The shell character that represents the current project or module's top
level Java package.
- See Also:
- Constant Field Values
JavaPackageConverter
public JavaPackageConverter()
convertFromText
public org.springframework.roo.model.JavaPackage convertFromText(String value,
Class<?> requiredType,
String optionContext)
- Specified by:
convertFromText in interface org.springframework.roo.shell.Converter<org.springframework.roo.model.JavaPackage>
getAllPossibleValues
public boolean getAllPossibleValues(List<org.springframework.roo.shell.Completion> completions,
Class<?> requiredType,
String existingData,
String optionContext,
org.springframework.roo.shell.MethodTarget target)
- Specified by:
getAllPossibleValues in interface org.springframework.roo.shell.Converter<org.springframework.roo.model.JavaPackage>
supports
public boolean supports(Class<?> requiredType,
String optionContext)
- Specified by:
supports in interface org.springframework.roo.shell.Converter<org.springframework.roo.model.JavaPackage>
Copyright © 2009–2015. All rights reserved.