Class Person
- java.lang.Object
-
- de.ipk_gatersleben.bit.bi.edal.primary_data.metadata.UntypedData
-
- de.ipk_gatersleben.bit.bi.edal.primary_data.metadata.Person
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<UntypedData>
- Direct Known Subclasses:
LegalPerson
,NaturalPerson
public abstract class Person extends UntypedData implements java.io.Serializable, java.lang.Comparable<UntypedData>
Represent a person.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected static java.lang.String
UNKNOWN
-
Fields inherited from class de.ipk_gatersleben.bit.bi.edal.primary_data.metadata.UntypedData
ALL_RIGHTS_RESERVED, EMPTY, string
-
-
Constructor Summary
Constructors Constructor Description Person(java.lang.String addressLine, java.lang.String zip, java.lang.String country)
Constructor for Person with specified values.
-
Method Summary
Modifier and Type Method Description int
compareTo(UntypedData datatype)
boolean
equals(java.lang.Object obj)
protected java.lang.String
formatEmptyString(java.lang.String string)
Format address strings in person object set empty strings to n/ajava.lang.String
getAddressLine()
Getter for the fieldadress_line
.java.lang.String
getCountry()
Getter for the fieldcountry
.java.lang.String
getZip()
Getter for the fieldzip
.int
hashCode()
java.lang.String
toString()
-
Methods inherited from class de.ipk_gatersleben.bit.bi.edal.primary_data.metadata.UntypedData
getString, setString, toHTML
-
-
-
-
Field Detail
-
UNKNOWN
protected static final java.lang.String UNKNOWN
- See Also:
- Constant Field Values
-
-
Method Detail
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classUntypedData
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classUntypedData
-
compareTo
public int compareTo(UntypedData datatype)
- Specified by:
compareTo
in interfacejava.lang.Comparable<UntypedData>
- Overrides:
compareTo
in classUntypedData
-
formatEmptyString
protected java.lang.String formatEmptyString(java.lang.String string)
Format address strings in person object set empty strings to n/a- Parameters:
string
- the to format- Returns:
- formated address string
-
getAddressLine
public java.lang.String getAddressLine()
Getter for the fieldadress_line
.- Returns:
- the address line
-
getCountry
public java.lang.String getCountry()
Getter for the fieldcountry
.- Returns:
- the country
-
getZip
public java.lang.String getZip()
Getter for the fieldzip
.- Returns:
- the zip
-
toString
public java.lang.String toString()
- Overrides:
toString
in classUntypedData
-
-