org.unece.cefact.namespaces.standardbusinessdocumentheader
Class Partner

java.lang.Object
  extended by org.unece.cefact.namespaces.standardbusinessdocumentheader.Partner
All Implemented Interfaces:
org.jvnet.jaxb2_commons.lang.ToString

public class Partner
extends Object
implements org.jvnet.jaxb2_commons.lang.ToString

Java class for Partner complex type.

The following schema fragment specifies the expected content contained within this class.

 <complexType name="Partner">
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <sequence>
         <element name="Identifier" type="{http://www.unece.org/cefact/namespaces/StandardBusinessDocumentHeader}PartnerIdentification"/>
         <element name="ContactInformation" type="{http://www.unece.org/cefact/namespaces/StandardBusinessDocumentHeader}ContactInformation" maxOccurs="unbounded" minOccurs="0"/>
       </sequence>
     </restriction>
   </complexContent>
 </complexType>
 


Field Summary
protected  List<ContactInformation> contactInformations
           
protected  PartnerIdentification identifier
           
 
Constructor Summary
Partner()
          Default no-arg constructor
Partner(PartnerIdentification identifier, List<ContactInformation> contactInformations)
          Fully-initialising value constructor
 
Method Summary
 StringBuilder append(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, StringBuilder buffer, org.jvnet.jaxb2_commons.lang.ToStringStrategy strategy)
           
 StringBuilder appendFields(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, StringBuilder buffer, org.jvnet.jaxb2_commons.lang.ToStringStrategy strategy)
           
 List<ContactInformation> getContactInformations()
          Gets the value of the contactInformations property.
 PartnerIdentification getIdentifier()
          Gets the value of the identifier property.
 void setContactInformations(List<ContactInformation> value)
           
 void setIdentifier(PartnerIdentification value)
          Sets the value of the identifier property.
 String toString()
           
 Partner withContactInformations(Collection<ContactInformation> values)
           
 Partner withContactInformations(ContactInformation... values)
           
 Partner withContactInformations(List<ContactInformation> value)
           
 Partner withIdentifier(PartnerIdentification value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

identifier

protected PartnerIdentification identifier

contactInformations

protected List<ContactInformation> contactInformations
Constructor Detail

Partner

public Partner()
Default no-arg constructor


Partner

public Partner(PartnerIdentification identifier,
               List<ContactInformation> contactInformations)
Fully-initialising value constructor

Method Detail

getIdentifier

public PartnerIdentification getIdentifier()
Gets the value of the identifier property.

Returns:
possible object is PartnerIdentification

setIdentifier

public void setIdentifier(PartnerIdentification value)
Sets the value of the identifier property.

Parameters:
value - allowed object is PartnerIdentification

getContactInformations

public List<ContactInformation> getContactInformations()
Gets the value of the contactInformations property.

This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a set method for the contactInformations property.

For example, to add a new item, do as follows:

    getContactInformations().add(newItem);
 

Objects of the following type(s) are allowed in the list ContactInformation


setContactInformations

public void setContactInformations(List<ContactInformation> value)

toString

public String toString()
Overrides:
toString in class Object

append

public StringBuilder append(org.jvnet.jaxb2_commons.locator.ObjectLocator locator,
                            StringBuilder buffer,
                            org.jvnet.jaxb2_commons.lang.ToStringStrategy strategy)
Specified by:
append in interface org.jvnet.jaxb2_commons.lang.ToString

appendFields

public StringBuilder appendFields(org.jvnet.jaxb2_commons.locator.ObjectLocator locator,
                                  StringBuilder buffer,
                                  org.jvnet.jaxb2_commons.lang.ToStringStrategy strategy)
Specified by:
appendFields in interface org.jvnet.jaxb2_commons.lang.ToString

withIdentifier

public Partner withIdentifier(PartnerIdentification value)

withContactInformations

public Partner withContactInformations(ContactInformation... values)

withContactInformations

public Partner withContactInformations(Collection<ContactInformation> values)

withContactInformations

public Partner withContactInformations(List<ContactInformation> value)


Copyright © 2014 Digipost Open Source. All Rights Reserved.