
eu.fispace.api.fi.AvailableTransportServices Maven / Gradle / Ivy
//
// Este archivo ha sido generado por la arquitectura JavaTM para la implantación de la referencia de enlace (JAXB) XML v2.2.7
// Visite http://java.sun.com/xml/jaxb
// Todas las modificaciones realizadas en este archivo se perderán si se vuelve a compilar el esquema de origen.
// Generado el: 2016.05.31 a las 10:59:28 PM CEST
//
package eu.fispace.api.fi;
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.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
import eu.limetri.ygg.api.ResponseMessage;
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;
/**
* Clase Java para anonymous complex type.
*
*
El siguiente fragmento de esquema especifica el contenido que se espera que haya en esta clase.
*
*
* <complexType>
* <complexContent>
* <extension base="{http://www.limetri.eu/schemas/ygg}ResponseMessage">
* <sequence>
* <element name="AvailableTransportService" maxOccurs="unbounded" minOccurs="0">
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="CompanyName" type="{http://www.w3.org/2001/XMLSchema}string"/>
* <element name="Phone" type="{http://www.w3.org/2001/XMLSchema}string"/>
* <element name="Email" type="{http://www.w3.org/2001/XMLSchema}string"/>
* <element name="CarrierID" type="{http://www.w3.org/2001/XMLSchema}string"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
* </element>
* </sequence>
* </extension>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"availableTransportService"
})
@XmlRootElement(name = "AvailableTransportServices")
public class AvailableTransportServices
extends ResponseMessage
implements ToString
{
@XmlElement(name = "AvailableTransportService")
protected List availableTransportService;
/**
* Gets the value of the availableTransportService 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 availableTransportService property.
*
*
* For example, to add a new item, do as follows:
*
* getAvailableTransportService().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link AvailableTransportServices.AvailableTransportService }
*
*
*/
public List getAvailableTransportService() {
if (availableTransportService == null) {
availableTransportService = new ArrayList();
}
return this.availableTransportService;
}
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);
{
List theAvailableTransportService;
theAvailableTransportService = (((this.availableTransportService!= null)&&(!this.availableTransportService.isEmpty()))?this.getAvailableTransportService():null);
strategy.appendField(locator, this, "availableTransportService", buffer, theAvailableTransportService);
}
return buffer;
}
public AvailableTransportServices withAvailableTransportService(AvailableTransportServices.AvailableTransportService... values) {
if (values!= null) {
for (AvailableTransportServices.AvailableTransportService value: values) {
getAvailableTransportService().add(value);
}
}
return this;
}
public AvailableTransportServices withAvailableTransportService(Collection values) {
if (values!= null) {
getAvailableTransportService().addAll(values);
}
return this;
}
/**
* Clase Java para anonymous complex type.
*
*
El siguiente fragmento de esquema especifica el contenido que se espera que haya en esta clase.
*
*
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="CompanyName" type="{http://www.w3.org/2001/XMLSchema}string"/>
* <element name="Phone" type="{http://www.w3.org/2001/XMLSchema}string"/>
* <element name="Email" type="{http://www.w3.org/2001/XMLSchema}string"/>
* <element name="CarrierID" type="{http://www.w3.org/2001/XMLSchema}string"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"companyName",
"phone",
"email",
"carrierID"
})
public static class AvailableTransportService
implements ToString
{
@XmlElement(name = "CompanyName", required = true)
protected String companyName;
@XmlElement(name = "Phone", required = true)
protected String phone;
@XmlElement(name = "Email", required = true)
protected String email;
@XmlElement(name = "CarrierID", required = true)
protected String carrierID;
/**
* Obtiene el valor de la propiedad companyName.
*
* @return
* possible object is
* {@link String }
*
*/
public String getCompanyName() {
return companyName;
}
/**
* Define el valor de la propiedad companyName.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setCompanyName(String value) {
this.companyName = value;
}
/**
* Obtiene el valor de la propiedad phone.
*
* @return
* possible object is
* {@link String }
*
*/
public String getPhone() {
return phone;
}
/**
* Define el valor de la propiedad phone.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setPhone(String value) {
this.phone = value;
}
/**
* Obtiene el valor de la propiedad email.
*
* @return
* possible object is
* {@link String }
*
*/
public String getEmail() {
return email;
}
/**
* Define el valor de la propiedad email.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setEmail(String value) {
this.email = value;
}
/**
* Obtiene el valor de la propiedad carrierID.
*
* @return
* possible object is
* {@link String }
*
*/
public String getCarrierID() {
return carrierID;
}
/**
* Define el valor de la propiedad carrierID.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setCarrierID(String value) {
this.carrierID = value;
}
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) {
{
String theCompanyName;
theCompanyName = this.getCompanyName();
strategy.appendField(locator, this, "companyName", buffer, theCompanyName);
}
{
String thePhone;
thePhone = this.getPhone();
strategy.appendField(locator, this, "phone", buffer, thePhone);
}
{
String theEmail;
theEmail = this.getEmail();
strategy.appendField(locator, this, "email", buffer, theEmail);
}
{
String theCarrierID;
theCarrierID = this.getCarrierID();
strategy.appendField(locator, this, "carrierID", buffer, theCarrierID);
}
return buffer;
}
public AvailableTransportServices.AvailableTransportService withCompanyName(String value) {
setCompanyName(value);
return this;
}
public AvailableTransportServices.AvailableTransportService withPhone(String value) {
setPhone(value);
return this;
}
public AvailableTransportServices.AvailableTransportService withEmail(String value) {
setEmail(value);
return this;
}
public AvailableTransportServices.AvailableTransportService withCarrierID(String value) {
setCarrierID(value);
return this;
}
}
}