Class NaturalPerson

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<UntypedData>

    public class NaturalPerson
    extends Person
    Represent a natural person.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      NaturalPerson​(java.lang.String givenName, java.lang.String sureName, java.lang.String addressLine, java.lang.String zip, java.lang.String country)
      Constructor for a natural person with specified values.
      NaturalPerson​(java.lang.String givenName, java.lang.String sureName, java.lang.String addressLine, java.lang.String zip, java.lang.String country, ORCID orcid)
      Constructor for a natural person with specified values.
    • Constructor Detail

      • NaturalPerson

        public NaturalPerson​(java.lang.String givenName,
                             java.lang.String sureName,
                             java.lang.String addressLine,
                             java.lang.String zip,
                             java.lang.String country)
        Constructor for a natural person with specified values.
        Parameters:
        givenName - given name of the Person.
        sureName - sure name of the Person.
        addressLine - address of the Person.
        zip - zip of the Person.
        country - country of the Person.
      • NaturalPerson

        public NaturalPerson​(java.lang.String givenName,
                             java.lang.String sureName,
                             java.lang.String addressLine,
                             java.lang.String zip,
                             java.lang.String country,
                             ORCID orcid)
        Constructor for a natural person with specified values.
        Parameters:
        givenName - given name of the Person.
        sureName - sure name of the Person.
        addressLine - address of the Person.
        zip - zip of the Person.
        country - country of the Person.
        orcid - the ORCID of the person.
    • Method Detail

      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Person
      • equals

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

        @Field(index=YES,
               store=YES)
        public java.lang.String getSureName()
        Getter for the field sure_name.
        Returns:
        the sure name
      • getGivenName

        @Field(index=YES,
               store=YES)
        public java.lang.String getGivenName()
        Getter for the field given_name.
        Returns:
        the given name
      • setSureName

        public void setSureName​(java.lang.String sureName)
        Parameters:
        sureName - the sureName to set
      • setGivenName

        public void setGivenName​(java.lang.String givenName)
        Parameters:
        givenName - the givenName to set
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class Person
      • getOrcid

        public ORCID getOrcid()
      • setOrcid

        public void setOrcid​(ORCID orcid)