Top Description Fields Constructors Methods
de.undercouch.citeproc

public Class CompoundItemDataProvider

extends Object
implements ItemDataProvider
Class Inheritance
All Implemented Interfaces
de.undercouch.citeproc.ItemDataProvider
Imports
de.undercouch.citeproc.csl.CSLItemData, java.util.ArrayList, .Collection, .List, .Objects

Retrieves citation items from a list of other ItemDataProviders.

Calls each ItemDataProvider in the order they have been added to the list and returns the first citation item retrieved. Returns null if no provider returned a result.

Does not check for duplicate items or item IDs.

Author
Michel Kraemer
Since
1.1.0

Field Summary

Modifier and TypeField and Description
private final List<ItemDataProvider>
providers

The list of other providers to query

Constructor Summary

AccessConstructor and Description
public
CompoundItemDataProvider(List<ItemDataProvider>
the list of other providers to query for citation items
providers
)

Creates a new compound provider

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

providersback to summary
private final List<ItemDataProvider> providers

The list of other providers to query

Constructor Detail

CompoundItemDataProviderback to summary
public CompoundItemDataProvider(List<ItemDataProvider> providers)

Creates a new compound provider

Parameters
providers:List<ItemDataProvider>

the list of other providers to query for citation items

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