Revision 11464 trunk/libraries/libGPE/src/org/gvsig/gpe/GPEParser.java
GPEParser.java | ||
---|---|---|
46 | 46 |
* |
47 | 47 |
* $Id$ |
48 | 48 |
* $Log$ |
49 |
* Revision 1.10 2007-04-20 12:04:10 csanchez |
|
49 |
* Revision 1.11 2007-05-07 07:06:26 jorpiell |
|
50 |
* Add a constructor with the name and the description fields |
|
51 |
* |
|
52 |
* Revision 1.10 2007/04/20 12:04:10 csanchez |
|
50 | 53 |
* Actualizacion protoripo libGPE, AƱadidos test para el parser, parseo con XSOM |
51 | 54 |
* |
52 | 55 |
* Revision 1.9 2007/04/19 11:50:20 csanchez |
... | ... | |
86 | 89 |
public abstract class GPEParser { |
87 | 90 |
private GPEErrorHandler errorHandler; |
88 | 91 |
private GPEContentHandler contentHandler; |
92 |
private String name = null; |
|
93 |
private String description = null; |
|
89 | 94 |
private File mainFile; |
90 | 95 |
|
91 | 96 |
/** |
92 |
* All the GPE parser must implement a constructor without |
|
93 |
* arguments. |
|
97 |
* All the GPE parser must implement a constructor with this |
|
98 |
* two arguments. |
|
99 |
* @param name |
|
100 |
* Parser name |
|
101 |
* @param description |
|
102 |
* Parser description |
|
94 | 103 |
**/ |
95 |
public GPEParser(){ |
|
96 |
|
|
104 |
public GPEParser(String name, String description){ |
|
105 |
this.name = name; |
|
106 |
this.description = description; |
|
97 | 107 |
} |
98 | 108 |
|
99 | 109 |
/** |
... | ... | |
160 | 170 |
return mainFile; |
161 | 171 |
} |
162 | 172 |
|
173 |
/** |
|
174 |
* @return the description |
|
175 |
*/ |
|
176 |
public String getDescription() { |
|
177 |
return description; |
|
178 |
} |
|
179 |
|
|
180 |
/** |
|
181 |
* @return the name |
|
182 |
*/ |
|
183 |
public String getName() { |
|
184 |
return name; |
|
185 |
} |
|
186 |
|
|
163 | 187 |
} |
Also available in: Unified diff