Class CSLName

  • All Implemented Interfaces:
    JsonObject

    public class CSLName
    extends java.lang.Object
    implements JsonObject
    A human being's name
    Author:
    Michel Kraemer
    • Constructor Summary

      Constructors 
      Constructor Description
      CSLName()  
      CSLName​(java.lang.String family, java.lang.String given, java.lang.String droppingParticle, java.lang.String nonDroppingParticle, java.lang.String suffix, java.lang.Boolean commaPrefix, java.lang.Boolean commaSuffix, java.lang.Boolean staticOrdering, java.lang.Boolean staticParticles, java.lang.String literal, java.lang.Boolean parseNames, java.lang.Boolean isInstitution)  
    • Constructor Detail

      • CSLName

        public CSLName()
      • CSLName

        public CSLName​(java.lang.String family,
                       java.lang.String given,
                       java.lang.String droppingParticle,
                       java.lang.String nonDroppingParticle,
                       java.lang.String suffix,
                       java.lang.Boolean commaPrefix,
                       java.lang.Boolean commaSuffix,
                       java.lang.Boolean staticOrdering,
                       java.lang.Boolean staticParticles,
                       java.lang.String literal,
                       java.lang.Boolean parseNames,
                       java.lang.Boolean isInstitution)
    • Method Detail

      • getFamily

        public java.lang.String getFamily()
        Returns:
        the family
      • getGiven

        public java.lang.String getGiven()
        Returns:
        the given
      • getDroppingParticle

        public java.lang.String getDroppingParticle()
        Returns:
        the dropping-particle
      • getNonDroppingParticle

        public java.lang.String getNonDroppingParticle()
        Returns:
        the non-dropping-particle
      • getSuffix

        public java.lang.String getSuffix()
        Returns:
        the suffix
      • getCommaPrefix

        public java.lang.Boolean getCommaPrefix()
        Returns:
        the comma-prefix
      • getCommaSuffix

        public java.lang.Boolean getCommaSuffix()
        Returns:
        the comma-suffix
      • getStaticOrdering

        public java.lang.Boolean getStaticOrdering()
        Returns:
        the static-ordering
      • getStaticParticles

        public java.lang.Boolean getStaticParticles()
        Returns:
        the static-particles
      • getLiteral

        public java.lang.String getLiteral()
        Returns:
        the literal
      • getParseNames

        public java.lang.Boolean getParseNames()
        Returns:
        the parse-names
      • getIsInstitution

        public java.lang.Boolean getIsInstitution()
        Returns:
        the isInstitution
      • toJson

        public java.lang.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 CSLName fromJson​(java.util.Map<java.lang.String,​java.lang.Object> obj)
        Converts a JSON object to a CSLName object.
        Parameters:
        obj - the JSON object to convert
        Returns:
        the converted CSLName object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object