Search in sources :

Example 16 with Completion

use of org.springframework.roo.shell.Completion in project spring-roo by spring-projects.

the class BooleanConverter method getAllPossibleValues.

public boolean getAllPossibleValues(final List<Completion> completions, final Class<?> requiredType, final String existingData, final String optionContext, final MethodTarget target) {
    completions.add(new Completion("true"));
    completions.add(new Completion("false"));
    completions.add(new Completion("yes"));
    completions.add(new Completion("no"));
    completions.add(new Completion("1"));
    completions.add(new Completion("0"));
    return false;
}
Also used : Completion(org.springframework.roo.shell.Completion)

Aggregations

Completion (org.springframework.roo.shell.Completion)16 JavaType (org.springframework.roo.model.JavaType)6 ArrayList (java.util.ArrayList)5 Test (org.junit.Test)4 Pom (org.springframework.roo.project.maven.Pom)4 File (java.io.File)1 BigDecimal (java.math.BigDecimal)1 BigInteger (java.math.BigInteger)1 Calendar (java.util.Calendar)1 Collection (java.util.Collection)1 Date (java.util.Date)1 List (java.util.List)1 Locale (java.util.Locale)1 Map (java.util.Map)1 Queue (java.util.Queue)1 Set (java.util.Set)1 SortedSet (java.util.SortedSet)1 TreeSet (java.util.TreeSet)1 Repository (org.apache.felix.bundlerepository.Repository)1 Resource (org.apache.felix.bundlerepository.Resource)1