1 16 package org.outerj.daisy.repository.query; 17 18 public class FacetConf { 19 private boolean isFacet; 20 private int maxValues; 21 private boolean sortOnValue; 22 private boolean sortAscending; 23 24 public FacetConf(boolean isFacet) { 25 this(); 26 this.isFacet = isFacet; 27 } 28 29 public FacetConf(int maxValues, boolean sortOnValue, boolean sortAscending) { 30 this.isFacet = true; 31 this.maxValues = maxValues; 32 this.sortOnValue = sortOnValue; 33 this.sortAscending = sortAscending; 34 } 35 36 public FacetConf() { 37 this.isFacet = true; 38 this.maxValues = 10; 39 this.sortOnValue = true; 40 this.sortAscending = true; 41 } 42 43 public boolean isFacet() { 44 return isFacet; 45 } 46 47 public void setIsFacet(boolean isFacet) { 48 this.isFacet = isFacet; 49 } 50 51 54 public int getMaxValues() { 55 return maxValues; 56 } 57 58 public void setMaxValues(int maxValues) { 59 this.maxValues = maxValues; 60 } 61 62 66 public boolean getSortOnValue() { 67 return sortOnValue; 68 } 69 70 public void setSortOnValue(boolean sortOnValue) { 71 this.sortOnValue = sortOnValue; 72 } 73 74 77 public boolean getSortAscending() { 78 return sortAscending; 79 } 80 81 public void setSortAscending(boolean sortAscending) { 82 this.sortAscending = sortAscending; 83 } 84 } 85 | Popular Tags |