Package org.openscience.cdk.dict
Class DictionaryDatabase
java.lang.Object
org.openscience.cdk.dict.DictionaryDatabase
Database of dictionaries listing entries with compounds, fragments
and entities.
- Author:
- Egon Willighagen
- Source code:
- main
- Belongs to CDK module:
- dict
- Keywords:
- dictionary
- Created on:
- 2003-04-06
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetDictionary
(String dictionaryName) String[]
getDictionaryEntries
(String dictionaryName) Returns a String[] with the id's of all entries in the specified database.Entry[]
getDictionaryEntry
(String dictionaryName) String[]
Returns a String[] with the names of the known dictionaries.boolean
hasDictionary
(String name) Returns true if the database contains the dictionary.boolean
Returns true if the given dictionary contains the given entry.Returns true if the database contains the dictionary.void
readDictionary
(Reader reader, String name) Reads a custom dictionary into the database.
-
Field Details
-
DICTREFPROPERTYNAME
- See Also:
-
-
Constructor Details
-
DictionaryDatabase
public DictionaryDatabase()
-
-
Method Details
-
readDictionary
Reads a custom dictionary into the database.- Parameters:
reader
- The reader from which the dictionary data will be readname
- The name of the dictionary
-
getDictionaryNames
Returns a String[] with the names of the known dictionaries.- Returns:
- The names of the dictionaries
-
getDictionary
-
getDictionaryEntries
Returns a String[] with the id's of all entries in the specified database.- Parameters:
dictionaryName
- The name of the dictionary- Returns:
- The entry names for the specified dictionary
-
getDictionaryEntry
-
hasDictionary
Returns true if the database contains the dictionary. -
listDictionaries
Returns true if the database contains the dictionary. -
hasEntry
Returns true if the given dictionary contains the given entry.
-