1 26 27 package com.opensugar.cube.ldap; 28 29 import java.util.Dictionary ; 30 31 public class NotClause extends Clause { 32 33 private Clause clause; 34 35 public NotClause( Clause clause ) { 36 this.clause = clause; 37 } 38 39 public boolean filter( Dictionary props ) { 40 return !clause.filter( props ); 41 } 42 43 public boolean areKeysCaseSensitive() { 45 return true; 46 } 47 48 public String getCanonicalForm() { 49 return "(" + Filter.NOT + clause.getCanonicalForm() + ")"; 50 } 51 52 } | Popular Tags |