Exemple #1
0
  public CContext(String originalWord, VisitorProvider vp, Context pass) {
    kata = new DbKata(pass);

    db = kata.getWritableDatabase();
    this.originalWord = originalWord;
    this.currentWord = this.originalWord;
    this.visitorProvider = vp;

    visitors = new ArrayList<VisitorInterface>();
    suffixVisitors = new ArrayList<VisitorInterface>();
    prefixVisitors = new ArrayList<VisitorInterface>();
    removals = new ArrayList<RemovalInterface>();
    ceksisipan = new CheckSisipan();
    initVisitor();
  }
Exemple #2
0
 public boolean cekKata(String kataku) {
   boolean kataAda = kata.getDataByKata(db, kataku);
   return kataAda;
 }