|
GATE Version 3.1-2270 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectgate.util.AbstractFeatureBearer
gate.creole.AbstractResource
gate.creole.AbstractLanguageResource
gate.creole.gazetteer.MappingDefinition
public class MappingDefinition
Represents a mapping definition which maps gazetteer lists to ontology classes
| Field Summary |
|---|
| Fields inherited from class gate.creole.AbstractLanguageResource |
|---|
dataStore, lrPersistentId |
| Fields inherited from class gate.creole.AbstractResource |
|---|
name |
| Fields inherited from class gate.util.AbstractFeatureBearer |
|---|
features |
| Constructor Summary | |
|---|---|
MappingDefinition()
Creates a new mapping definition |
|
| Method Summary | |
|---|---|
void |
add(int index,
Object o)
adds a new node at the specified position, only if its list is new and uniquely mapped to this node. |
boolean |
add(Object o)
adds a new node, only if its list is new and uniquely mapped to this node. |
boolean |
addAll(Collection c)
|
boolean |
addAll(int index,
Collection c)
|
void |
clear()
|
boolean |
contains(Object o)
|
boolean |
containsAll(Collection c)
|
boolean |
equals(Object o)
|
Object |
get(int index)
|
Set |
getLists()
Gets the gaz lists. |
MappingNode |
getNodeByList(String list)
Gets node by list |
URL |
getURL()
Gets the url of this definition |
List |
getUrls()
Gets the urls from this definition |
int |
indexOf(Object o)
|
boolean |
isEmpty()
|
Iterator |
iterator()
|
int |
lastIndexOf(Object o)
|
ListIterator |
listIterator()
|
ListIterator |
listIterator(int index)
|
void |
load()
Loads the mapping definition |
Object |
remove(int index)
|
boolean |
remove(Object o)
|
boolean |
removeAll(Collection c)
|
boolean |
retainAll(Collection c)
|
Object |
set(int index,
Object o)
|
void |
setURL(URL aUrl)
Sets the url of this definition |
int |
size()
|
void |
store()
Stores the mapping definition |
List |
subList(int i1,
int i2)
|
Object[] |
toArray()
|
Object[] |
toArray(Object[] a)
|
| Methods inherited from class gate.creole.AbstractLanguageResource |
|---|
cleanup, getDataStore, getLRPersistenceId, getParent, isModified, setDataStore, setLRPersistenceId, setParent, sync |
| Methods inherited from class gate.creole.AbstractResource |
|---|
checkParameterValues, getBeanInfo, getName, getParameterValue, getParameterValue, init, removeResourceListeners, setName, setParameterValue, setParameterValue, setParameterValues, setParameterValues, setResourceListeners |
| Methods inherited from class gate.util.AbstractFeatureBearer |
|---|
getFeatures, setFeatures |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.util.List |
|---|
hashCode |
| Methods inherited from interface gate.Resource |
|---|
getParameterValue, init, setParameterValue, setParameterValues |
| Methods inherited from interface gate.util.FeatureBearer |
|---|
getFeatures, setFeatures |
| Methods inherited from interface gate.util.NameBearer |
|---|
getName, setName |
| Constructor Detail |
|---|
public MappingDefinition()
| Method Detail |
|---|
public List getUrls()
public URL getURL()
public void setURL(URL aUrl)
aUrl - the url of the definition
public void load()
throws ResourceInstantiationException,
InvalidFormatException
ResourceInstantiationException - if load fails.
InvalidFormatException
public void store()
throws ResourceInstantiationException
ResourceInstantiationException - if store fails.public Set getLists()
public MappingNode getNodeByList(String list)
list - a gazetteer list filename
public int size()
size in interface Collectionsize in interface Listpublic boolean isEmpty()
isEmpty in interface CollectionisEmpty in interface Listpublic boolean contains(Object o)
contains in interface Collectioncontains in interface Listpublic Iterator iterator()
iterator in interface Iterableiterator in interface Collectioniterator in interface Listpublic Object[] toArray()
toArray in interface CollectiontoArray in interface Listpublic Object[] toArray(Object[] a)
toArray in interface CollectiontoArray in interface Listpublic boolean add(Object o)
add in interface Collectionadd in interface Listo - a node
public void add(int index,
Object o)
add in interface Listo - a nodeindex - position in the list
public Object set(int index,
Object o)
set in interface Listpublic Object get(int index)
get in interface Listpublic boolean remove(Object o)
remove in interface Collectionremove in interface Listpublic Object remove(int index)
remove in interface Listpublic boolean containsAll(Collection c)
containsAll in interface CollectioncontainsAll in interface Listpublic boolean addAll(Collection c)
addAll in interface CollectionaddAll in interface List
public boolean addAll(int index,
Collection c)
addAll in interface Listpublic boolean removeAll(Collection c)
removeAll in interface CollectionremoveAll in interface Listpublic boolean retainAll(Collection c)
retainAll in interface CollectionretainAll in interface Listpublic void clear()
clear in interface Collectionclear in interface Listpublic boolean equals(Object o)
equals in interface Collectionequals in interface Listequals in class Object
public List subList(int i1,
int i2)
subList in interface Listpublic ListIterator listIterator(int index)
listIterator in interface Listpublic ListIterator listIterator()
listIterator in interface Listpublic int lastIndexOf(Object o)
lastIndexOf in interface Listpublic int indexOf(Object o)
indexOf in interface List
|
GATE Version 3.1-2270 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||