
de.vdv.ojp20.OJPTripChangeDeliveryStructure Maven / Gradle / Ivy
Show all versions of ojp-java-model Show documentation
//
// This file was generated by the Eclipse Implementation of JAXB, v4.0.5
// See https://eclipse-ee4j.github.io/jaxb-ri
// Any modifications to this file will be lost upon recompilation of the source schema.
//
package de.vdv.ojp20;
import java.math.BigInteger;
import java.time.Duration;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import de.vdv.ojp20.siri.AbstractServiceDeliveryStructure;
import de.vdv.ojp20.siri.DataFrameRefStructure;
import de.vdv.ojp20.siri.ExtensionsStructure;
import de.vdv.ojp20.siri.MessageRefStructure;
import de.vdv.ojp20.siri.ParticipantRefStructure;
import de.vdv.ojp20.siri.ServiceDeliveryErrorConditionStructure;
import de.vdv.ojp20.siri.SubscriptionFilterRefStructure;
import de.vdv.ojp20.siri.SubscriptionRefStructure;
import jakarta.xml.bind.JAXBElement;
import jakarta.xml.bind.annotation.XmlAccessType;
import jakarta.xml.bind.annotation.XmlAccessorType;
import jakarta.xml.bind.annotation.XmlElementRef;
import jakarta.xml.bind.annotation.XmlElementRefs;
import jakarta.xml.bind.annotation.XmlType;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.opentripplanner.ojp.netex.OmitNullsToStringStyle;
import org.opentripplanner.ojp.time.XmlDateTime;
/**
* Java class for OJPTripChangeDeliveryStructure complex type
.
*
* The following schema fragment specifies the expected content contained within this class.
*
* {@code
*
*
*
*
*
*
*
*
*
*
*
*
* }
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "OJPTripChangeDeliveryStructure", propOrder = {
"rest"
})
public class OJPTripChangeDeliveryStructure
extends AbstractServiceDeliveryStructure
{
/**
* Gets the rest of the content model.
*
*
* You are getting this "catch-all" property because of the following reason:
* The field name "ErrorCondition" is used by two different parts of a schema. See:
* line 77 of file:/home/lenni/dev/ojp-java-model/src/main/resources/xsd/2.0/OJP/OJP_RequestSupport.xsd
* line 144 of file:/home/lenni/dev/ojp-java-model/src/main/resources/xsd/2.0/siri/xsd/siri/siri_requests.xsd
*
* To get rid of this property, apply a property customization to one
* of both of the following declarations to change their names:
*
*/
@XmlElementRefs({
@XmlElementRef(name = "OJPTripChangeRequest", namespace = "http://www.vdv.de/ojp", type = JAXBElement.class, required = false),
@XmlElementRef(name = "DataFrameRef", namespace = "http://www.vdv.de/ojp", type = JAXBElement.class, required = false),
@XmlElementRef(name = "CalcTime", namespace = "http://www.vdv.de/ojp", type = JAXBElement.class, required = false),
@XmlElementRef(name = "ErrorCondition", namespace = "http://www.vdv.de/ojp", type = JAXBElement.class, required = false),
@XmlElementRef(name = "TripResponseContext", namespace = "http://www.vdv.de/ojp", type = JAXBElement.class, required = false),
@XmlElementRef(name = "TripResult", namespace = "http://www.vdv.de/ojp", type = JAXBElement.class, required = false),
@XmlElementRef(name = "Extensions", namespace = "http://www.siri.org.uk/siri", type = JAXBElement.class, required = false)
})
protected List> rest;
/**
* Gets the rest of the content model.
*
*
* You are getting this "catch-all" property because of the following reason:
* The field name "ErrorCondition" is used by two different parts of a schema. See:
* line 77 of file:/home/lenni/dev/ojp-java-model/src/main/resources/xsd/2.0/OJP/OJP_RequestSupport.xsd
* line 144 of file:/home/lenni/dev/ojp-java-model/src/main/resources/xsd/2.0/siri/xsd/siri/siri_requests.xsd
*
* To get rid of this property, apply a property customization to one
* of both of the following declarations to change their names:
*
* Gets the value of the rest 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 rest property.
*
*
* For example, to add a new item, do as follows:
*
*
* getRest().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link JAXBElement }{@code <}{@link OJPErrorStructure }{@code >}
* {@link JAXBElement }{@code <}{@link OJPTripChangeRequestStructure }{@code >}
* {@link JAXBElement }{@code <}{@link ResponseContextStructure }{@code >}
* {@link JAXBElement }{@code <}{@link TripResultStructure }{@code >}
* {@link JAXBElement }{@code <}{@link DataFrameRefStructure }{@code >}
* {@link JAXBElement }{@code <}{@link ExtensionsStructure }{@code >}
* {@link JAXBElement }{@code <}{@link BigInteger }{@code >}
*
*
*
* @return
* The value of the rest property.
*/
public List> getRest() {
if (rest == null) {
rest = new ArrayList<>();
}
return this.rest;
}
public OJPTripChangeDeliveryStructure withRest(JAXBElement> ... values) {
if (values!= null) {
for (JAXBElement> value: values) {
getRest().add(value);
}
}
return this;
}
public OJPTripChangeDeliveryStructure withRest(Collection> values) {
if (values!= null) {
getRest().addAll(values);
}
return this;
}
@Override
public OJPTripChangeDeliveryStructure withRequestMessageRef(MessageRefStructure value) {
setRequestMessageRef(value);
return this;
}
@Override
public OJPTripChangeDeliveryStructure withSubscriberRef(ParticipantRefStructure value) {
setSubscriberRef(value);
return this;
}
@Override
public OJPTripChangeDeliveryStructure withSubscriptionFilterRef(SubscriptionFilterRefStructure value) {
setSubscriptionFilterRef(value);
return this;
}
@Override
public OJPTripChangeDeliveryStructure withSubscriptionRef(SubscriptionRefStructure value) {
setSubscriptionRef(value);
return this;
}
@Override
public OJPTripChangeDeliveryStructure withDelegatorAddress(String value) {
setDelegatorAddress(value);
return this;
}
@Override
public OJPTripChangeDeliveryStructure withDelegatorRef(ParticipantRefStructure value) {
setDelegatorRef(value);
return this;
}
@Override
public OJPTripChangeDeliveryStructure withStatus(Boolean value) {
setStatus(value);
return this;
}
@Override
public OJPTripChangeDeliveryStructure withErrorCondition(ServiceDeliveryErrorConditionStructure value) {
setErrorCondition(value);
return this;
}
@Override
public OJPTripChangeDeliveryStructure withValidUntil(XmlDateTime value) {
setValidUntil(value);
return this;
}
@Override
public OJPTripChangeDeliveryStructure withShortestPossibleCycle(Duration value) {
setShortestPossibleCycle(value);
return this;
}
@Override
public OJPTripChangeDeliveryStructure withDefaultLanguage(String value) {
setDefaultLanguage(value);
return this;
}
@Override
public OJPTripChangeDeliveryStructure withResponseTimestamp(XmlDateTime 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);
}
}