public class DatabaseFileLookup
extends java.lang.Object
BibtexDatabase
for
files. Constructor and Description |
---|
DatabaseFileLookup(BibtexDatabase aDatabase)
Creates an instance by passing a
BibtexDatabase which will be
used for the searches. |
Modifier and Type | Method and Description |
---|---|
boolean |
lookupDatabase(java.io.File aFile)
Returns whether the File
aFile is present in the database
as an attached File to an BibtexEntry . |
boolean |
lookupEntry(java.io.File aFile,
BibtexEntry anEntry)
|
public DatabaseFileLookup(BibtexDatabase aDatabase)
BibtexDatabase
which will be
used for the searches.aDatabase
- A BibtexDatabase
.public boolean lookupDatabase(java.io.File aFile)
aFile
is present in the database
as an attached File to an BibtexEntry
. BibtexEntry
in the database. file
- A File
Object.true
, if the file Object is stored in at least one
entry in the database, otherwise false
.public boolean lookupEntry(java.io.File aFile, BibtexEntry anEntry)
BibtexEntry
anEntry
for the
appearance of the specified File
aFile
. aFile
- A file that is searched in an bibtex-entry.anEntry
- A bibtex-entry, in which the file is searched.true
, if the bibtex entry stores the file in its
file-field, otherwise false
.