001: /*
002: * Project: LIUS
003: * Package: ca.ulaval.bibl.lius.config
004: *
005: * Copyright (c) 2004 by Jens Fendler <jf@teamskill.de>
006: *
007: * This program is a free software; you can redistribute it and/or
008: * modify it under the terms of the GNU General Public License as
009: * published by the Free Software Foundation; either version 2 of
010: * the License, or (at your option) any later version.
011: * This program is distributed in the hope that it will be useful,
012: * but WITHOUT ANY WARRANTY; without even the implied warranty of
013: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
014: * General Public License for more details.
015: * You should have received a copy of the GNU General Public License
016: * along with this program; if not, write to the Free Software
017: * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
018: */
019:
020: package ca.ulaval.bibl.lius.config;
021:
022: import java.io.InputStreamReader;
023: import java.io.Reader;
024: import java.util.Date;
025: import java.util.Vector;
026:
027: /**
028: * Class: LiusProxyField <br>
029: *
030: * This class simply maps all requests to a 'real' LiusField object. The
031: * intention of this class is to serve as an entrypoint for multiple (equal)
032: * fields from a single document.
033: *
034: * Changelog:
035: * <ul>
036: * <li>02.06.2005: Initial implementation (jf)</li>
037: * </ul>
038: *
039: * @see ca.ulaval.bibl.lius.config.LiusValueProxyField
040: * @see de.teamskill.lius.index.application.VCardIndexer
041: *
042: * @author <a href="mailto:jf@teamskill.de">Jens Fendler </a>
043: *
044: */
045: public abstract class LiusProxyField extends LiusField {
046:
047: private LiusField lf;
048:
049: // Proxy Fields should not be constructed directly
050: private LiusProxyField() {
051: }
052:
053: public LiusProxyField(LiusField realField) {
054: if (realField == null)
055: throw new IllegalArgumentException(
056: "A valid LiusField instance is required for LiusProxyField.");
057: this .lf = realField;
058: }
059:
060: public String getName() {
061: return lf.getName();
062: }
063:
064: public void setName(String name) {
065: lf.setName(name);
066: }
067:
068: public String getXpathSelect() {
069: return lf.getXpathSelect();
070: }
071:
072: public void setXpathSelect(String xpathSelect) {
073: lf.setXpathSelect(xpathSelect);
074: }
075:
076: public String getType() {
077: return lf.getType();
078: }
079:
080: public void setType(String type) {
081: lf.setType(type);
082: }
083:
084: public String getValue() {
085: return lf.getValue();
086: }
087:
088: public void setValue(String value) {
089: lf.setValue(value);
090: }
091:
092: public String getOcurSep() {
093: return lf.getOcurSep();
094: }
095:
096: public void setOcurSep(String ocurSep) {
097: lf.setOcurSep(ocurSep);
098: }
099:
100: public void setDateLong(long dateLong) {
101: lf.setDateLong(dateLong);
102: }
103:
104: public long getDateLong() {
105: return lf.getDateLong();
106: }
107:
108: public void setDate(Date date) {
109: lf.setDate(date);
110: }
111:
112: public Date getDate() {
113: return lf.getDate();
114: }
115:
116: public void setGetMethod(String getMethod) {
117: lf.setGetMethod(getMethod);
118: }
119:
120: public String getGetMethod() {
121: return lf.getGetMethod();
122: }
123:
124: public void setGet(String get) {
125: lf.setGet(get);
126: }
127:
128: public String getGet() {
129: return lf.getGet();
130: }
131:
132: public void setValueInputStreamReader(
133: InputStreamReader valueInputStreamReader) {
134: lf.setValueInputStreamReader(valueInputStreamReader);
135: }
136:
137: public InputStreamReader getValueInputStreamReader() {
138: return lf.getValueInputStreamReader();
139: }
140:
141: public void setValueReader(Reader valueReader) {
142: lf.setValueReader(valueReader);
143: }
144:
145: public Reader getValueReader() {
146: return lf.getValueReader();
147: }
148:
149: public void setLabel(String label) {
150: lf.setLabel(label);
151: }
152:
153: public String getLabel() {
154: return lf.getLabel();
155: }
156:
157: public Vector getValues() {
158: return lf.getValues();
159: }
160:
161: public void setValues(Vector values) {
162: lf.setValues(values);
163: }
164:
165: public void setDateFormat(String dateFormat) {
166: lf.setDateFormat(dateFormat);
167: }
168:
169: public String getDateFormat() {
170: return lf.getDateFormat();
171: }
172:
173: public void setBoost(float boost) {
174: lf.setBoost(boost);
175: }
176:
177: public float getBoost() {
178: return lf.getBoost();
179: }
180:
181: public void setIsBoosted(boolean isBoostedB) {
182: lf.setIsBoosted(isBoostedB);
183: }
184:
185: public boolean getIsBoosted() {
186: return lf.getIsBoosted();
187: }
188:
189: public void setFragmenter(String fragmenter) {
190: lf.setFragmenter(fragmenter);
191: }
192:
193: public String getFragmenter() {
194: return lf.getFragmenter();
195: }
196:
197: }
|