// // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.1.2-b01-fcs // 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: 2011.08.18 at 04:30:05 AM PDT // package org.ebayopensource.turmeric.common.v1.types; 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.XmlType; import javax.xml.datatype.XMLGregorianCalendar; /** * * Base response container for all service operations. * Contains error information associated with the request. * * * <p>Java class for BaseResponse complex type. * * <p>The following schema fragment specifies the expected content contained within this class. * * <pre> * <complexType name="BaseResponse"> * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> * <element name="ack" type="{http://www.ebayopensource.org/turmeric/common/v1/types}AckValue"/> * <element name="errorMessage" type="{http://www.ebayopensource.org/turmeric/common/v1/types}ErrorMessage" minOccurs="0"/> * <element name="version" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> * <element name="timestamp" type="{http://www.w3.org/2001/XMLSchema}dateTime" minOccurs="0"/> * <element name="extension" type="{http://www.ebayopensource.org/turmeric/common/v1/types}ExtensionType" maxOccurs="unbounded" minOccurs="0"/> * </sequence> * </restriction> * </complexContent> * </complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "BaseResponse", propOrder = { "ack", "errorMessage", "version", "timestamp", "extension" }) public abstract class BaseResponse { @XmlElement(required = true) protected AckValue ack; protected ErrorMessage errorMessage; protected String version; protected XMLGregorianCalendar timestamp; protected List<ExtensionType> extension; /** * Gets the value of the ack property. * * @return * possible object is * {@link AckValue } * */ public AckValue getAck() { return ack; } /** * Sets the value of the ack property. * * @param value * allowed object is * {@link AckValue } * */ public void setAck(AckValue value) { this.ack = value; } /** * Gets the value of the errorMessage property. * * @return * possible object is * {@link ErrorMessage } * */ public ErrorMessage getErrorMessage() { return errorMessage; } /** * Sets the value of the errorMessage property. * * @param value * allowed object is * {@link ErrorMessage } * */ public void setErrorMessage(ErrorMessage value) { this.errorMessage = value; } /** * Gets the value of the version property. * * @return * possible object is * {@link String } * */ public String getVersion() { return version; } /** * Sets the value of the version property. * * @param value * allowed object is * {@link String } * */ public void setVersion(String value) { this.version = value; } /** * Gets the value of the timestamp property. * * @return * possible object is * {@link XMLGregorianCalendar } * */ public XMLGregorianCalendar getTimestamp() { return timestamp; } /** * Sets the value of the timestamp property. * * @param value * allowed object is * {@link XMLGregorianCalendar } * */ public void setTimestamp(XMLGregorianCalendar value) { this.timestamp = value; } /** * Gets the value of the extension 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 extension property. * * <p> * For example, to add a new item, do as follows: * <pre> * getExtension().add(newItem); * </pre> * * * <p> * Objects of the following type(s) are allowed in the list * {@link ExtensionType } * * */ public List<ExtensionType> getExtension() { if (extension == null) { extension = new ArrayList<ExtensionType>(); } return this.extension; } }