|
Fido Alpha 3.2 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--fido.db.GrammarLinkTable
Holds a list of Link names and the types of each link. These links are used to join words together in the Grammar module.
Types of links are a superset of the Parts of Speech:
The list is stored in a database file. After each add, update, or removal of a link, the list is updated in the database.
Grammar
,
LinguisticAnalysis
Field Summary | |
static int |
ADJECTIVE
Constant value used as a link type in the methods addLink() and getLinkType() |
static int |
ADVERB
Constant value used as a link type in the methods addLink() and getLinkType() |
static int |
ARTICLE
Constant value used as a link type in the methods addLink() and getLinkType() |
static int |
CONJUNCTION
Constant value used as a link type in the methods addLink() and getLinkType() |
static int |
DIRECT_OBJECT
Constant value used as a link type in the methods addLink() and getLinkType() |
static int |
HELPING_VERB
Constant value used as a link type in the methods addLink() and getLinkType() |
static int |
INDIRECT_OBJECT
Constant value used as a link type in the methods addLink() and getLinkType() |
static int |
INTERJECTION
Constant value used as a link type in the methods addLink() and getLinkType() |
static int |
NOUN_PHRASE
Constant value used as a link type in the methods addLink() and getLinkType() |
static int |
PREDICATE_ADJECTIVE
Constant value used as a link type in the methods addLink() and getLinkType() |
static int |
PREDICATE_NOUN
Constant value used as a link type in the methods addLink() and getLinkType() |
static int |
PREPOSITION
Constant value used as a link type in the methods addLink() and getLinkType() |
static int |
PREPOSITIONAL_OBJECT
Constant value used as a link type in the methods addLink() and getLinkType() |
static int |
QUESTION_VERB
Constant value used as a link type in the methods addLink() and getLinkType() |
static int |
REGULAR_VERB
Constant value used as a link type in the methods addLink() and getLinkType() |
static int |
SUBJECT
Constant value used as a link type in the methods addLink() and getLinkType() |
Constructor Summary | |
GrammarLinkTable()
Constructs a new GrammarLinkList with no entries in the list. |
Method Summary | |
void |
add(java.lang.String name,
int type)
Adds or modifies a GrammarLinkList. |
boolean |
contains(java.lang.String name)
|
void |
delete(java.lang.String name)
Removes the GrammarLink referenced by the parameters name. |
int |
get(java.lang.String name)
Returns the GrammarLink type referrenced by the parameter name. |
int |
hashCode(java.lang.String linkName)
|
boolean |
isEmpty()
|
java.util.Collection |
list()
Returns the names of all GrammarLink names in the list. |
java.util.Collection |
listTypes()
Returns the names of all Attribute names in the list. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int SUBJECT
public static final int PREDICATE_NOUN
public static final int DIRECT_OBJECT
public static final int INDIRECT_OBJECT
public static final int PREPOSITIONAL_OBJECT
public static final int NOUN_PHRASE
public static final int REGULAR_VERB
public static final int QUESTION_VERB
public static final int PREPOSITION
public static final int ARTICLE
public static final int ADJECTIVE
public static final int ADVERB
public static final int CONJUNCTION
public static final int INTERJECTION
public static final int PREDICATE_ADJECTIVE
public static final int HELPING_VERB
Constructor Detail |
public GrammarLinkTable()
FidoIOException
- Input / Output error on creating the GrammarLinkList objectMethod Detail |
public void add(java.lang.String name, int type) throws FidoDatabaseException
type
- the type of link (noun, verb, ...)
java.sql.SQLException
- Input / Output error saving GrammarLinkList
FidoDatabaseException
public boolean contains(java.lang.String name) throws FidoDatabaseException
FidoDatabaseException
public void delete(java.lang.String name) throws FidoDatabaseException
name
- Name of the GrammarLink to remove
FidoIOException
- Input / Output error saving GrammarLinkList
FidoDatabaseException
public int get(java.lang.String name) throws FidoDatabaseException, GrammarLinkNotFoundException
GrammarLinkNotFoundException
- thrown when the name does
not exist in the list
FidoDatabaseException
public java.util.Collection list() throws FidoDatabaseException
FidoDatabaseException
public java.util.Collection listTypes() throws FidoDatabaseException
FidoDatabaseException
public int hashCode(java.lang.String linkName) throws FidoDatabaseException, GrammarLinkNotFoundException
FidoDatabaseException
GrammarLinkNotFoundException
public boolean isEmpty() throws FidoDatabaseException
FidoDatabaseException
|
Fido Alpha 3.2 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |