
de.vdv.ojp20.StaticFareRequestStructure Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ojp-java-model Show documentation
Show all versions of ojp-java-model Show documentation
Generates Java model from OJP xsds using jaxb.
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.time.LocalDateTime;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import jakarta.xml.bind.annotation.XmlAccessType;
import jakarta.xml.bind.annotation.XmlAccessorType;
import jakarta.xml.bind.annotation.XmlElement;
import jakarta.xml.bind.annotation.XmlSchemaType;
import jakarta.xml.bind.annotation.XmlType;
import jakarta.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.opentripplanner.ojp.netex.OmitNullsToStringStyle;
import org.opentripplanner.ojp.util.LocalDateXmlAdapter;
/**
* General Fare information. May depend on date.
*
* Java class for StaticFareRequestStructure complex type
.
*
* The following schema fragment specifies the expected content contained within this class.
*
* {@code
*
*
*
*
*
*
*
*
*
*
* }
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "StaticFareRequestStructure", propOrder = {
"date",
"fareProductRef"
})
public class StaticFareRequestStructure {
/**
* Date for which to retrieve Fare information.
*
*/
@XmlElement(name = "Date", type = String.class)
@XmlJavaTypeAdapter(LocalDateXmlAdapter.class)
@XmlSchemaType(name = "date")
protected LocalDateTime date;
/**
* Reference to a FareProduct. If no FareProductRef is specified, the responding system should reply with information about all available fare products.
*
*/
@XmlElement(name = "FareProductRef")
protected List fareProductRef;
/**
* Date for which to retrieve Fare information.
*
* @return
* possible object is
* {@link String }
*
*/
public LocalDateTime getDate() {
return date;
}
/**
* Sets the value of the date property.
*
* @param value
* allowed object is
* {@link String }
*
* @see #getDate()
*/
public void setDate(LocalDateTime value) {
this.date = value;
}
/**
* Reference to a FareProduct. If no FareProductRef is specified, the responding system should reply with information about all available fare products.
*
* Gets the value of the fareProductRef 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 fareProductRef property.
*
*
* For example, to add a new item, do as follows:
*
*
* getFareProductRef().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link FareProductRefStructure }
*
*
*
* @return
* The value of the fareProductRef property.
*/
public List getFareProductRef() {
if (fareProductRef == null) {
fareProductRef = new ArrayList<>();
}
return this.fareProductRef;
}
public StaticFareRequestStructure withDate(LocalDateTime value) {
setDate(value);
return this;
}
public StaticFareRequestStructure withFareProductRef(FareProductRefStructure... values) {
if (values!= null) {
for (FareProductRefStructure value: values) {
getFareProductRef().add(value);
}
}
return this;
}
public StaticFareRequestStructure withFareProductRef(Collection values) {
if (values!= null) {
getFareProductRef().addAll(values);
}
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