All Downloads are FREE. Search and download functionalities are using the official Maven repository.

eu.agrosense.api.drmcrop.Organization Maven / Gradle / Ivy

There is a newer version: 0.4
Show newest version
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.6 
// See http://java.sun.com/xml/jaxb 
// Any modifications to this file will be lost upon recompilation of the source schema. 
// Generated on: 2014.08.07 at 06:37:52 PM CEST 
//


package eu.agrosense.api.drmcrop;

import java.util.ArrayList;
import java.util.Collection;
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.XmlSchemaType;
import javax.xml.bind.annotation.XmlSeeAlso;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
import org.jvnet.jaxb2_commons.lang.JAXBToStringStrategy;
import org.jvnet.jaxb2_commons.lang.ToString;
import org.jvnet.jaxb2_commons.lang.ToStringStrategy;
import org.jvnet.jaxb2_commons.locator.ObjectLocator;


/**
 * Definition.
 * An organization is a group of people, a company (enterprise) or a group of companies (Enterprises).
 * 
 * 

Java class for Organization complex type. * *

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

 * <complexType name="Organization">
 *   <complexContent>
 *     <extension base="{http://www.drmCrop.org/schemas/drmCrop}Party">
 *       <sequence>
 *         <element name="Phone" type="{http://www.drmCrop.org/schemas/DataTypes}PhoneNumberType" minOccurs="0"/>
 *         <element name="WebPage" type="{http://www.w3.org/2001/XMLSchema}anyURI" minOccurs="0"/>
 *         <element name="E-Mail" type="{http://www.w3.org/2001/XMLSchema}anyURI" minOccurs="0"/>
 *         <element name="ChamberOfCommerceNumber" type="{http://www.w3.org/2001/XMLSchema}token" minOccurs="0"/>
 *         <element name="Worker" type="{http://www.drmCrop.org/schemas/drmCrop}Worker" maxOccurs="unbounded" minOccurs="0"/>
 *       </sequence>
 *     </extension>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "Organization", propOrder = { "phone", "webPage", "eMail", "chamberOfCommerceNumber", "worker" }) @XmlSeeAlso({ Farm.class }) public class Organization extends Party implements ToString { @XmlElement(name = "Phone") protected PhoneNumberType phone; @XmlElement(name = "WebPage") @XmlSchemaType(name = "anyURI") protected String webPage; @XmlElement(name = "E-Mail") @XmlSchemaType(name = "anyURI") protected String eMail; @XmlElement(name = "ChamberOfCommerceNumber") @XmlJavaTypeAdapter(CollapsedStringAdapter.class) @XmlSchemaType(name = "token") protected String chamberOfCommerceNumber; @XmlElement(name = "Worker") protected List worker; /** * Gets the value of the phone property. * * @return * possible object is * {@link PhoneNumberType } * */ public PhoneNumberType getPhone() { return phone; } /** * Sets the value of the phone property. * * @param value * allowed object is * {@link PhoneNumberType } * */ public void setPhone(PhoneNumberType value) { this.phone = value; } /** * Gets the value of the webPage property. * * @return * possible object is * {@link String } * */ public String getWebPage() { return webPage; } /** * Sets the value of the webPage property. * * @param value * allowed object is * {@link String } * */ public void setWebPage(String value) { this.webPage = value; } /** * Gets the value of the eMail property. * * @return * possible object is * {@link String } * */ public String getEMail() { return eMail; } /** * Sets the value of the eMail property. * * @param value * allowed object is * {@link String } * */ public void setEMail(String value) { this.eMail = value; } /** * Gets the value of the chamberOfCommerceNumber property. * * @return * possible object is * {@link String } * */ public String getChamberOfCommerceNumber() { return chamberOfCommerceNumber; } /** * Sets the value of the chamberOfCommerceNumber property. * * @param value * allowed object is * {@link String } * */ public void setChamberOfCommerceNumber(String value) { this.chamberOfCommerceNumber = value; } /** * Gets the value of the worker 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 worker property. * *

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

     *    getWorker().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link Worker } * * */ public List getWorker() { if (worker == null) { worker = new ArrayList(); } return this.worker; } public String toString() { final ToStringStrategy strategy = JAXBToStringStrategy.INSTANCE; final StringBuilder buffer = new StringBuilder(); append(null, buffer, strategy); return buffer.toString(); } public StringBuilder append(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) { strategy.appendStart(locator, this, buffer); appendFields(locator, buffer, strategy); strategy.appendEnd(locator, this, buffer); return buffer; } public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) { super.appendFields(locator, buffer, strategy); { PhoneNumberType thePhone; thePhone = this.getPhone(); strategy.appendField(locator, this, "phone", buffer, thePhone); } { String theWebPage; theWebPage = this.getWebPage(); strategy.appendField(locator, this, "webPage", buffer, theWebPage); } { String theEMail; theEMail = this.getEMail(); strategy.appendField(locator, this, "eMail", buffer, theEMail); } { String theChamberOfCommerceNumber; theChamberOfCommerceNumber = this.getChamberOfCommerceNumber(); strategy.appendField(locator, this, "chamberOfCommerceNumber", buffer, theChamberOfCommerceNumber); } { List theWorker; theWorker = (((this.worker!= null)&&(!this.worker.isEmpty()))?this.getWorker():null); strategy.appendField(locator, this, "worker", buffer, theWorker); } return buffer; } public Organization withPhone(PhoneNumberType value) { setPhone(value); return this; } public Organization withWebPage(String value) { setWebPage(value); return this; } public Organization withEMail(String value) { setEMail(value); return this; } public Organization withChamberOfCommerceNumber(String value) { setChamberOfCommerceNumber(value); return this; } public Organization withWorker(Worker... values) { if (values!= null) { for (Worker value: values) { getWorker().add(value); } } return this; } public Organization withWorker(Collection values) { if (values!= null) { getWorker().addAll(values); } return this; } @Override public Organization withPartyID(String value) { setPartyID(value); return this; } @Override public Organization withPartyGUID(GlobalUniqueIdentifierType value) { setPartyGUID(value); return this; } @Override public Organization withThirdPartyGUID(GlobalUniqueIdentifierType value) { setThirdPartyGUID(value); return this; } @Override public Organization withDesignator(String value) { setDesignator(value); return this; } @Override public Organization withPartyCategory(PartyCategoryEnumeration value) { setPartyCategory(value); return this; } @Override public Organization withPartyRole(PartyRoleType... values) { if (values!= null) { for (PartyRoleType value: values) { getPartyRole().add(value); } } return this; } @Override public Organization withPartyRole(Collection values) { if (values!= null) { getPartyRole().addAll(values); } return this; } @Override public Organization withDeliveryAddress(DeliveryAddressType value) { setDeliveryAddress(value); return this; } @Override public Organization withPostalAddress(AddressType value) { setPostalAddress(value); return this; } @Override public Organization withVisitingAddress(AddressType value) { setVisitingAddress(value); return this; } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy