01: /*
02: * Copyright 2001-2006 C:1 Financial Services GmbH
03: *
04: * This software is free software; you can redistribute it and/or
05: * modify it under the terms of the GNU Lesser General Public
06: * License Version 2.1, as published by the Free Software Foundation.
07: *
08: * This software is distributed in the hope that it will be useful,
09: * but WITHOUT ANY WARRANTY; without even the implied warranty of
10: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11: * Lesser General Public License for more details.
12: *
13: * You should have received a copy of the GNU Lesser General Public
14: * License along with this library; if not, write to the Free Software
15: * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA
16: */
17:
18: package de.finix.contelligent.xml.elements;
19:
20: import java.util.Collections;
21: import java.util.LinkedList;
22: import java.util.List;
23:
24: public class IndexBuilderFilterElement {
25:
26: private String impl;
27:
28: private LinkedList args = new LinkedList();
29:
30: private LinkedList nestedFilters = new LinkedList();
31:
32: public IndexBuilderFilterElement() {
33: if (false) {
34: }
35: }
36:
37: public String getImpl() {
38: return this .impl;
39: }
40:
41: public void setImpl(String impl) {
42: this .impl = impl;
43: }
44:
45: public List getArgs() {
46: return Collections.unmodifiableList(args);
47: }
48:
49: public String[] getStringArgs() {
50: return (String[]) args.toArray(new String[args.size()]);
51: }
52:
53: public void addArg(ArgElement value) {
54: args.addLast(value.getValue());
55: }
56:
57: public void addFilter(IndexBuilderFilterElement filter) {
58: this .nestedFilters.add(filter);
59: }
60:
61: public List getFilters() {
62: return Collections.unmodifiableList(nestedFilters);
63: }
64: }
|