org.apache.uima.tools.cfe.support
Class SimpleFileBasedDictionary<T>
java.lang.Object
org.apache.uima.tools.cfe.support.FileBasedResource
org.apache.uima.tools.cfe.support.FileBasedDictionary<T>
org.apache.uima.tools.cfe.support.SimpleFileBasedDictionary<T>
- All Implemented Interfaces:
- DictionaryMatcher<String>
- Direct Known Subclasses:
- EnumeratedEntryDictionary
public abstract class SimpleFileBasedDictionary<T>
- extends FileBasedDictionary<T>
- implements DictionaryMatcher<String>
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
m_cmtsep
public final String m_cmtsep
m_fldsep
public final String m_fldsep
SimpleFileBasedDictionary
public SimpleFileBasedDictionary(String name,
String path,
Map<String,T> storage,
String comment_separator,
String filed_separator)
load
public void load()
throws IOException
- Specified by:
load
in class FileBasedResource
- Throws:
IOException
save
public void save()
throws IOException
- Specified by:
save
in class FileBasedResource
- Throws:
IOException
addEntry
protected void addEntry(String key,
T value,
int linenum)
- Specified by:
addEntry
in class FileBasedDictionary<T>
storage
public Map<String,T> storage()
getEntry
public T getEntry(String key)
- Specified by:
getEntry
in class FileBasedDictionary<T>
size
public int size()
- Specified by:
size
in class FileBasedDictionary<T>
matches
public boolean matches(String key)
- Specified by:
matches
in interface DictionaryMatcher<String>
Copyright © 2006-2011 The Apache Software Foundation. All Rights Reserved.