01: /*
02: * Copyright 2003-2004 Michael Franken, Zilverline.
03: *
04: * The contents of this file, or the files included with this file, are subject to
05: * the current version of ZILVERLINE Collaborative Source License for the
06: * Zilverline Search Engine (the "License"); You may not use this file except in
07: * compliance with the License.
08: *
09: * You may obtain a copy of the License at
10: *
11: * http://www.zilverline.org.
12: *
13: * See the License for the rights, obligations and
14: * limitations governing use of the contents of the file.
15: *
16: * The Original and Upgraded Code is the Zilverline Search Engine. The developer of
17: * the Original and Upgraded Code is Michael Franken. Michael Franken owns the
18: * copyrights in the portions it created. All Rights Reserved.
19: *
20: */
21:
22: package org.zilverline.web;
23:
24: /**
25: * Form for submitting collections to indexing.
26: *
27: * @author Michael Franken
28: * @version $Revision: 1.15 $
29: */
30: public final class CollectionForm {
31:
32: /** name(s) of collection(s). */
33: private String[] names;
34:
35: /** indicates whether the index needs to be reindexed instead of incrementally. */
36: private boolean fullIndex;
37:
38: /**
39: * Get the Array of name(s) of the collection(s).
40: *
41: * @return the names of the Collection
42: */
43: public String[] getNames() {
44: return names;
45: }
46:
47: /**
48: * Set the name(s) of the collection(s).
49: *
50: * @param string name(s) of the collection(s)
51: */
52: public void setNames(final String[] string) {
53: names = string;
54: }
55:
56: /**
57: * Check whether the index needs to be reindexed instead of incrementally.
58: *
59: * @return true if so
60: */
61: public boolean getFullIndex() {
62: return fullIndex;
63: }
64:
65: /**
66: * Set whether the index needs to be reindexed instead of incrementally.
67: *
68: * @param b true of false
69: */
70: public void setFullIndex(final boolean b) {
71: fullIndex = b;
72: }
73: }
|