Verified Owner
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, .CitedReference, .CitedReferences, .NonUniqueCitationMarker, org.jabref.model.openoffice.util.OOListUtil

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
private static void
createNormalizedCitationMarkers(CitedReferences sortedCitedReferences, JStyle style)

Fills sortedCitedReferences//normalizedCitationMarker

private static void
createUniqueLetters(CitedReferences sortedCitedReferences, CitationGroups citationGroups)

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

Precondition

sortedCitedReferences already has normalized citation markers.

pack-priv static void
produceCitationMarkers(CitationGroups citationGroups, JStyle
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(CitedReferences sortedCitedReferences, JStyle style)

Fills sortedCitedReferences//normalizedCitationMarker

createUniqueLettersback to summary
private static void createUniqueLetters(CitedReferences sortedCitedReferences, CitationGroups citationGroups)

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

Precondition

sortedCitedReferences already has normalized citation markers.

Precondition

sortedCitedReferences 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 citedReference in sortedCitedReferences 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, JStyle style)

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

Parameters
style:JStyle

Bibliography style.

setIsFirstAppearanceOfSourceInCitationsback to summary
private static void setIsFirstAppearanceOfSourceInCitations(CitationGroups citationGroups)

Set isFirstAppearanceOfSource in each citation.

Preconditions: globalOrder, localOrder