//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-793
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2009.07.03 at 05:59:50 PM CEST
//
package com.sun.jersey.json.impl.rim;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlSeeAlso;
import javax.xml.bind.annotation.XmlType;
/**
* Represents a Party such as Person or Organization.
*
* <p>Java class for PartyType complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType name="PartyType">
* <complexContent>
* <extension base="{urn:oasis:names:tc:ebxml-regrep:xsd:rim:4.0}RegistryObjectType">
* <sequence>
* <element name="PostalAddress" type="{urn:oasis:names:tc:ebxml-regrep:xsd:rim:4.0}PostalAddressType" maxOccurs="unbounded" minOccurs="0"/>
* <element name="TelephoneNumber" type="{urn:oasis:names:tc:ebxml-regrep:xsd:rim:4.0}TelephoneNumberType" maxOccurs="unbounded" minOccurs="0"/>
* <element name="EmailAddress" type="{urn:oasis:names:tc:ebxml-regrep:xsd:rim:4.0}EmailAddressType" maxOccurs="unbounded" minOccurs="0"/>
* </sequence>
* </extension>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "PartyType", propOrder = {
"postalAddress",
"telephoneNumber",
"emailAddress"
})
@XmlSeeAlso({
OrganizationType.class,
PersonType.class
})
public abstract class PartyType
extends RegistryObjectType
{
@XmlElement(name = "PostalAddress")
protected List<PostalAddressType> postalAddress;
@XmlElement(name = "TelephoneNumber")
protected List<TelephoneNumberType> telephoneNumber;
@XmlElement(name = "EmailAddress")
protected List<EmailAddressType> emailAddress;
/**
* Gets the value of the postalAddress property.
*
* <p>
* 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 <CODE>set</CODE> method for the postalAddress property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getPostalAddress().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link PostalAddressType }
*
*
*/
public List<PostalAddressType> getPostalAddress() {
if (postalAddress == null) {
postalAddress = new ArrayList<PostalAddressType>();
}
return this.postalAddress;
}
/**
* Gets the value of the telephoneNumber property.
*
* <p>
* 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 <CODE>set</CODE> method for the telephoneNumber property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getTelephoneNumber().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link TelephoneNumberType }
*
*
*/
public List<TelephoneNumberType> getTelephoneNumber() {
if (telephoneNumber == null) {
telephoneNumber = new ArrayList<TelephoneNumberType>();
}
return this.telephoneNumber;
}
/**
* Gets the value of the emailAddress property.
*
* <p>
* 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 <CODE>set</CODE> method for the emailAddress property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getEmailAddress().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link EmailAddressType }
*
*
*/
public List<EmailAddressType> getEmailAddress() {
if (emailAddress == null) {
emailAddress = new ArrayList<EmailAddressType>();
}
return this.emailAddress;
}
}