org.springframework.roo.classpath.converters
Class JavaTypeConverter

java.lang.Object
  extended by org.springframework.roo.classpath.converters.JavaTypeConverter
All Implemented Interfaces:
org.springframework.roo.shell.Converter

@Service
public class JavaTypeConverter
extends Object
implements org.springframework.roo.shell.Converter

Provides conversion to and from JavaType, with full support for using "~" as denoting the user's top-level package.

Since:
1.0
Author:
Ben Alex

Constructor Summary
JavaTypeConverter()
           
 
Method Summary
 Object convertFromText(String value, Class<?> requiredType, String optionContext)
           
 boolean getAllPossibleValues(List<String> 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
 

Constructor Detail

JavaTypeConverter

public JavaTypeConverter()
Method Detail

convertFromText

public Object convertFromText(String value,
                              Class<?> requiredType,
                              String optionContext)
Specified by:
convertFromText in interface org.springframework.roo.shell.Converter

supports

public boolean supports(Class<?> requiredType,
                        String optionContext)
Specified by:
supports in interface org.springframework.roo.shell.Converter

getAllPossibleValues

public boolean getAllPossibleValues(List<String> completions,
                                    Class<?> requiredType,
                                    String existingData,
                                    String optionContext,
                                    org.springframework.roo.shell.MethodTarget target)
Specified by:
getAllPossibleValues in interface org.springframework.roo.shell.Converter


Copyright © 2009-2010 VMware, Inc. All Rights Reserved.