
eu.fispace.api.ag.WorkabilityDataResponse 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.XmlRootElement;
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 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;
/**
*
* This class represents workability data for requested fields and
* OperationTechnologies over a time interval.
*
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"messageId",
"fieldGUID",
"schedulingPeriod"
})
@XmlRootElement(name = "WorkabilityDataResponse")
public class WorkabilityDataResponse
extends ResponseMessage
implements Serializable, ToString
{
@XmlElement(name = "MessageId", required = true)
@XmlJavaTypeAdapter(CollapsedStringAdapter.class)
@XmlID
@XmlSchemaType(name = "ID")
protected String messageId;
@XmlElement(name = "FieldGUID", required = true)
protected String fieldGUID;
protected List schedulingPeriod;
/**
* Obtiene el valor de la propiedad messageId.
*
* @return
* possible object is
* {@link String }
*
*/
public String getMessageId() {
return messageId;
}
/**
* Define el valor de la propiedad messageId.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setMessageId(String value) {
this.messageId = value;
}
public boolean isSetMessageId() {
return (this.messageId!= null);
}
/**
* Obtiene el valor de la propiedad fieldGUID.
*
* @return
* possible object is
* {@link String }
*
*/
public String getFieldGUID() {
return fieldGUID;
}
/**
* Define el valor de la propiedad fieldGUID.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setFieldGUID(String value) {
this.fieldGUID = value;
}
public boolean isSetFieldGUID() {
return (this.fieldGUID!= null);
}
/**
* Gets the value of the schedulingPeriod 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 schedulingPeriod property.
*
*
* For example, to add a new item, do as follows:
*
* getSchedulingPeriod().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link SchedulingPeriodType }
*
*
*/
public List getSchedulingPeriod() {
if (schedulingPeriod == null) {
schedulingPeriod = new ArrayList();
}
return this.schedulingPeriod;
}
public boolean isSetSchedulingPeriod() {
return ((this.schedulingPeriod!= null)&&(!this.schedulingPeriod.isEmpty()));
}
public void unsetSchedulingPeriod() {
this.schedulingPeriod = 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) {
super.appendFields(locator, buffer, strategy);
{
String theMessageId;
theMessageId = this.getMessageId();
strategy.appendField(locator, this, "messageId", buffer, theMessageId);
}
{
String theFieldGUID;
theFieldGUID = this.getFieldGUID();
strategy.appendField(locator, this, "fieldGUID", buffer, theFieldGUID);
}
{
List theSchedulingPeriod;
theSchedulingPeriod = (this.isSetSchedulingPeriod()?this.getSchedulingPeriod():null);
strategy.appendField(locator, this, "schedulingPeriod", buffer, theSchedulingPeriod);
}
return buffer;
}
public WorkabilityDataResponse withMessageId(String value) {
setMessageId(value);
return this;
}
public WorkabilityDataResponse withFieldGUID(String value) {
setFieldGUID(value);
return this;
}
public WorkabilityDataResponse withSchedulingPeriod(SchedulingPeriodType... values) {
if (values!= null) {
for (SchedulingPeriodType value: values) {
getSchedulingPeriod().add(value);
}
}
return this;
}
public WorkabilityDataResponse withSchedulingPeriod(Collection values) {
if (values!= null) {
getSchedulingPeriod().addAll(values);
}
return this;
}
}