public class FunctionalTermTableImpl extends Object implements FunctionalTermTable
Modifier and Type | Class and Description |
---|---|
(package private) class |
FunctionalTermTableImpl.FT |
Modifier and Type | Field and Description |
---|---|
(package private) FilterKBase |
kbase |
(package private) long |
nlid |
(package private) HashMap |
terms |
Constructor and Description |
---|
FunctionalTermTableImpl(FilterKBase kbase)
Constructor
|
Modifier and Type | Method and Description |
---|---|
String |
add(FunctionalTermParamNode term)
Adds a functional term in the table
|
(package private) String |
complete(String term,
HashMap named_terms) |
KBQueryFilter |
getKBQueryFilter() |
void |
load(Reader r)
Loads functional terms from a given reader
|
void |
load(String file)
Loads functional terms from a given file
|
(package private) String |
localID(String id) |
(package private) ListOfTerm |
lookupFields(String classname,
String[] fields,
String lid)
Looks for terms matching the class name, the required fields and the local id,
in the current table.
|
FilterKBase kbase
HashMap terms
long nlid
public FunctionalTermTableImpl(FilterKBase kbase)
kbase
- the kbase used to add the proper filters. It should not be null.ListOfTerm lookupFields(String classname, String[] fields, String lid)
classname
- the name of the functional termfields
- a array holding the name of all required fieldslid
- the local id or nullpublic String add(FunctionalTermParamNode term)
FunctionalTermTable
add
in interface FunctionalTermTable
term
- the term to addpublic void load(Reader r) throws IOException
FunctionalTermTable
load
in interface FunctionalTermTable
r
- the reader where to read the functional termsIOException
void load(String file)
public void load(String file)
FunctionalTermTable
load
in interface FunctionalTermTable
file
- the name of the file where to read the termspublic KBQueryFilter getKBQueryFilter()