1 23 24 package org.apache.slide.search; 25 26 33 import org.apache.slide.common.PropertyName; 34 36 public class CompareHint { 37 38 39 protected String propName; 40 41 42 protected String propNamespace; 43 44 45 private boolean ascending; 46 47 48 private boolean caseSensitive; 49 50 private PropertyName comparedProperty; 51 52 53 59 public String getPropName () { 60 return propName; 61 } 62 63 69 public String getPropNamespace () { 70 return propNamespace; 71 } 72 73 79 public boolean isAscending () { 80 return ascending; 81 } 82 83 89 public boolean isCaseSensitive () { 90 return caseSensitive; 91 } 92 93 94 102 public CompareHint (PropertyName prop, boolean ascending, boolean caseSensitive) { 103 this.propName = prop.getName(); 104 this.propNamespace = prop.getNamespace(); 105 this.ascending = ascending; 106 this.caseSensitive = caseSensitive; 107 this.comparedProperty = prop; 108 } 109 110 111 117 public PropertyName getComparedProperty () { 118 return comparedProperty; 119 } 120 } 121 122 | Popular Tags |