org.springframework.roo.classpath.converters
Class JavaPackageConverter

java.lang.Object
  extended by 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

Field Summary
static String TOP_LEVEL_PACKAGE_SYMBOL
          The shell character that represents the current project or module's top level Java package.
 
Constructor Summary
JavaPackageConverter()
           
 
Method Summary
 org.springframework.roo.model.JavaPackage convertFromText(String value, Class<?> requiredType, String optionContext)
           
 boolean getAllPossibleValues(List<org.springframework.roo.shell.Completion> completions, Class<?> requiredType, String existingData, String optionContext, org.springframework.roo.shell.MethodTarget target)
           
 boolean supports(Class<?> requiredType, String optionContext)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

JavaPackageConverter

public JavaPackageConverter()
Method Detail

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.