@Valid public class Partner extends Object implements com.anaptecs.jeaf.core.api.ServiceObject, com.anaptecs.jeaf.xfun.api.common.Identifiable<com.anaptecs.jeaf.core.api.ServiceObjectID>
| Modifier and Type | Class and Description |
|---|---|
static class |
Partner.Builder
Class implements builder to create a new instance of class Partner.
|
| Modifier | Constructor and Description |
|---|---|
protected |
Partner()
Default constructor is only intended to be used for deserialization as many frameworks required that.
|
protected |
Partner(Partner.Builder pBuilder)
Initialize object using the passed builder.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addToPostalAddresses(Collection<PostalAddress> pPostalAddresses)
Method adds all passed objects to the association "postalAddresses".
|
void |
addToPostalAddresses(PostalAddress pPostalAddresses)
Method adds the passed PostalAddress object to the association "postalAddresses".
|
static Partner.Builder |
builder()
Method returns a new builder.
|
static Partner.Builder |
builder(Partner pObject)
Method creates a new builder and initialize it with the data from the passed object.
|
void |
clearPostalAddresses()
Method removes all objects from the association "postalAddresses".
|
com.anaptecs.jeaf.core.api.ServiceObjectID |
getID()
Method returns the id of this object.
|
List<PostalAddress> |
getPostalAddresses()
Method returns the association "postalAddresses".
|
com.anaptecs.jeaf.core.api.ServiceObjectID |
getUnversionedID()
Method returns the unversioned object id of this object.
|
void |
removeFromPostalAddresses(PostalAddress pPostalAddresses)
Method removes the passed PostalAddress object from the association "postalAddresses".
|
String |
toString()
Method creates a new String with the values of all attributes of this class.
|
StringBuilder |
toStringBuilder(String pIndent)
Method returns a StringBuilder that can be used to create a String representation of this object.
|
protected Partner()
protected Partner(Partner.Builder pBuilder)
pBuilder - Builder that should be used to initialize this object. The parameter must not be null.public static Partner.Builder builder()
Partner.Builder New builder that can be used to create new Partner objects.public static Partner.Builder builder(Partner pObject)
pObject - Object that should be used to initialize the builder. The parameter may be null.Partner.Builder New builder that can be used to create new Partner objects. The method never returns null.public final com.anaptecs.jeaf.core.api.ServiceObjectID getID()
getID in interface com.anaptecs.jeaf.xfun.api.common.Identifiable<com.anaptecs.jeaf.core.api.ServiceObjectID>ServiceObjectID ID of this object. Since an object must not have an id the method may also return
null.public final com.anaptecs.jeaf.core.api.ServiceObjectID getUnversionedID()
getUnversionedID in interface com.anaptecs.jeaf.xfun.api.common.Identifiable<com.anaptecs.jeaf.core.api.ServiceObjectID>ServiceObjectID ID of this object. Since an object must not have an id the method may also return
null.public List<PostalAddress> getPostalAddresses()
public void addToPostalAddresses(PostalAddress pPostalAddresses)
pPostalAddresses - Object that should be added to the association "postalAddresses". The parameter must not be
null.public void addToPostalAddresses(Collection<PostalAddress> pPostalAddresses)
pPostalAddresses - Collection with all objects that should be added to the association "postalAddresses". The
parameter must not be null.public void removeFromPostalAddresses(PostalAddress pPostalAddresses)
pPostalAddresses - Object that should be removed from the association "postalAddresses". The parameter must
not be null.public void clearPostalAddresses()
public StringBuilder toStringBuilder(String pIndent)
StringBuilder StringBuilder representing this object. The method never returns null.Copyright © 2022. All rights reserved.