2 * Copyright (C) 2007 EDIT
3 * European Distributed Institute of Taxonomy
4 * http://www.e-taxonomy.eu
6 * The contents of this file are subject to the Mozilla Public License Version 1.1
7 * See LICENSE.TXT at the top of this package for the full license terms.
10 package eu
.etaxonomy
.taxeditor
.navigation
;
12 import java
.util
.ArrayList
;
13 import java
.util
.Collection
;
14 import java
.util
.Iterator
;
15 import java
.util
.List
;
17 import org
.apache
.log4j
.Logger
;
19 import eu
.etaxonomy
.cdm
.model
.common
.IdentifiableEntity
;
26 public class SearchResult
implements Collection
<IdentifiableEntity
> {
27 private static final Logger logger
= Logger
.getLogger(SearchResult
.class);
29 List
<IdentifiableEntity
> searchResult
= new ArrayList
<IdentifiableEntity
>();
32 public boolean add(IdentifiableEntity e
) {
33 return searchResult
.add(e
);
37 public boolean addAll(Collection
<?
extends IdentifiableEntity
> c
) {
38 return searchResult
.addAll(c
);
47 public boolean contains(Object o
) {
48 return searchResult
.contains(o
);
52 public boolean containsAll(Collection
<?
> c
) {
53 return searchResult
.containsAll(c
);
57 public boolean isEmpty() {
58 return searchResult
.isEmpty();
62 public Iterator
<IdentifiableEntity
> iterator() {
63 return searchResult
.iterator();
67 public boolean remove(Object o
) {
68 return searchResult
.remove(o
);
72 public boolean removeAll(Collection
<?
> c
) {
73 return searchResult
.removeAll(c
);
77 public boolean retainAll(Collection
<?
> c
) {
78 return searchResult
.retainAll(c
);
83 return searchResult
.size();
87 public Object
[] toArray() {
88 return searchResult
.toArray();
92 public <T
> T
[] toArray(T
[] a
) {
93 return searchResult
.toArray(a
);
98 public String
getSearchString() {
102 public void setSearchString(String searchString
) {
103 this.searchString
= searchString
;