001    package org.maltparser.core.symbol;
002    
003    import java.io.BufferedReader;
004    import java.io.BufferedWriter;
005    import java.util.Set;
006    
007    import org.apache.log4j.Logger;
008    import org.maltparser.core.exception.MaltChainedException;
009    import org.maltparser.core.symbol.nullvalue.NullValues.NullValueId;
010    
011    public interface SymbolTable extends Table {
012            public int addSymbol(StringBuilder symbol) throws MaltChainedException;
013            public Set<Integer> getCodes();
014            public void printSymbolTable(Logger logger) throws MaltChainedException;
015            public void save(BufferedWriter out) throws MaltChainedException;
016            public void load(BufferedReader in) throws MaltChainedException;
017            public int getValueCounter();
018            public int getNullValueCode(NullValueId nullValueIdentifier) throws MaltChainedException;
019            public String getNullValueSymbol(NullValueId nullValueIdentifier) throws MaltChainedException;
020            public boolean isNullValue(String value) throws MaltChainedException;
021            public boolean isNullValue(int code) throws MaltChainedException;
022            public void copy(SymbolTable fromTable) throws MaltChainedException;
023    }