protected void buildCompletions() {
   java.util.ArrayList<String> emptyKeyList = new java.util.ArrayList<String>();
   for (String title : mVerbs.keySet()) {
     emptyKeyList.add(changeCaseDisplay(title));
     for (int idx = 1; idx <= title.length(); idx++) {
       String curKey = title.substring(0, idx);
       if (!mVerbCompletion.containsKey(curKey)) {
         java.util.ArrayList<String> newList = new java.util.ArrayList<String>();
         mVerbCompletion.put(curKey, newList);
       }
       java.util.ArrayList<String> curList = mVerbCompletion.get(curKey);
       curList.add(changeCaseDisplay(title));
     }
   }
   mVerbCompletion.put("", emptyKeyList);
   mVerbCompletion.put(" ", emptyKeyList);
 }
 public boolean validate(String text) {
   return (text != null) ? mVerbs.containsKey(text.toUpperCase()) : false;
 }
 public BaseAutoCompleter(String[] text) {
   for (String s : text) {
     mVerbs.put(s, s);
   }
   buildCompletions();
 }
 public BaseAutoCompleter(String text) {
   mVerbs.put(text, text);
   buildCompletions();
 }