
eu.fispace.api.ag.ComplaintAnalysis 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.04.10 a las 11:14:17 AM CEST
//
package eu.fispace.api.ag;
import java.io.Serializable;
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.XmlID;
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;
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 ComplaintAnalysis complex type.
*
*
El siguiente fragmento de esquema especifica el contenido que se espera que haya en esta clase.
*
*
* <complexType name="ComplaintAnalysis">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="ProductId" type="{http://www.w3.org/2001/XMLSchema}ID"/>
* <element name="ProducerId" type="{http://www.w3.org/2001/XMLSchema}ID"/>
* <element name="FarmId" type="{http://www.w3.org/2001/XMLSchema}ID"/>
* <element name="LotId" type="{http://www.w3.org/2001/XMLSchema}ID"/>
* <element name="ProbableCause" type="{http://www.w3.org/2001/XMLSchema}string"/>
* <element name="ComplaintReason" type="{http://www.fispace.eu/domain/ag}ComplaintReasonType"/>
* <element name="ProposedSteps" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "ComplaintAnalysis", propOrder = {
"productId",
"producerId",
"farmId",
"lotId",
"probableCause",
"complaintReason",
"proposedSteps"
})
public class ComplaintAnalysis
implements Serializable, ToString
{
@XmlElement(name = "ProductId", required = true)
@XmlJavaTypeAdapter(CollapsedStringAdapter.class)
@XmlID
@XmlSchemaType(name = "ID")
protected String productId;
@XmlElement(name = "ProducerId", required = true)
@XmlJavaTypeAdapter(CollapsedStringAdapter.class)
@XmlID
@XmlSchemaType(name = "ID")
protected String producerId;
@XmlElement(name = "FarmId", required = true)
@XmlJavaTypeAdapter(CollapsedStringAdapter.class)
@XmlID
@XmlSchemaType(name = "ID")
protected String farmId;
@XmlElement(name = "LotId", required = true)
@XmlJavaTypeAdapter(CollapsedStringAdapter.class)
@XmlID
@XmlSchemaType(name = "ID")
protected String lotId;
@XmlElement(name = "ProbableCause", required = true)
protected String probableCause;
@XmlElement(name = "ComplaintReason", required = true)
protected ComplaintReasonType complaintReason;
@XmlElement(name = "ProposedSteps", required = true)
protected List proposedSteps;
/**
* Obtiene el valor de la propiedad productId.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProductId() {
return productId;
}
/**
* Define el valor de la propiedad productId.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProductId(String value) {
this.productId = value;
}
public boolean isSetProductId() {
return (this.productId!= null);
}
/**
* Obtiene el valor de la propiedad producerId.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProducerId() {
return producerId;
}
/**
* Define el valor de la propiedad producerId.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProducerId(String value) {
this.producerId = value;
}
public boolean isSetProducerId() {
return (this.producerId!= null);
}
/**
* Obtiene el valor de la propiedad farmId.
*
* @return
* possible object is
* {@link String }
*
*/
public String getFarmId() {
return farmId;
}
/**
* Define el valor de la propiedad farmId.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setFarmId(String value) {
this.farmId = value;
}
public boolean isSetFarmId() {
return (this.farmId!= null);
}
/**
* Obtiene el valor de la propiedad lotId.
*
* @return
* possible object is
* {@link String }
*
*/
public String getLotId() {
return lotId;
}
/**
* Define el valor de la propiedad lotId.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setLotId(String value) {
this.lotId = value;
}
public boolean isSetLotId() {
return (this.lotId!= null);
}
/**
* Obtiene el valor de la propiedad probableCause.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProbableCause() {
return probableCause;
}
/**
* Define el valor de la propiedad probableCause.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProbableCause(String value) {
this.probableCause = value;
}
public boolean isSetProbableCause() {
return (this.probableCause!= null);
}
/**
* Obtiene el valor de la propiedad complaintReason.
*
* @return
* possible object is
* {@link ComplaintReasonType }
*
*/
public ComplaintReasonType getComplaintReason() {
return complaintReason;
}
/**
* Define el valor de la propiedad complaintReason.
*
* @param value
* allowed object is
* {@link ComplaintReasonType }
*
*/
public void setComplaintReason(ComplaintReasonType value) {
this.complaintReason = value;
}
public boolean isSetComplaintReason() {
return (this.complaintReason!= null);
}
/**
* Gets the value of the proposedSteps 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 proposedSteps property.
*
*
* For example, to add a new item, do as follows:
*
* getProposedSteps().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link String }
*
*
*/
public List getProposedSteps() {
if (proposedSteps == null) {
proposedSteps = new ArrayList();
}
return this.proposedSteps;
}
public boolean isSetProposedSteps() {
return ((this.proposedSteps!= null)&&(!this.proposedSteps.isEmpty()));
}
public void unsetProposedSteps() {
this.proposedSteps = null;
}
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 theProductId;
theProductId = this.getProductId();
strategy.appendField(locator, this, "productId", buffer, theProductId);
}
{
String theProducerId;
theProducerId = this.getProducerId();
strategy.appendField(locator, this, "producerId", buffer, theProducerId);
}
{
String theFarmId;
theFarmId = this.getFarmId();
strategy.appendField(locator, this, "farmId", buffer, theFarmId);
}
{
String theLotId;
theLotId = this.getLotId();
strategy.appendField(locator, this, "lotId", buffer, theLotId);
}
{
String theProbableCause;
theProbableCause = this.getProbableCause();
strategy.appendField(locator, this, "probableCause", buffer, theProbableCause);
}
{
ComplaintReasonType theComplaintReason;
theComplaintReason = this.getComplaintReason();
strategy.appendField(locator, this, "complaintReason", buffer, theComplaintReason);
}
{
List theProposedSteps;
theProposedSteps = (this.isSetProposedSteps()?this.getProposedSteps():null);
strategy.appendField(locator, this, "proposedSteps", buffer, theProposedSteps);
}
return buffer;
}
public ComplaintAnalysis withProductId(String value) {
setProductId(value);
return this;
}
public ComplaintAnalysis withProducerId(String value) {
setProducerId(value);
return this;
}
public ComplaintAnalysis withFarmId(String value) {
setFarmId(value);
return this;
}
public ComplaintAnalysis withLotId(String value) {
setLotId(value);
return this;
}
public ComplaintAnalysis withProbableCause(String value) {
setProbableCause(value);
return this;
}
public ComplaintAnalysis withComplaintReason(ComplaintReasonType value) {
setComplaintReason(value);
return this;
}
public ComplaintAnalysis withProposedSteps(String... values) {
if (values!= null) {
for (String value: values) {
getProposedSteps().add(value);
}
}
return this;
}
public ComplaintAnalysis withProposedSteps(Collection values) {
if (values!= null) {
getProposedSteps().addAll(values);
}
return this;
}
}