Top Description Fields Constructors Methods
de.undercouch.citeproc

public Class ListItemDataProvider

extends Object
implements ItemDataProvider
Class Inheritance
All Implemented Interfaces
de.undercouch.citeproc.ItemDataProvider
Known Direct Subclasses
de.undercouch.citeproc.bibtex.BibTeXItemDataProvider, de.undercouch.citeproc.endnote.EndNoteItemDataProvider, de.undercouch.citeproc.ris.RISItemDataProvider
Imports
de.undercouch.citeproc.csl.CSLItemData, java.util.Arrays, .Collection, .Collections, .LinkedHashMap, .List, .Map

Provides item data from a given list
Author
Michel Kraemer

Field Summary

Modifier and TypeField and Description
protected final Map<String, CSLItemData>
items

The items that this provider holds

Constructor Summary

AccessConstructor and Description
public
ListItemDataProvider(CSLItemData...
the items to serve
items
)

Creates a data provider that serves items from the given array

public
ListItemDataProvider(List<CSLItemData>
the items to serve
items
)

Creates a data provider that serves items from the given list

Method Summary

Modifier and TypeMethod and Description
public Collection<String>
public CSLItemData
retrieveItem(String id)

Implements de.undercouch.citeproc.ItemDataProvider.retrieveItem.

Retrieve a citation item with a given ID

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

itemsback to summary
protected final Map<String, CSLItemData> items

The items that this provider holds

Constructor Detail

ListItemDataProviderback to summary
public ListItemDataProvider(CSLItemData... items)

Creates a data provider that serves items from the given array

Parameters
items:CSLItemData[]

the items to serve

ListItemDataProviderback to summary
public ListItemDataProvider(List<CSLItemData> items)

Creates a data provider that serves items from the given list

Parameters
items:List<CSLItemData>

the items to serve

Method Detail

getIdsback to summary
public Collection<String> getIds()

Implements de.undercouch.citeproc.ItemDataProvider.getIds.

Annotations
@Override
retrieveItemback to summary
public CSLItemData retrieveItem(String id)

Implements de.undercouch.citeproc.ItemDataProvider.retrieveItem.

Doc from de.undercouch.citeproc.ItemDataProvider.retrieveItem.

Retrieve a citation item with a given ID

Annotations
@Override