All Downloads are FREE. Search and download functionalities are using the official Maven repository.

de.vdv.ojp20.OJPAvailabilityDeliveryStructure Maven / Gradle / Ivy

The newest version!
//
// 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 OJPAvailabilityDeliveryStructure complex type

. * *

The following schema fragment specifies the expected content contained within this class.

* *
{@code
 * 
 *   
 *     
 *       
 *         
 *         
 *         
 *       
 *     
 *   
 * 
 * }
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "OJPAvailabilityDeliveryStructure", propOrder = { "rest" }) public class OJPAvailabilityDeliveryStructure 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 = "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 = "AvailabilityResponseContext", namespace = "http://www.vdv.de/ojp", type = JAXBElement.class, required = false), @XmlElementRef(name = "AvailabilityResult", namespace = "http://www.vdv.de/ojp", type = JAXBElement.class, required = false), @XmlElementRef(name = "Extension", 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 AvailabilityResultStructure }{@code >} * {@link JAXBElement }{@code <}{@link OJPErrorStructure }{@code >} * {@link JAXBElement }{@code <}{@link ResponseContextStructure }{@code >} * {@link JAXBElement }{@code <}{@link DataFrameRefStructure }{@code >} * {@link JAXBElement }{@code <}{@link ExtensionsStructure }{@code >} * {@link JAXBElement }{@code <}{@link Object }{@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 OJPAvailabilityDeliveryStructure withRest(JAXBElement ... values) { if (values!= null) { for (JAXBElement value: values) { getRest().add(value); } } return this; } public OJPAvailabilityDeliveryStructure withRest(Collection> values) { if (values!= null) { getRest().addAll(values); } return this; } @Override public OJPAvailabilityDeliveryStructure withRequestMessageRef(MessageRefStructure value) { setRequestMessageRef(value); return this; } @Override public OJPAvailabilityDeliveryStructure withSubscriberRef(ParticipantRefStructure value) { setSubscriberRef(value); return this; } @Override public OJPAvailabilityDeliveryStructure withSubscriptionFilterRef(SubscriptionFilterRefStructure value) { setSubscriptionFilterRef(value); return this; } @Override public OJPAvailabilityDeliveryStructure withSubscriptionRef(SubscriptionRefStructure value) { setSubscriptionRef(value); return this; } @Override public OJPAvailabilityDeliveryStructure withDelegatorAddress(String value) { setDelegatorAddress(value); return this; } @Override public OJPAvailabilityDeliveryStructure withDelegatorRef(ParticipantRefStructure value) { setDelegatorRef(value); return this; } @Override public OJPAvailabilityDeliveryStructure withStatus(Boolean value) { setStatus(value); return this; } @Override public OJPAvailabilityDeliveryStructure withErrorCondition(ServiceDeliveryErrorConditionStructure value) { setErrorCondition(value); return this; } @Override public OJPAvailabilityDeliveryStructure withValidUntil(XmlDateTime value) { setValidUntil(value); return this; } @Override public OJPAvailabilityDeliveryStructure withShortestPossibleCycle(Duration value) { setShortestPossibleCycle(value); return this; } @Override public OJPAvailabilityDeliveryStructure withDefaultLanguage(String value) { setDefaultLanguage(value); return this; } @Override public OJPAvailabilityDeliveryStructure 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); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy