|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.tools.ant.ProjectComponent
org.apache.tools.ant.types.DataType
gate.util.ant.packager.GazetteerLists
public class GazetteerLists
Class that extracts the list of gazetteer .lst files from a .def.
This class extends Path so it can be used as a nested element
within the extraresourcespath of a packagegapp task.
| Field Summary | |
|---|---|
private File |
definition
The gazetteer list definition file (.def). |
private String |
encoding
The encoding used to read the def file. |
private String[] |
listNames
The names of the gazetteer lists referenced by the definition. |
| Fields inherited from class org.apache.tools.ant.types.DataType |
|---|
checked, ref |
| Fields inherited from class org.apache.tools.ant.ProjectComponent |
|---|
description, location, project |
| Constructor Summary | |
|---|---|
GazetteerLists()
|
|
| Method Summary | |
|---|---|
boolean |
isFilesystemOnly()
ResourceCollection interface: returns true (this collection always exposes only filesystem resources). |
Iterator |
iterator()
ResourceCollection interface: returns an iterator over the list files. |
private void |
load()
Parse the definition and populate the array of list names. |
void |
setDefinition(File definition)
Set the location of the definition file from which the lists should be extracted. |
void |
setEncoding(String encoding)
Set the encoding used to read the definition file. |
int |
size()
ResourceCollection interface: returns the number of list files referenced by this definition. |
| Methods inherited from class org.apache.tools.ant.types.DataType |
|---|
checkAttributesAllowed, checkChildrenAllowed, circularReference, clone, dieOnCircularReference, dieOnCircularReference, dieOnCircularReference, getCheckedRef, getCheckedRef, getCheckedRef, getCheckedRef, getDataTypeName, getRefid, invokeCircularReferenceCheck, isChecked, isReference, noChildrenAllowed, pushAndInvokeCircularReferenceCheck, setChecked, setRefid, tooManyAttributes, toString |
| Methods inherited from class org.apache.tools.ant.ProjectComponent |
|---|
getDescription, getLocation, getProject, log, log, setDescription, setLocation, setProject |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private File definition
private String encoding
private String[] listNames
| Constructor Detail |
|---|
public GazetteerLists()
| Method Detail |
|---|
public void setDefinition(File definition)
org.apache.tools.ant.BuildException - if an error occurs parsing the definition
file.public Iterator iterator()
iterator in interface org.apache.tools.ant.types.ResourceCollectionpublic boolean isFilesystemOnly()
isFilesystemOnly in interface org.apache.tools.ant.types.ResourceCollectionpublic int size()
size in interface org.apache.tools.ant.types.ResourceCollectionprivate void load()
public void setEncoding(String encoding)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||