org.springframework.roo.classpath.operations
Class HintConverter

java.lang.Object
  extended by org.springframework.roo.classpath.operations.HintConverter
All Implemented Interfaces:
org.springframework.roo.shell.Converter<String>

@Service
public class HintConverter
extends Object
implements org.springframework.roo.shell.Converter<String>

Converter for String that understands the "topics" option context.

Since:
1.1
Author:
Ben Alex

Constructor Summary
HintConverter()
           
 
Method Summary
 String 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
 

Constructor Detail

HintConverter

public HintConverter()
Method Detail

convertFromText

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

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<String>

supports

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


Copyright © 2009–2015. All rights reserved.