// // 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:06 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.XmlSchemaType; import javax.xml.bind.annotation.XmlType; import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; /** * Documentation goes here * * <p>Java class for ErrorData complex type. * * <p>The following schema fragment specifies the expected content contained within this class. * * <pre> * <complexType name="ErrorData"> * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> * <element name="errorId" type="{http://www.w3.org/2001/XMLSchema}long"/> * <element name="domain" type="{http://www.w3.org/2001/XMLSchema}string"/> * <element name="subdomain" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> * <element name="severity" type="{http://www.ebayopensource.org/turmeric/common/v1/types}ErrorSeverity"/> * <element name="category" type="{http://www.ebayopensource.org/turmeric/common/v1/types}ErrorCategory"/> * <element name="message" type="{http://www.w3.org/2001/XMLSchema}string"/> * <element name="exceptionId" type="{http://www.w3.org/2001/XMLSchema}token" minOccurs="0"/> * <element name="parameter" type="{http://www.ebayopensource.org/turmeric/common/v1/types}ErrorParameter" maxOccurs="unbounded" minOccurs="0"/> * </sequence> * </restriction> * </complexContent> * </complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "ErrorData", propOrder = { "errorId", "domain", "subdomain", "severity", "category", "message", "exceptionId", "parameter" }) public class ErrorData { protected long errorId; @XmlElement(required = true) protected String domain; protected String subdomain; @XmlElement(required = true) protected ErrorSeverity severity; @XmlElement(required = true) protected ErrorCategory category; @XmlElement(required = true) protected String message; @XmlJavaTypeAdapter(CollapsedStringAdapter.class) @XmlSchemaType(name = "token") protected String exceptionId; protected List<ErrorParameter> parameter; /** * Gets the value of the errorId property. * */ public long getErrorId() { return errorId; } /** * Sets the value of the errorId property. * */ public void setErrorId(long value) { this.errorId = value; } /** * Gets the value of the domain property. * * @return * possible object is * {@link String } * */ public String getDomain() { return domain; } /** * Sets the value of the domain property. * * @param value * allowed object is * {@link String } * */ public void setDomain(String value) { this.domain = value; } /** * Gets the value of the subdomain property. * * @return * possible object is * {@link String } * */ public String getSubdomain() { return subdomain; } /** * Sets the value of the subdomain property. * * @param value * allowed object is * {@link String } * */ public void setSubdomain(String value) { this.subdomain = value; } /** * Gets the value of the severity property. * * @return * possible object is * {@link ErrorSeverity } * */ public ErrorSeverity getSeverity() { return severity; } /** * Sets the value of the severity property. * * @param value * allowed object is * {@link ErrorSeverity } * */ public void setSeverity(ErrorSeverity value) { this.severity = value; } /** * Gets the value of the category property. * * @return * possible object is * {@link ErrorCategory } * */ public ErrorCategory getCategory() { return category; } /** * Sets the value of the category property. * * @param value * allowed object is * {@link ErrorCategory } * */ public void setCategory(ErrorCategory value) { this.category = value; } /** * Gets the value of the message property. * * @return * possible object is * {@link String } * */ public String getMessage() { return message; } /** * Sets the value of the message property. * * @param value * allowed object is * {@link String } * */ public void setMessage(String value) { this.message = value; } /** * Gets the value of the exceptionId property. * * @return * possible object is * {@link String } * */ public String getExceptionId() { return exceptionId; } /** * Sets the value of the exceptionId property. * * @param value * allowed object is * {@link String } * */ public void setExceptionId(String value) { this.exceptionId = value; } /** * Gets the value of the parameter 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 parameter property. * * <p> * For example, to add a new item, do as follows: * <pre> * getParameter().add(newItem); * </pre> * * * <p> * Objects of the following type(s) are allowed in the list * {@link ErrorParameter } * * */ public List<ErrorParameter> getParameter() { if (parameter == null) { parameter = new ArrayList<ErrorParameter>(); } return this.parameter; } }