1 26 27 package com.opensugar.cube.ldap; 28 29 public abstract class SimpleClause extends Clause { 30 31 private String key; 32 private String value; 33 private boolean keysCaseSensitive; 34 35 public SimpleClause( String key, String value, boolean keysCaseSensitive ) { 36 if ( key == null || key.length() == 0 ) { 37 throw new IllegalArgumentException ( "Null key in SimpleClause" ); 38 } 39 if ( value == null || value.length() == 0 ) { 40 throw new IllegalArgumentException ( "Null value in SimpleClause" ); 41 } 42 this.key = key; 43 this.value = value; 44 this.keysCaseSensitive = keysCaseSensitive; 45 } 46 47 public String getKey() { 48 return key; 49 } 50 51 public String getValue() { 52 return value; 53 } 54 55 public boolean areKeysCaseSensitive() { 56 return keysCaseSensitive; 57 } 58 59 } | Popular Tags |