Class NaturalPerson
- java.lang.Object
-
- de.ipk_gatersleben.bit.bi.edal.primary_data.metadata.UntypedData
-
- de.ipk_gatersleben.bit.bi.edal.primary_data.metadata.Person
-
- de.ipk_gatersleben.bit.bi.edal.primary_data.metadata.NaturalPerson
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<UntypedData>
public class NaturalPerson extends Person
Represent a natural person.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class de.ipk_gatersleben.bit.bi.edal.primary_data.metadata.UntypedData
ALL_RIGHTS_RESERVED, EMPTY, string
-
-
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.
-
Method Summary
Modifier and Type Method Description int
compareTo(UntypedData datatype)
boolean
equals(java.lang.Object obj)
java.lang.String
getGivenName()
Getter for the fieldgiven_name
.ORCID
getOrcid()
java.lang.String
getSureName()
Getter for the fieldsure_name
.int
hashCode()
void
setGivenName(java.lang.String givenName)
void
setOrcid(ORCID orcid)
void
setSureName(java.lang.String sureName)
java.lang.String
toString()
-
Methods inherited from class de.ipk_gatersleben.bit.bi.edal.primary_data.metadata.Person
formatEmptyString, getAddressLine, getCountry, getZip
-
Methods inherited from class de.ipk_gatersleben.bit.bi.edal.primary_data.metadata.UntypedData
getString, setString, toHTML
-
-
-
-
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.
-
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.
-
-
Method Detail
-
compareTo
public int compareTo(UntypedData datatype)
- Specified by:
compareTo
in interfacejava.lang.Comparable<UntypedData>
- Overrides:
compareTo
in classPerson
-
getSureName
@Field(index=YES, store=YES) public java.lang.String getSureName()
Getter for the fieldsure_name
.- Returns:
- the sure name
-
getGivenName
@Field(index=YES, store=YES) public java.lang.String getGivenName()
Getter for the fieldgiven_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
-
getOrcid
public ORCID getOrcid()
-
setOrcid
public void setOrcid(ORCID orcid)
-
-