Package net.matuschek.spider

Examples of net.matuschek.spider.RegExpRule


  public String getColumnName(int col) {
    return columns[col];
  }

  public Object getValueAt(int row, int col) {
    RegExpRule rule = (RegExpRule)rules.elementAt(row);
    if (col == 0) {
      return new Boolean(rule.getAllow());
    } else if (col == 1) {
      return rule.getPattern();
    } else {
      return null;
    }
  }
View Full Code Here



   /**
    **/
   public void setValueAt(Object value, int row, int col) {
     RegExpRule rule = (RegExpRule)rules.elementAt(row);

     if (col == 0) {
       // allow/deny
       rule.setAllow(((Boolean)value).booleanValue());
     } else if (col == 1) {
       try {
         rule.setPattern((String)value);
       } catch (org.apache.regexp.RESyntaxException e) {
         // TO DO !
       }
     } else {
       // this should never happen
View Full Code Here

TOP

Related Classes of net.matuschek.spider.RegExpRule

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.