Class PersonBase
- java.lang.Object
-
- com.anaptecs.jeaf.junit.openapi.base.Partner
-
- com.anaptecs.jeaf.junit.openapi.base.PersonBase
-
- All Implemented Interfaces:
com.anaptecs.jeaf.core.api.ServiceObject,com.anaptecs.jeaf.xfun.api.common.Identifiable<com.anaptecs.jeaf.core.api.ServiceObjectID>,java.io.Serializable
- Direct Known Subclasses:
Person
@Valid public abstract class PersonBase extends Partner
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPersonBase.BuilderBaseClass implements builder to create a new instance of class Person.-
Nested classes/interfaces inherited from class com.anaptecs.jeaf.junit.openapi.base.Partner
Partner.Builder
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedPersonBase()Default constructor is only intended to be used for deserialization by tools like Jackson for JSON.protectedPersonBase(PersonBase.BuilderBase pBuilder)Initialize object using the passed builder.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract java.lang.StringgetDisplayName()java.lang.StringgetFirstName()Method returns attributefirstName.java.lang.StringgetSurname()Method returns attributesurname.voidsetFirstName(java.lang.String pFirstName)Method sets attributefirstName.voidsetSurname(java.lang.String pSurname)Method sets attributesurname.java.lang.StringtoString()Method creates a new String with the values of all attributes of this class.java.lang.StringBuildertoStringBuilder(java.lang.String pIndent)Method returns a StringBuilder that can be used to create a String representation of this object.-
Methods inherited from class com.anaptecs.jeaf.junit.openapi.base.Partner
addToPostalAddresses, addToPostalAddresses, builder, builder, clearPostalAddresses, getID, getPostalAddresses, getUnversionedID, removeFromPostalAddresses
-
-
-
-
Constructor Detail
-
PersonBase
protected PersonBase()
Default constructor is only intended to be used for deserialization by tools like Jackson for JSON. For "normal" object creation builder should be used instead.
-
PersonBase
protected PersonBase(PersonBase.BuilderBase pBuilder)
Initialize object using the passed builder.- Parameters:
pBuilder- Builder that should be used to initialize this object. The parameter must not be null.
-
-
Method Detail
-
getSurname
public java.lang.String getSurname()
Method returns attributesurname.- Returns:
StringValue to whichsurnameis set.
-
setSurname
public void setSurname(java.lang.String pSurname)
Method sets attributesurname.- Parameters:
pSurname- Value to whichsurnameshould be set.
-
getFirstName
public java.lang.String getFirstName()
Method returns attributefirstName.- Returns:
StringValue to whichfirstNameis set.
-
setFirstName
public void setFirstName(java.lang.String pFirstName)
Method sets attributefirstName.- Parameters:
pFirstName- Value to whichfirstNameshould be set.
-
getDisplayName
public abstract java.lang.String getDisplayName()
- Returns:
String
-
toStringBuilder
public java.lang.StringBuilder toStringBuilder(java.lang.String pIndent)
Method returns a StringBuilder that can be used to create a String representation of this object. The returned StringBuilder also takes care about attributes of super classes.- Overrides:
toStringBuilderin classPartner- Returns:
StringBuilderStringBuilder representing this object. The method never returns null.
-
-