Top Constructors Methods
org.jabref.logic.openoffice.style

pack-priv Class OOProcessAuthorYearMarkers

extends Object
Class Inheritance
Imports
java.util.ArrayList, .HashMap, .HashSet, .List, .Map, .Optional, .Set, org.jabref.model.openoffice.ootext.OOText, org.jabref.model.openoffice.style.Citation, .CitationGroup, .CitationGroups, .CitationMarkerEntry, .CitationType, .CitedKey, .CitedKeys, .NonUniqueCitationMarker, org.jabref.model.openoffice.util.OOListUtil

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
private static void
createNormalizedCitationMarkers(CitedKeys sortedCitedKeys, OOBibStyle style)

Fills sortedCitedKeys//normCitMarker

private static void
createUniqueLetters(CitedKeys sortedCitedKeys, CitationGroups citationGroups)

For each cited source make the citation keys unique by setting the uniqueLetter fields to letters ("a", "b") or Optional.empty()

Precondition

sortedCitedKeys already has normalized citation markers.

pack-priv static void
produceCitationMarkers(CitationGroups citationGroups, OOBibStyle
Bibliography style.
style
)

Produce citMarkers for normal (!isCitationKeyCiteMarkers && !isNumberEntries) styles.

private static void
setIsFirstAppearanceOfSourceInCitations(CitationGroups citationGroups)

Set isFirstAppearanceOfSource in each citation.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

OOProcessAuthorYearMarkersback to summary
private OOProcessAuthorYearMarkers()

Method Detail

createNormalizedCitationMarkersback to summary
private static void createNormalizedCitationMarkers(CitedKeys sortedCitedKeys, OOBibStyle style)

Fills sortedCitedKeys//normCitMarker

createUniqueLettersback to summary
private static void createUniqueLetters(CitedKeys sortedCitedKeys, CitationGroups citationGroups)

For each cited source make the citation keys unique by setting the uniqueLetter fields to letters ("a", "b") or Optional.empty()

Precondition

sortedCitedKeys already has normalized citation markers.

Precondition

sortedCitedKeys is sorted (according to the order we want the letters to be assigned) Expects to see data for all cited sources here. Clears uniqueLetters before filling. On return: Each citedKey in sortedCitedKeys has uniqueLetter set as needed. The same values are copied to the corresponding citations in citationGroups. Depends on: style, citations and their order.

produceCitationMarkersback to summary
pack-priv static void produceCitationMarkers(CitationGroups citationGroups, OOBibStyle style)

Produce citMarkers for normal (!isCitationKeyCiteMarkers && !isNumberEntries) styles.

Parameters
style:OOBibStyle

Bibliography style.

setIsFirstAppearanceOfSourceInCitationsback to summary
private static void setIsFirstAppearanceOfSourceInCitations(CitationGroups citationGroups)

Set isFirstAppearanceOfSource in each citation. Preconditions: globalOrder, localOrder