Changeset 4542 for vlo/branches/vlo-3.0/vlo-web-app/src/main/java/eu/clarin/cmdi/vlo/pojo/FacetSelection.java
- Timestamp:
- 02/20/14 16:29:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
vlo/branches/vlo-3.0/vlo-web-app/src/main/java/eu/clarin/cmdi/vlo/pojo/FacetSelection.java
r4540 r4542 15 15 * along with this program. If not, see <http://www.gnu.org/licenses/>. 16 16 */ 17 17 18 package eu.clarin.cmdi.vlo.pojo; 18 19 19 import java.io.Serializable;20 20 import java.util.List; 21 import java.util.concurrent.CopyOnWriteArrayList;22 import org.apache.wicket.model.IModel;23 21 24 22 /** … … 26 24 * @author twagoo 27 25 */ 28 public class FacetSelection implements Serializable{26 public interface FacetSelection { 29 27 30 private final String facet; 31 private final IModel<QueryFacetsSelection> selectionModel; 28 String getFacet(); 32 29 33 public FacetSelection(String facet, IModel<QueryFacetsSelection> selectionModel) { 34 this.facet = facet; 35 this.selectionModel = selectionModel; 36 } 30 List<String> getFacetValues(); 37 31 38 public String getFacet() { 39 return facet; 40 } 41 42 public QueryFacetsSelection getSelection() { 43 return selectionModel.getObject(); 44 } 45 46 public List<String> getFacetValues() { 47 return new CopyOnWriteArrayList<String>(getSelection().getSelectionValues(facet)); 48 } 49 32 QueryFacetsSelection getSelection(); 33 50 34 }
Note: See TracChangeset
for help on using the changeset viewer.