@Component
public class CompletionConverter
extends java.lang.Object
implements org.springframework.shell.core.Converter<java.lang.String>
Constructor and Description |
---|
CompletionConverter() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
convertFromText(java.lang.String value,
java.lang.Class<?> targetType,
java.lang.String optionContext) |
boolean |
getAllPossibleValues(java.util.List<org.springframework.shell.core.Completion> completions,
java.lang.Class<?> targetType,
java.lang.String existingData,
java.lang.String optionContext,
org.springframework.shell.core.MethodTarget target) |
boolean |
supports(java.lang.Class<?> type,
java.lang.String optionContext) |
public boolean supports(java.lang.Class<?> type, java.lang.String optionContext)
supports
in interface org.springframework.shell.core.Converter<java.lang.String>
public java.lang.String convertFromText(java.lang.String value, java.lang.Class<?> targetType, java.lang.String optionContext)
convertFromText
in interface org.springframework.shell.core.Converter<java.lang.String>
public boolean getAllPossibleValues(java.util.List<org.springframework.shell.core.Completion> completions, java.lang.Class<?> targetType, java.lang.String existingData, java.lang.String optionContext, org.springframework.shell.core.MethodTarget target)
getAllPossibleValues
in interface org.springframework.shell.core.Converter<java.lang.String>