Package de.undercouch.citeproc
Class DefaultAbbreviationProvider
- java.lang.Object
-
- de.undercouch.citeproc.DefaultAbbreviationProvider
-
- All Implemented Interfaces:
AbbreviationProvider
public class DefaultAbbreviationProvider extends Object implements AbbreviationProvider
Default implementation ofAbbreviationProvider- Author:
- Michel Kraemer
-
-
Constructor Summary
Constructors Constructor Description DefaultAbbreviationProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddAbbreviation(String variable, String original, String abbreviation)StringgetAbbreviation(String variable, String original, CSLItemData item)Retrieves an abbreviation for a given variable
-
-
-
Method Detail
-
getAbbreviation
public String getAbbreviation(String variable, String original, CSLItemData item)
Description copied from interface:AbbreviationProviderRetrieves an abbreviation for a given variable- Specified by:
getAbbreviationin interfaceAbbreviationProvider- Parameters:
variable- the name of the variableoriginal- the original (unabbreviated) stringitem- the current CSL item data- Returns:
- the abbreviated string or
nullif the original string should not be abbreviated
-
-