public abstract class BibliographyGenerator
extends java.lang.Object
| Modifier | Constructor and Description |
|---|---|
protected |
BibliographyGenerator(OfficeReader ofr,
boolean bSkipKey)
Create a new bibliography generator based on a bibliography configuration and a list of bibliography marks
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
generateBibliography(org.w3c.dom.Element bibSource)
Generate a bibliography
|
java.lang.String |
generateCitation(java.lang.String sKey)
Get citation text for a reference to the bibliography
|
protected java.util.Collection<java.lang.String> |
getLabels()
Get all labels used in the bibliography
|
protected abstract void |
insertBibliographyItem(java.lang.String sStyleName,
java.lang.String sKey)
Insert a new bibliography item
|
protected abstract void |
insertBibliographyItemElement(java.lang.String sStyleName,
java.lang.String sText)
Insert an element of a bibliography item
|
protected boolean |
isNumberedEntries()
Check whether entries are numbered rather than labeled with the key
|
protected BibliographyGenerator(OfficeReader ofr, boolean bSkipKey)
ofr - the office reader used to access the source documentbSkipKey - set to true if the key should be excluded when applying templatesprotected java.util.Collection<java.lang.String> getLabels()
protected boolean isNumberedEntries()
public java.lang.String generateCitation(java.lang.String sKey)
sKey - the key of the bibliography itemprotected void generateBibliography(org.w3c.dom.Element bibSource)
bibSource - a text:bibliography-source elementprotected abstract void insertBibliographyItem(java.lang.String sStyleName,
java.lang.String sKey)
sStyleName - a paragraph style to apply to the itemsKey - the key of the bibliography itemprotected abstract void insertBibliographyItemElement(java.lang.String sStyleName,
java.lang.String sText)
sStyleName - a character style to apply to the elementsText - the element text