Class Person
- java.lang.Object
-
- com.anaptecs.jeaf.junit.openapi.base.Partner
-
- com.anaptecs.jeaf.junit.openapi.base.PersonBase
-
- com.anaptecs.jeaf.junit.openapi.base.Person
-
- 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
@Valid public class Person extends PersonBase
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPerson.BuilderClass implements builder to create a new instance of class Person.-
Nested classes/interfaces inherited from class com.anaptecs.jeaf.junit.openapi.base.PersonBase
PersonBase.BuilderBase
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedPerson()Default constructor is only intended to be used for deserialization by tools like Jackson for JSON.protectedPerson(PersonBase.BuilderBase pBuilder)Initialize object.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Person.Builderbuilder()Method returns a new builder.static Person.Builderbuilder(Person pObject)Method creates a new builder and initialize it with the data from the passed object.static Person.Builderbuilder(java.lang.String pSurname, java.lang.String pFirstName)Method creates a new builder and initializes it with the passed attributes.java.lang.StringgetDisplayName()-
Methods inherited from class com.anaptecs.jeaf.junit.openapi.base.PersonBase
getFirstName, getSurname, setFirstName, setSurname, toString, toStringBuilder
-
Methods inherited from class com.anaptecs.jeaf.junit.openapi.base.Partner
addToPostalAddresses, addToPostalAddresses, builder, clearPostalAddresses, getID, getPostalAddresses, getUnversionedID, removeFromPostalAddresses
-
-
-
-
Constructor Detail
-
Person
protected Person()
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.
-
Person
protected Person(PersonBase.BuilderBase pBuilder)
Initialize object. Nothing special to do.
-
-
Method Detail
-
builder
public static Person.Builder builder()
Method returns a new builder.- Returns:
Person.BuilderNew builder that can be used to create new Person objects.
-
builder
public static Person.Builder builder(Person pObject)
Method creates a new builder and initialize it with the data from the passed object.- Parameters:
pObject- Object that should be used to initialize the builder. The parameter may be null.- Returns:
Person.BuilderNew builder that can be used to create new Person objects. The method never returns null.
-
builder
public static Person.Builder builder(java.lang.String pSurname, java.lang.String pFirstName)
Method creates a new builder and initializes it with the passed attributes.
-
getDisplayName
public java.lang.String getDisplayName()
- Specified by:
getDisplayNamein classPersonBase- Returns:
String
-
-