Class SimpleSymbolPropertyTableDB

    • Constructor Detail

      • SimpleSymbolPropertyTableDB

        public SimpleSymbolPropertyTableDB()
        Initializes the database.
      • SimpleSymbolPropertyTableDB

        public SimpleSymbolPropertyTableDB​(SymbolPropertyTableIterator tableIterator)
                                    throws BioException
        Initializes the database by copying all symbol property tables from a given iterator into the database.
        Parameters:
        tableIterator - an iterator over symbol property tables.
        Throws:
        BioException - if the symbol property tables could not be iterated.
    • Method Detail

      • addTable

        public void addTable​(SymbolPropertyTable table)
                      throws java.lang.NullPointerException
        Adds a symbol property table to the database. Overrides an existing table entry with the same name.
        Parameters:
        table - the symbol property table to add.
        Throws:
        java.lang.NullPointerException - if table is null.
      • numTables

        public int numTables()
        Returns the number of symbol property tables in the database.
        Specified by:
        numTables in interface SymbolPropertyTableDB
        Returns:
        the number of tables
      • names

        public java.util.Set names()
        Returns the set of unique table names.
        Specified by:
        names in interface SymbolPropertyTableDB
        Returns:
        a set containing strings