The entries are stored in BibDatabase, the other data in MetaData and the options relevant for this file in Defaults.
To get an instance for a .bib file, use org..
| Modifier and Type | Field and Description |
|---|---|
| private final BibDatabase | |
| private CoarseChangeFilter | |
| private DatabaseSynchronizer | |
| private DatabaseLocation | |
| private static final Logger | |
| private MetaData | |
| private Path | path
The path where this database was last saved to. |
| private final String | uid
Generate a random UID for unique of the concrete context In contrast to hashCode this stays unique |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | |
| public void | |
| public void | |
| public boolean | equals(Object
the reference object with which to compare. o)Overrides java. Indicates whether some other object is "equal to" this one. |
| public BibDatabase | |
| public Optional | Returns: Optional of the relevant Path, or Optional.empty() if none is defined.Get the path where this database was last saved to or loaded from, if any. |
| public DatabaseSynchronizer | |
| public List | |
| public List | getFileDirectories(FilePreferences
The fileDirectory preferences preferences)Look up the directories set up for this database. |
| private Path | |
| public Optional | Returns: the path - or an empty optional, if none of the directories existsReturns the first existing file directory from |
| public @NonNull Path | Returns: The path to store the lucene index files. One directory for each library.
|
| public DatabaseLocation | |
| public MetaData | |
| public BibDatabaseMode | |
| public String | Returns: The generated UID in UUIDv4 format with the prefix bibdatabasecontext_Get the generated UID for the current context. |
| public int | |
| public boolean | |
| public boolean | |
| public void | |
| public void | |
| public void | |
| public String |
| database | back to summary |
|---|---|
| private final BibDatabase database | |
| dbmsListener | back to summary |
|---|---|
| private CoarseChangeFilter dbmsListener | |
| dbmsSynchronizer | back to summary |
|---|---|
| private DatabaseSynchronizer dbmsSynchronizer | |
| location | back to summary |
|---|---|
| private DatabaseLocation location | |
| LOGGER | back to summary |
|---|---|
| private static final Logger LOGGER | |
| metaData | back to summary |
|---|---|
| private MetaData metaData | |
| path | back to summary |
|---|---|
| private Path path The path where this database was last saved to. | |
| uid | back to summary |
|---|---|
| private final String uid Generate a random UID for unique of the concrete context In contrast to hashCode this stays unique | |
| BibDatabaseContext | back to summary |
|---|---|
| public BibDatabaseContext() | |
| BibDatabaseContext | back to summary |
|---|---|
| public BibDatabaseContext(BibDatabase database) | |
| BibDatabaseContext | back to summary |
|---|---|
| public BibDatabaseContext(BibDatabase database, MetaData metaData) | |
| BibDatabaseContext | back to summary |
|---|---|
| public BibDatabaseContext(BibDatabase database, MetaData metaData, Path path) | |
| BibDatabaseContext | back to summary |
|---|---|
| public BibDatabaseContext(BibDatabase database, MetaData metaData, Path path, DatabaseLocation location) | |
| clearDatabasePath | back to summary |
|---|---|
| public void clearDatabasePath() | |
| clearDBMSSynchronizer | back to summary |
|---|---|
| public void clearDBMSSynchronizer() | |
| convertToLocalDatabase | back to summary |
|---|---|
| public void convertToLocalDatabase() | |
| convertToSharedDatabase | back to summary |
|---|---|
| public void convertToSharedDatabase(DatabaseSynchronizer dmbsSynchronizer) | |
| equals | back to summary |
|---|---|
| public boolean equals(Object o) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| getDatabase | back to summary |
|---|---|
| public BibDatabase getDatabase() | |
| getDatabasePath | back to summary |
|---|---|
| public Optional Get the path where this database was last saved to or loaded from, if any. | |
| getDBMSSynchronizer | back to summary |
|---|---|
| public DatabaseSynchronizer getDBMSSynchronizer() | |
| getEntries | back to summary |
|---|---|
| public List | |
| getFileDirectories | back to summary |
|---|---|
| public List Look up the directories set up for this database. There can be up to four directories definitions for these files:
The settings are prioritized in the following order, and the first defined setting is used:
| |
| getFileDirectoryPath | back to summary |
|---|---|
| private Path getFileDirectoryPath(String directoryName) | |
| getFirstExistingFileDir | back to summary |
|---|---|
| public Optional Returns the first existing file directory from | |
| getFulltextIndexPath | back to summary |
|---|---|
| public @NonNull Path getFulltextIndexPath() | |
| getLocation | back to summary |
|---|---|
| public DatabaseLocation getLocation() | |
| getMetaData | back to summary |
|---|---|
| public MetaData getMetaData() | |
| getMode | back to summary |
|---|---|
| public BibDatabaseMode getMode() | |
| getUid | back to summary |
|---|---|
| public String getUid() Get the generated UID for the current context. Can be used to distinguish contexts with changing metadata etc
This is required, because of
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
Implementation Note This implementation needs to be consistent with equals. That means, as soon as a new entry is added to the database, two different instances of BibDatabaseContext are not equal - and thus, the hashCode also needs to change. This has the drawback, that one cannot create HashMaps from the BiDatabaseContext anymore, as the hashCode changes as soon as a new entry is added.
| |
| isBiblatexMode | back to summary |
|---|---|
| public boolean isBiblatexMode() | |
| isStudy | back to summary |
|---|---|
| public boolean isStudy() Returns whether this .bib file belongs to a | |
| setDatabasePath | back to summary |
|---|---|
| public void setDatabasePath(Path file) | |
| setMetaData | back to summary |
|---|---|
| public void setMetaData(MetaData metaData) | |
| setMode | back to summary |
|---|---|
| public void setMode(BibDatabaseMode bibDatabaseMode) | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |