Package no.priv.garshol.duke

Examples of no.priv.garshol.duke.Cleaner


  public void addValue(Column col, String value) {
    if (value == null || value.equals(""))
      return;
   
    String prop = col.getProperty();
    Cleaner cleaner = col.getCleaner();
    if (col.isSplit()) {
      for (String v : col.split(value)) {
        if (cleaner != null)
          v = cleaner.clean(v);
        if (v != null && !v.equals(""))
          record.addValue(prop, v);
      }
    } else {
      if (cleaner != null)
        value = cleaner.clean(value);
      if (value != null && !value.equals(""))
        record.addValue(prop, value);
    }
  }
View Full Code Here

TOP

Related Classes of no.priv.garshol.duke.Cleaner

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.