1
14
15 package gate.creole.ir;
16
17 import java.util.*;
18
19 public class DefaultIndexDefinition implements IndexDefinition{
20
21
22 private List fields;
23
24
25 private String location;
26
27
28 private ArrayList featuresToExclude;
30 private String annotationSet;
31 private String baseTokenAnnotationType;
32
33
34
35
38
41 public void setIndexLocation(String location){
42 this.location = location;
43 }
44
45 public String getIndexLocation(){
46 return location;
47 }
48
49
50
51 public void setFeaturesToExclude(ArrayList featuresToExclude) {
53 this.featuresToExclude = featuresToExclude;
54 }
55
56 public ArrayList getFeaturesToExclude() {
57 return featuresToExclude;
58 }
59
60 public void setAnnotationSetName(String annotSetName) {
61 this.annotationSet = annotSetName;
62 }
63
64 public String getAnnotationSetName() {
65 return this.annotationSet;
66 }
67
68 public void setBaseTokenAnnotationType(String baseTokenAnnotationType) {
69 this.baseTokenAnnotationType = baseTokenAnnotationType;
70 }
71
72 public String getBaseTokenAnnotationType() {
73 return this.baseTokenAnnotationType;
74 }
75
76
77
78
90
91 public Iterator getIndexFields(){
92 return fields.iterator();
93 }
94
95
96 public void addIndexField(IndexField fld){
97 if (fields==null){
98 fields = new Vector();
99 }
100 fields.add(fld);
101 }
102
103
107 public void setIrEngineClassName(String irEngineClassName) {
108 this.irEngineClassName = irEngineClassName;
109 }
110
111
115 public String getIrEngineClassName() {
116 return irEngineClassName;
117 }
118
119
120 static final long serialVersionUID = 2925395897153647322L;
121 private String irEngineClassName;
122 }
123