Package com.independentsoft.office.odf
Class BibliographyConfiguration
java.lang.Object
com.independentsoft.office.odf.BibliographyConfiguration
Represents how bibliography entries are displayed in-line, and how they are displayed in a bibliography index.
-
Constructor Summary
ConstructorsConstructorDescriptionInitializes a new instance of the BibliographyConfiguration class.Instantiates a new bibliography configuration. -
Method Summary
Modifier and TypeMethodDescriptionclone()Creates a new object that is a deep copy of the current instance.Gets the country code used for sorting a bibliographic index.Gets the language code used for sorting an alphabetical index.Gets a string that is displayed before a bibliography entry's short name or number if it occurs outside the bibliography.Gets the locale specific sorting algorithm by name.Contains the single sort key if bibliography entries are not displayed in document order.Gets a string that is displayed after a bibliography entry's short name or number if it occurs outside the bibliography.booleanSpecifies whether a number is displayed for bibliography entries instead of their short name.booleanSpecifies whether bibliography entries are displayed in the order of their positions in the document, or by selected fields.voidsetCountry(String country)Sets the country code used for sorting a bibliographic index.voidsetLanguage(String language)Sets the language code used for sorting an alphabetical index.voidsetNumberedEntries(boolean numberedEntries)Specifies whether a number is displayed for bibliography entries instead of their short name.voidSets a string that is displayed before a bibliography entry's short name or number if it occurs outside the bibliography.voidsetSortAlgorithm(String sortAlgorithm)Sets the locale specific sorting algorithm by name.voidsetSortByPosition(boolean sortByPosition)Specifies whether bibliography entries are displayed in the order of their positions in the document, or by selected fields.voidSets a string that is displayed after a bibliography entry's short name or number if it occurs outside the bibliography.toString()Converts the value of the current BibliographyConfiguration object to its equivalent string representation.
-
Constructor Details
-
BibliographyConfiguration
public BibliographyConfiguration()Initializes a new instance of the BibliographyConfiguration class. -
BibliographyConfiguration
Instantiates a new bibliography configuration.- Parameters:
reader- the reader- Throws:
XMLStreamException- the xML stream exception
-
-
Method Details
-
clone
Creates a new object that is a deep copy of the current instance. -
toString
Converts the value of the current BibliographyConfiguration object to its equivalent string representation. -
getPrefix
Gets a string that is displayed before a bibliography entry's short name or number if it occurs outside the bibliography.- Returns:
- the prefix
-
setPrefix
Sets a string that is displayed before a bibliography entry's short name or number if it occurs outside the bibliography.- Parameters:
prefix- the new prefix
-
getSuffix
Gets a string that is displayed after a bibliography entry's short name or number if it occurs outside the bibliography.- Returns:
- the suffix
-
setSuffix
Sets a string that is displayed after a bibliography entry's short name or number if it occurs outside the bibliography.- Parameters:
suffix- the new suffix
-
isNumberedEntries
public boolean isNumberedEntries()Specifies whether a number is displayed for bibliography entries instead of their short name. The defined values for the are: -false: short names for bibliographic entries displayed. -true: number displayed for bibliographic entries.- Returns:
- true, if is numbered entries
-
setNumberedEntries
public void setNumberedEntries(boolean numberedEntries)Specifies whether a number is displayed for bibliography entries instead of their short name. The defined values for the are: -false: short names for bibliographic entries displayed. -true: number displayed for bibliographic entries.- Parameters:
numberedEntries- the new numbered entries
-
isSortByPosition
public boolean isSortByPosition()Specifies whether bibliography entries are displayed in the order of their positions in the document, or by selected fields. The defined values are: -false: bibliographic entries are displayed in the order of their positions in a document. -true: bibliographic entries are displayed as sorted by selected fields.- Returns:
- true, if is sort by position
-
setSortByPosition
public void setSortByPosition(boolean sortByPosition)Specifies whether bibliography entries are displayed in the order of their positions in the document, or by selected fields. The defined values are: -false: bibliographic entries are displayed in the order of their positions in a document. -true: bibliographic entries are displayed as sorted by selected fields.- Parameters:
sortByPosition- the new sort by position
-
getLanguage
Gets the language code used for sorting an alphabetical index.- Returns:
- the language
-
setLanguage
Sets the language code used for sorting an alphabetical index.- Parameters:
language- the new language
-
getCountry
Gets the country code used for sorting a bibliographic index.- Returns:
- the country
-
setCountry
Sets the country code used for sorting a bibliographic index.- Parameters:
country- the new country
-
getSortAlgorithm
Gets the locale specific sorting algorithm by name.- Returns:
- the sort algorithm
-
setSortAlgorithm
Sets the locale specific sorting algorithm by name.- Parameters:
sortAlgorithm- the new sort algorithm
-
getSortKeys
Contains the single sort key if bibliography entries are not displayed in document order.- Returns:
- the sort keys
-