Fido Alpha 3.2

fido.db
Class AttributeCategoryTable

java.lang.Object
  |
  +--fido.db.AttributeCategoryTable

public class AttributeCategoryTable
extends java.lang.Object


Constructor Summary
AttributeCategoryTable()
          Constructs a new AttributeList with no entries in the list.
 
Method Summary
 void add(java.lang.String name)
          Adds or modifies a AttributeList.
 boolean contains(java.lang.String name)
           
 void delete(java.lang.String name)
          Removes the Attribute referenced by the parameters name.
 java.util.Collection list()
          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
 

Constructor Detail

AttributeCategoryTable

public AttributeCategoryTable()
Constructs a new AttributeList with no entries in the list. The database reference is stored so any updates will store in the database. Upon creation, this class will write itself to the database. If an entry with the name AttributeList already exists in the database, the object it points to is replaced.

Throws:
FidoIOException - Input / Output error on creating the AttributeList object
Method Detail

add

public void add(java.lang.String name)
         throws FidoDatabaseException
Adds or modifies a AttributeList. The name parameter is the string used to reference the object in the list. If an entry with this name already is in the list, the object replaced with the type parameter.

Parameters:
name - name of the adjective to add to the list
Throws:
java.sql.SQLException - Input / Output error saving Attributes
FidoDatabaseException

contains

public boolean contains(java.lang.String name)
                 throws FidoDatabaseException
Parameters:
name - name of the adjective to add to the list
Throws:
FidoIOException - Input / Output error saving Attributes
FidoDatabaseException

delete

public void delete(java.lang.String name)
            throws FidoDatabaseException
Removes the Attribute referenced by the parameters name. If the list contains no entery with that name, this call does nothing. The list is only updated in the database file if the link type was acutally removed.

Parameters:
name - Name of the Attribute to remove
Throws:
FidoIOException - Input / Output error saving GrammarLinkList
FidoDatabaseException

list

public java.util.Collection list()
                          throws FidoDatabaseException
Returns the names of all Attribute names in the list. The names of the links are in alphabetical order.

Returns:
list of link names
FidoDatabaseException

Fido Alpha 3.2