uk.org.siri.siri.DataReceivedResponseStructure Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of netex-java-model Show documentation
Show all versions of netex-java-model Show documentation
Generates Java model from NeTEx XSDs using JAXB.
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.11
// See http://java.sun.com/xml/jaxb
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2017.09.21 at 10:53:23 AM CEST
//
package uk.org.siri.siri;
import java.time.OffsetDateTime;
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 org.apache.commons.lang3.builder.ToStringBuilder;
import org.rutebanken.netex.OmitNullsToStringStyle;
/**
* Java class for DataReceivedResponseStructure complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="DataReceivedResponseStructure">
* <complexContent>
* <extension base="{http://www.siri.org.uk/siri}ConsumerResponseEndpointStructure">
* <sequence>
* <group ref="{http://www.siri.org.uk/siri}DataReceivedPayloadGroup"/>
* </sequence>
* </extension>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "DataReceivedResponseStructure", propOrder = {
"status",
"errorCondition"
})
public class DataReceivedResponseStructure
extends ConsumerResponseEndpointStructure
{
@XmlElement(name = "Status", defaultValue = "true")
protected boolean status;
@XmlElement(name = "ErrorCondition")
protected DataReceivedResponseStructure.ErrorCondition errorCondition;
/**
* Gets the value of the status property.
*
*/
public boolean isStatus() {
return status;
}
/**
* Sets the value of the status property.
*
*/
public void setStatus(boolean value) {
this.status = value;
}
/**
* Gets the value of the errorCondition property.
*
* @return
* possible object is
* {@link DataReceivedResponseStructure.ErrorCondition }
*
*/
public DataReceivedResponseStructure.ErrorCondition getErrorCondition() {
return errorCondition;
}
/**
* Sets the value of the errorCondition property.
*
* @param value
* allowed object is
* {@link DataReceivedResponseStructure.ErrorCondition }
*
*/
public void setErrorCondition(DataReceivedResponseStructure.ErrorCondition value) {
this.errorCondition = value;
}
public DataReceivedResponseStructure withStatus(boolean value) {
setStatus(value);
return this;
}
public DataReceivedResponseStructure withErrorCondition(DataReceivedResponseStructure.ErrorCondition value) {
setErrorCondition(value);
return this;
}
@Override
public DataReceivedResponseStructure withConsumerRef(ParticipantRefStructure value) {
setConsumerRef(value);
return this;
}
@Override
public DataReceivedResponseStructure withRequestMessageRef(MessageRefStructure value) {
setRequestMessageRef(value);
return this;
}
@Override
public DataReceivedResponseStructure withDelegatorAddress(String value) {
setDelegatorAddress(value);
return this;
}
@Override
public DataReceivedResponseStructure withDelegatorRef(ParticipantRefStructure value) {
setDelegatorRef(value);
return this;
}
@Override
public DataReceivedResponseStructure withResponseTimestamp(OffsetDateTime value) {
setResponseTimestamp(value);
return this;
}
/**
* Generates a String representation of the contents of this type.
* This is an extension method, produced by the 'ts' xjc plugin
*
*/
@Override
public String toString() {
return ToStringBuilder.reflectionToString(this, OmitNullsToStringStyle.INSTANCE);
}
/**
* Java class for anonymous complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <choice>
* <element ref="{http://www.siri.org.uk/siri}UnknownSubscriptionError"/>
* <element ref="{http://www.siri.org.uk/siri}OtherError"/>
* </choice>
* <sequence>
* <element name="Description" type="{http://www.siri.org.uk/siri}ErrorDescriptionStructure" minOccurs="0"/>
* </sequence>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"unknownSubscriptionError",
"otherError",
"description"
})
public static class ErrorCondition {
@XmlElement(name = "UnknownSubscriptionError")
protected UnknownSubscriptionErrorStructure unknownSubscriptionError;
@XmlElement(name = "OtherError")
protected OtherErrorStructure otherError;
@XmlElement(name = "Description")
protected ErrorDescriptionStructure description;
/**
* Gets the value of the unknownSubscriptionError property.
*
* @return
* possible object is
* {@link UnknownSubscriptionErrorStructure }
*
*/
public UnknownSubscriptionErrorStructure getUnknownSubscriptionError() {
return unknownSubscriptionError;
}
/**
* Sets the value of the unknownSubscriptionError property.
*
* @param value
* allowed object is
* {@link UnknownSubscriptionErrorStructure }
*
*/
public void setUnknownSubscriptionError(UnknownSubscriptionErrorStructure value) {
this.unknownSubscriptionError = value;
}
/**
* Gets the value of the otherError property.
*
* @return
* possible object is
* {@link OtherErrorStructure }
*
*/
public OtherErrorStructure getOtherError() {
return otherError;
}
/**
* Sets the value of the otherError property.
*
* @param value
* allowed object is
* {@link OtherErrorStructure }
*
*/
public void setOtherError(OtherErrorStructure value) {
this.otherError = value;
}
/**
* Gets the value of the description property.
*
* @return
* possible object is
* {@link ErrorDescriptionStructure }
*
*/
public ErrorDescriptionStructure getDescription() {
return description;
}
/**
* Sets the value of the description property.
*
* @param value
* allowed object is
* {@link ErrorDescriptionStructure }
*
*/
public void setDescription(ErrorDescriptionStructure value) {
this.description = value;
}
public DataReceivedResponseStructure.ErrorCondition withUnknownSubscriptionError(UnknownSubscriptionErrorStructure value) {
setUnknownSubscriptionError(value);
return this;
}
public DataReceivedResponseStructure.ErrorCondition withOtherError(OtherErrorStructure value) {
setOtherError(value);
return this;
}
public DataReceivedResponseStructure.ErrorCondition withDescription(ErrorDescriptionStructure value) {
setDescription(value);
return this;
}
/**
* Generates a String representation of the contents of this type.
* This is an extension method, produced by the 'ts' xjc plugin
*
*/
@Override
public String toString() {
return ToStringBuilder.reflectionToString(this, OmitNullsToStringStyle.INSTANCE);
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy