Class Company
- java.lang.Object
-
- com.anaptecs.jeaf.junit.openapi.base.Partner
-
- com.anaptecs.jeaf.junit.openapi.base.Company
-
- 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 Company extends Partner
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCompany.BuilderClass implements builder to create a new instance of classCompany.
-
Constructor Summary
Constructors Modifier Constructor Description protectedCompany()Default constructor is only intended to be used for deserialization by tools like Jackson for JSON.protectedCompany(Company.Builder pBuilder)Initialize object using the passed builder.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Company.Builderbuilder()Method returns a new builder.static Company.Builderbuilder(Company pObject)Method creates a new builder and initialize it with the data from the passed object.static Company.Builderbuilder(java.lang.String pName)Method creates a new builder and initializes it with the passed attributes.java.lang.StringgetName()Method returns attributename.voidsetName(java.lang.String pName)Method sets attributename.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, clearPostalAddresses, getID, getPostalAddresses, getUnversionedID, removeFromPostalAddresses
-
-
-
-
Constructor Detail
-
Company
protected Company()
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.
-
Company
protected Company(Company.Builder 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
-
builder
public static Company.Builder builder()
Method returns a new builder.- Returns:
Company.BuilderNew builder that can be used to create new Company objects.
-
builder
public static Company.Builder builder(Company 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:
Company.BuilderNew builder that can be used to create new Company objects. The method never returns null.
-
builder
public static Company.Builder builder(java.lang.String pName)
Method creates a new builder and initializes it with the passed attributes.
-
getName
public java.lang.String getName()
Method returns attributename.- Returns:
StringValue to whichnameis set.
-
setName
public void setName(java.lang.String pName)
Method sets attributename.- Parameters:
pName- Value to whichnameshould be set.
-
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.
-
-