public EntityClassifier<C> replaceRule(String attName,String attValue,C eclass){
  EntityClassifier<C> newClassifier=new EntityClassifier<C>();
  newClassifier.setDefaultEntityClass(eclass);
  for (  RuleGroup<C> rg : rules) {
    if (attName.equals(rg.attName)) {
      if (attValue == null) {
        if (rg.defaultSubClassifier != null) {
          rg.defaultSubClassifier=newClassifier;
          return newClassifier;
        }
      }
 else {
        for (        Rule<C> rule : rg.attValueRules) {
          if (attValue.equals(rule.attValue)) {
            rule.subClassifier=newClassifier;
            return newClassifier;
          }
        }
      }
    }
  }
  return null;
}

public EntityClassifier < C > replaceRule ( String attName , String attValue , C eclass ) { EntityClassifier < C > newClassifier = new EntityClassifier < C > ( ) ; newClassifier . setDefaultEntityClass ( eclass ) ; for ( RuleGroup < C > rg : rules ) { if ( attName . equals ( rg . attName ) ) { if ( attValue == null ) { if ( rg . defaultSubClassifier != null ) { rg . defaultSubClassifier = newClassifier ; return newClassifier ; } } else { for ( Rule < C > rule : rg . attValueRules ) { if ( attValue . equals ( rule . attValue ) ) { rule . subClassifier = newClassifier ; return newClassifier ; } } } } } return null ; }
replaces an existing rule and returns the corresponding sub - classifier if found .
