public class MappingDefinition extends AbstractLanguageResource implements List<MappingNode>
dataStore, lrPersistentId
name
features
Constructor and Description |
---|
MappingDefinition()
Creates a new mapping definition
|
Modifier and Type | Method and Description |
---|---|
void |
add(int index,
MappingNode o)
adds a new node at the specified position, only if its list is new and uniquely mapped to this node.
|
boolean |
add(MappingNode o)
adds a new node, only if its list is new and uniquely mapped to this node.
|
boolean |
addAll(Collection<? extends MappingNode> c) |
boolean |
addAll(int index,
Collection<? extends MappingNode> c) |
void |
clear() |
boolean |
contains(Object o) |
boolean |
containsAll(Collection<?> c) |
boolean |
equals(Object obj) |
MappingNode |
get(int index) |
Set<String> |
getLists()
Gets the gaz lists.
|
MappingNode |
getNodeByList(String list)
Gets node by list
|
URL |
getURL()
Gets the url of this definition
|
List<String> |
getUrls()
Gets the urls from this definition
|
int |
hashCode() |
int |
indexOf(Object o) |
boolean |
isEmpty() |
Iterator<MappingNode> |
iterator() |
int |
lastIndexOf(Object o) |
ListIterator<MappingNode> |
listIterator() |
ListIterator<MappingNode> |
listIterator(int index) |
void |
load()
Loads the mapping definition
|
MappingNode |
remove(int index) |
boolean |
remove(Object o) |
boolean |
removeAll(Collection<?> c) |
boolean |
retainAll(Collection<?> c) |
MappingNode |
set(int index,
MappingNode o) |
void |
setURL(URL aUrl)
Sets the url of this definition
|
int |
size() |
void |
store()
Stores the mapping definition
|
List<MappingNode> |
subList(int i1,
int i2) |
Object[] |
toArray() |
<T> T[] |
toArray(T[] a) |
cleanup, getDataStore, getLRPersistenceId, getParent, isModified, setDataStore, setLRPersistenceId, setParent, sync
checkParameterValues, flushBeanInfoCache, forgetBeanInfo, getBeanInfo, getInitParameterValues, getInitParameterValues, getName, getParameterValue, getParameterValue, getParameterValues, init, removeResourceListeners, setName, setParameterValue, setParameterValue, setParameterValues, setParameterValues, setResourceListeners, toString
getFeatures, setFeatures
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getParameterValue, init, setParameterValue, setParameterValues
getFeatures, setFeatures
getName, setName
public MappingDefinition()
public List<String> getUrls()
public void setURL(URL aUrl)
aUrl
- the url of the definitionpublic void load() throws ResourceInstantiationException, InvalidFormatException
ResourceInstantiationException
- if load fails.InvalidFormatException
public void store() throws ResourceInstantiationException
ResourceInstantiationException
- if store fails.public MappingNode getNodeByList(String list)
list
- a gazetteer list filenamepublic int size()
size
in interface Collection<MappingNode>
size
in interface List<MappingNode>
public boolean isEmpty()
isEmpty
in interface Collection<MappingNode>
isEmpty
in interface List<MappingNode>
public boolean contains(Object o)
contains
in interface Collection<MappingNode>
contains
in interface List<MappingNode>
public Iterator<MappingNode> iterator()
iterator
in interface Iterable<MappingNode>
iterator
in interface Collection<MappingNode>
iterator
in interface List<MappingNode>
public Object[] toArray()
toArray
in interface Collection<MappingNode>
toArray
in interface List<MappingNode>
public <T> T[] toArray(T[] a)
toArray
in interface Collection<MappingNode>
toArray
in interface List<MappingNode>
public boolean add(MappingNode o)
add
in interface Collection<MappingNode>
add
in interface List<MappingNode>
o
- a nodepublic void add(int index, MappingNode o)
add
in interface List<MappingNode>
o
- a nodeindex
- position in the listpublic MappingNode set(int index, MappingNode o)
set
in interface List<MappingNode>
public MappingNode get(int index)
get
in interface List<MappingNode>
public boolean remove(Object o)
remove
in interface Collection<MappingNode>
remove
in interface List<MappingNode>
public MappingNode remove(int index)
remove
in interface List<MappingNode>
public boolean containsAll(Collection<?> c)
containsAll
in interface Collection<MappingNode>
containsAll
in interface List<MappingNode>
public boolean addAll(Collection<? extends MappingNode> c)
addAll
in interface Collection<MappingNode>
addAll
in interface List<MappingNode>
public boolean addAll(int index, Collection<? extends MappingNode> c)
addAll
in interface List<MappingNode>
public boolean removeAll(Collection<?> c)
removeAll
in interface Collection<MappingNode>
removeAll
in interface List<MappingNode>
public boolean retainAll(Collection<?> c)
retainAll
in interface Collection<MappingNode>
retainAll
in interface List<MappingNode>
public void clear()
clear
in interface Collection<MappingNode>
clear
in interface List<MappingNode>
public int hashCode()
hashCode
in interface Collection<MappingNode>
hashCode
in interface List<MappingNode>
hashCode
in class Object
public boolean equals(Object obj)
equals
in interface Collection<MappingNode>
equals
in interface List<MappingNode>
equals
in class Object
public List<MappingNode> subList(int i1, int i2)
subList
in interface List<MappingNode>
public ListIterator<MappingNode> listIterator(int index)
listIterator
in interface List<MappingNode>
public ListIterator<MappingNode> listIterator()
listIterator
in interface List<MappingNode>
public int lastIndexOf(Object o)
lastIndexOf
in interface List<MappingNode>
public int indexOf(Object o)
indexOf
in interface List<MappingNode>