@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 by tools like Jackson for JSON.
|
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
postalAddresses. |
void |
addToPostalAddresses(PostalAddress pPostalAddresses)
Method adds the passed object to
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
postalAddresses. |
com.anaptecs.jeaf.core.api.ServiceObjectID |
getID()
Method returns the id of this object.
|
List<PostalAddress> |
getPostalAddresses()
Method returns 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 object from
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()
postalAddresses.List Value to which postalAddresses is set. The method never returns null
and the returned collection is modifiable.public void addToPostalAddresses(PostalAddress pPostalAddresses)
postalAddresses.pPostalAddresses - Object that should be added to postalAddresses. The parameter must not be null.public void addToPostalAddresses(Collection<PostalAddress> pPostalAddresses)
postalAddresses.pPostalAddresses - Collection with all objects that should be added to postalAddresses. The parameter
must not be null.public void removeFromPostalAddresses(PostalAddress pPostalAddresses)
postalAddresses.pPostalAddresses - Object that should be removed from postalAddresses. The parameter must not be
null.public void clearPostalAddresses()
postalAddresses.public StringBuilder toStringBuilder(String pIndent)
StringBuilder StringBuilder representing this object. The method never returns null.Copyright © 2023. All rights reserved.