
de.vdv.ojp20.BookableServiceItemStructure 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.math.BigInteger;
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 org.apache.commons.lang3.builder.ToStringBuilder;
import org.opentripplanner.ojp.netex.OmitNullsToStringStyle;
/**
* Possible service items that can be booked in the actual booking system (defined by the traffic company of charge). Only those elements with value greater 0 are bookable. The indicated capacity corresponds to the maximum number that can be booked in one booking. This number does not have to be available for the specific booking and may result in booking failure. Caution: list can vary widely from one traffic company to another.
*
* Java class for BookableServiceItemStructure complex type
.
*
* The following schema fragment specifies the expected content contained within this class.
*
* {@code
*
*
*
*
*
*
*
*
*
*
* }
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "BookableServiceItemStructure", propOrder = {
"type",
"maxBookableCapacity"
})
public class BookableServiceItemStructure {
/**
* The type of bookable service.
*
*/
@XmlElement(name = "Type", required = true)
@XmlSchemaType(name = "string")
protected BookableServiceItemTypeEnumeration type;
/**
* Maximum number of service items that can be booked in one booking transaction. Default is 0.
*
*/
@XmlElement(name = "MaxBookableCapacity", required = true)
@XmlSchemaType(name = "nonNegativeInteger")
protected BigInteger maxBookableCapacity;
/**
* The type of bookable service.
*
* @return
* possible object is
* {@link BookableServiceItemTypeEnumeration }
*
*/
public BookableServiceItemTypeEnumeration getType() {
return type;
}
/**
* Sets the value of the type property.
*
* @param value
* allowed object is
* {@link BookableServiceItemTypeEnumeration }
*
* @see #getType()
*/
public void setType(BookableServiceItemTypeEnumeration value) {
this.type = value;
}
/**
* Maximum number of service items that can be booked in one booking transaction. Default is 0.
*
* @return
* possible object is
* {@link BigInteger }
*
*/
public BigInteger getMaxBookableCapacity() {
return maxBookableCapacity;
}
/**
* Sets the value of the maxBookableCapacity property.
*
* @param value
* allowed object is
* {@link BigInteger }
*
* @see #getMaxBookableCapacity()
*/
public void setMaxBookableCapacity(BigInteger value) {
this.maxBookableCapacity = value;
}
public BookableServiceItemStructure withType(BookableServiceItemTypeEnumeration value) {
setType(value);
return this;
}
public BookableServiceItemStructure withMaxBookableCapacity(BigInteger value) {
setMaxBookableCapacity(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