
de.undercouch.citeproc.ris.RISItemDataProvider Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of citeproc-java Show documentation
Show all versions of citeproc-java Show documentation
A Citation Style Language (CSL) Processor for Java.
package de.undercouch.citeproc.ris;
import de.undercouch.citeproc.CSL;
import de.undercouch.citeproc.ListItemDataProvider;
/**
* Loads citation items from a RIS library
*
* @author Michel Kraemer
*/
public class RISItemDataProvider extends ListItemDataProvider {
/**
* Adds the given library
*
* @param lib
* the library to add
*/
public void addLibrary(RISLibrary lib) {
items.putAll(new RISConverter().toItemData(lib));
}
/**
* Introduces all citation items from the RIS libraries added via
* {@link #addLibrary(RISLibrary)} to the given CSL processor
*
* @see CSL#registerCitationItems(String[])
* @param citeproc
* the CSL processor
*/
public void registerCitationItems(CSL citeproc) {
citeproc.registerCitationItems(getIds());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy