Class CSLCitation

  • All Implemented Interfaces:
    JsonObject

    public class CSLCitation
    extends Object
    implements JsonObject
    A set of citation items. This class is used to register citations in the CSL processor.
    Author:
    Michel Kraemer
    • Method Detail

      • getCitationItems

        public CSLCitationItem[] getCitationItems()
        Returns:
        the citation's citationItems
      • getCitationID

        public String getCitationID()
        Returns:
        the citation's citationID
      • getProperties

        public CSLProperties getProperties()
        Returns:
        the citation's properties
      • toJson

        public Object toJson​(JsonBuilder builder)
        Description copied from interface: JsonObject
        Converts this object to a JSON object
        Specified by:
        toJson in interface JsonObject
        Parameters:
        builder - a builder that can be used to perform the conversion
        Returns:
        the JSON object
      • fromJson

        public static CSLCitation fromJson​(Map<String,​Object> obj)
        Converts a JSON object to a CSLCitation object. The JSON object must at least contain the following required properties: citationItems
        Parameters:
        obj - the JSON object to convert
        Returns:
        the converted CSLCitation object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object