public class ParseSymbolTable extends java.lang.Object implements SymbolTable
BOOLEAN, categories, INPUT, INTEGER, NA, OUTPUT, REAL, STRING, types
Constructor and Description |
---|
ParseSymbolTable(java.lang.String _name,
int _category,
int _type,
java.lang.String nullValueStrategy,
SymbolTableHandler parentSymbolTableHandler) |
ParseSymbolTable(java.lang.String name,
SymbolTableHandler parentSymbolTableHandler) |
ParseSymbolTable(java.lang.String _name,
SymbolTable parentTable,
SymbolTableHandler parentSymbolTableHandler) |
Modifier and Type | Method and Description |
---|---|
int |
addSymbol(java.lang.String symbol) |
double |
addSymbolValue(java.lang.String symbol) |
void |
clearTmpStorage() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getName() |
int |
getNullValueCode(NullValues.NullValueId nullValueIdentifier) |
java.lang.String |
getNullValueSymbol(NullValues.NullValueId nullValueIdentifier) |
java.lang.String |
getSymbolCodeToString(int code) |
int |
getSymbolStringToCode(java.lang.String symbol) |
double |
getSymbolStringToValue(java.lang.String symbol) |
int |
getValueCounter() |
int |
hashCode() |
boolean |
isNullValue(int code) |
boolean |
isNullValue(java.lang.String symbol) |
void |
load(java.io.BufferedReader in) |
void |
save(java.io.BufferedWriter out) |
int |
size() |
java.lang.String |
toString() |
public ParseSymbolTable(java.lang.String _name, int _category, int _type, java.lang.String nullValueStrategy, SymbolTableHandler parentSymbolTableHandler) throws MaltChainedException
MaltChainedException
public ParseSymbolTable(java.lang.String _name, SymbolTable parentTable, SymbolTableHandler parentSymbolTableHandler) throws MaltChainedException
MaltChainedException
public ParseSymbolTable(java.lang.String name, SymbolTableHandler parentSymbolTableHandler) throws MaltChainedException
MaltChainedException
public int addSymbol(java.lang.String symbol) throws MaltChainedException
addSymbol
in interface Table
MaltChainedException
public double addSymbolValue(java.lang.String symbol) throws MaltChainedException
MaltChainedException
public java.lang.String getSymbolCodeToString(int code) throws MaltChainedException
getSymbolCodeToString
in interface Table
MaltChainedException
public int getSymbolStringToCode(java.lang.String symbol) throws MaltChainedException
getSymbolStringToCode
in interface Table
MaltChainedException
public double getSymbolStringToValue(java.lang.String symbol) throws MaltChainedException
getSymbolStringToValue
in interface Table
MaltChainedException
public void clearTmpStorage()
public void save(java.io.BufferedWriter out) throws MaltChainedException
save
in interface SymbolTable
MaltChainedException
public void load(java.io.BufferedReader in) throws MaltChainedException
load
in interface SymbolTable
MaltChainedException
public int getValueCounter()
getValueCounter
in interface SymbolTable
public int getNullValueCode(NullValues.NullValueId nullValueIdentifier) throws MaltChainedException
getNullValueCode
in interface SymbolTable
MaltChainedException
public java.lang.String getNullValueSymbol(NullValues.NullValueId nullValueIdentifier) throws MaltChainedException
getNullValueSymbol
in interface SymbolTable
MaltChainedException
public boolean isNullValue(java.lang.String symbol) throws MaltChainedException
isNullValue
in interface SymbolTable
MaltChainedException
public boolean isNullValue(int code) throws MaltChainedException
isNullValue
in interface SymbolTable
MaltChainedException
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
Copyright 2007-2017 Johan Hall, Jens Nilsson and Joakim Nivre.