public abstract class NomRefDefaultCacheStrategyBase extends StrategyBase implements INomenclaturalReferenceCacheStrategy
Modifier and Type | Field and Description |
---|---|
protected String |
afterAuthor |
protected String |
afterYear |
protected String |
beforeMicroReference |
protected String |
beforeYear |
Constructor and Description |
---|
NomRefDefaultCacheStrategyBase() |
Modifier and Type | Method and Description |
---|---|
protected String |
addYear(String string,
Reference nomRef,
boolean useFullDatePublished) |
String |
getAbbrevTitleCache(Reference nomenclaturalReference)
Returns the abbreviated title cache which is a title cache which uses the
abbrev title |
String |
getBeforeMicroReference()
Returns the character sequence before the micro reference (e.g.
|
String |
getCitation(Reference referenceBase)
Returns a short version of the reference, suitable for citation (e.g.
|
String |
getNomenclaturalCitation(Reference nomenclaturalReference,
String microReference)
Returns a formatted string containing the entire citation used for
nomenclatural purposes based on the
reference supplied - including
(abbreviated) title but not authors - and on the given details.The returned string is build according to the corresponding cache strategy . |
String |
getTitleCache(Reference nomenclaturalReference)
Returns the computed
title cache . |
protected abstract String |
getTitleWithoutYearAndAuthor(Reference<?> reference,
boolean isAbbrev) |
protected String |
getTokenizedNomenclaturalTitel(Reference ref)
Returns the nomenclatural title with micro reference represented as token
which can later be replaced by the real data.
|
getUuid, isBlank, isCollection, isNotBlank, isPrimitive, isSingleCdmBaseObject, isUserType, Nz
protected String beforeYear
protected String beforeMicroReference
protected String afterYear
protected String afterAuthor
protected String getTokenizedNomenclaturalTitel(Reference ref)
ref
- The referenceINomenclaturalReference.MICRO_REFERENCE_TOKEN
public String getTitleCache(Reference nomenclaturalReference)
IIdentifiableEntityCacheStrategy
title cache
.getTitleCache
in interface IIdentifiableEntityCacheStrategy<Reference>
nomenclaturalReference
- the identifiable entitypublic String getAbbrevTitleCache(Reference nomenclaturalReference)
IReferenceBaseCacheStrategy
abbrev title
getAbbrevTitleCache
in interface IReferenceBaseCacheStrategy
protected abstract String getTitleWithoutYearAndAuthor(Reference<?> reference, boolean isAbbrev)
public String getCitation(Reference referenceBase)
IReferenceBaseCacheStrategy
getCitation
in interface IReferenceBaseCacheStrategy
public String getBeforeMicroReference()
INomenclaturalReferenceCacheStrategy
getBeforeMicroReference
in interface INomenclaturalReferenceCacheStrategy
public String getNomenclaturalCitation(Reference nomenclaturalReference, String microReference)
INomenclaturalReferenceCacheStrategy
reference
supplied - including
(abbreviated) title but not authors - and on the given details.cache strategy
.getNomenclaturalCitation
in interface INomenclaturalReferenceCacheStrategy
nomenclaturalReference
- The nomenclatural referencemicroReference
- the string with the details (generally pages)
corresponding to the nomenclatural reference supplied
as the first argumentINomenclaturalReference.getNomenclaturalCitation(String)
,
name.TaxonNameBase#getNomenclaturalReference()
,
strategy.cache.reference.INomenclaturalReferenceCacheStrategy
Copyright © 2007-2016 EDIT. All Rights Reserved.