
de.undercouch.citeproc.csl.CSLPropertiesBuilder 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.csl;
import java.util.Map;
/**
* Builder for {@link CSLProperties}
*
* @author Michel Kraemer
*/
public class CSLPropertiesBuilder {
private Integer noteIndex;
private Boolean unsorted;
public CSLPropertiesBuilder() {
this.noteIndex = 0;
this.unsorted = null;
}
public CSLPropertiesBuilder noteIndex(Integer noteIndex) {
this.noteIndex = noteIndex;
return this;
}
public CSLPropertiesBuilder unsorted(Boolean unsorted) {
this.unsorted = unsorted;
return this;
}
/**
* Creates a builder that copies properties from the given original object
*
* @param original
* the original object
*/
public CSLPropertiesBuilder(CSLProperties original) {
this.noteIndex = original.getNoteIndex();
this.unsorted = original.getUnsorted();
}
public CSLProperties build() {
return new CSLProperties(noteIndex, unsorted);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy