org.rutebanken.netex.model.Reserving_VersionStructure Maven / Gradle / Ivy
Show all versions of netex-java-model Show documentation
//
// 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 org.rutebanken.netex.model;
import java.math.BigInteger;
import java.time.OffsetDateTime;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import javax.xml.bind.JAXBElement;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlList;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlSeeAlso;
import javax.xml.bind.annotation.XmlType;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.rutebanken.netex.OmitNullsToStringStyle;
/**
* Java class for Reserving_VersionStructure complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="Reserving_VersionStructure">
* <complexContent>
* <extension base="{http://www.netex.org.uk/netex}UsageParameter_VersionStructure">
* <sequence>
* <group ref="{http://www.netex.org.uk/netex}ReservingGroup"/>
* </sequence>
* </extension>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "Reserving_VersionStructure", propOrder = {
"reservingRequirements",
"minimumNumberToReserve",
"maximumNumberToReserve",
"mustReserveWholeCompartment",
"reservationChargeType",
"feeBasis",
"hasFreeConnectingReservations",
"numberOfFreeConnectingReservations",
"bookingArrangements"
})
@XmlSeeAlso({
Reserving.class
})
public class Reserving_VersionStructure
extends UsageParameter_VersionStructure
{
@XmlList
@XmlElement(name = "ReservingRequirements")
protected List reservingRequirements;
@XmlElement(name = "MinimumNumberToReserve")
protected BigInteger minimumNumberToReserve;
@XmlElement(name = "MaximumNumberToReserve")
protected BigInteger maximumNumberToReserve;
@XmlElement(name = "MustReserveWholeCompartment", defaultValue = "false")
protected Boolean mustReserveWholeCompartment;
@XmlElement(name = "ReservationChargeType")
@XmlSchemaType(name = "normalizedString")
protected ReservationChargeTypeEnumeration reservationChargeType;
@XmlElement(name = "FeeBasis")
@XmlSchemaType(name = "normalizedString")
protected PerBasisEnumeration feeBasis;
@XmlElement(name = "HasFreeConnectingReservations")
protected Boolean hasFreeConnectingReservations;
@XmlElement(name = "NumberOfFreeConnectingReservations")
protected BigInteger numberOfFreeConnectingReservations;
@XmlElement(name = "BookingArrangements")
protected BookingArrangementsStructure bookingArrangements;
/**
* Gets the value of the reservingRequirements 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 reservingRequirements property.
*
*
* For example, to add a new item, do as follows:
*
* getReservingRequirements().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link ReservationEnumeration }
*
*
*/
public List getReservingRequirements() {
if (reservingRequirements == null) {
reservingRequirements = new ArrayList();
}
return this.reservingRequirements;
}
/**
* Gets the value of the minimumNumberToReserve property.
*
* @return
* possible object is
* {@link BigInteger }
*
*/
public BigInteger getMinimumNumberToReserve() {
return minimumNumberToReserve;
}
/**
* Sets the value of the minimumNumberToReserve property.
*
* @param value
* allowed object is
* {@link BigInteger }
*
*/
public void setMinimumNumberToReserve(BigInteger value) {
this.minimumNumberToReserve = value;
}
/**
* Gets the value of the maximumNumberToReserve property.
*
* @return
* possible object is
* {@link BigInteger }
*
*/
public BigInteger getMaximumNumberToReserve() {
return maximumNumberToReserve;
}
/**
* Sets the value of the maximumNumberToReserve property.
*
* @param value
* allowed object is
* {@link BigInteger }
*
*/
public void setMaximumNumberToReserve(BigInteger value) {
this.maximumNumberToReserve = value;
}
/**
* Gets the value of the mustReserveWholeCompartment property.
*
* @return
* possible object is
* {@link Boolean }
*
*/
public Boolean isMustReserveWholeCompartment() {
return mustReserveWholeCompartment;
}
/**
* Sets the value of the mustReserveWholeCompartment property.
*
* @param value
* allowed object is
* {@link Boolean }
*
*/
public void setMustReserveWholeCompartment(Boolean value) {
this.mustReserveWholeCompartment = value;
}
/**
* Gets the value of the reservationChargeType property.
*
* @return
* possible object is
* {@link ReservationChargeTypeEnumeration }
*
*/
public ReservationChargeTypeEnumeration getReservationChargeType() {
return reservationChargeType;
}
/**
* Sets the value of the reservationChargeType property.
*
* @param value
* allowed object is
* {@link ReservationChargeTypeEnumeration }
*
*/
public void setReservationChargeType(ReservationChargeTypeEnumeration value) {
this.reservationChargeType = value;
}
/**
* Gets the value of the feeBasis property.
*
* @return
* possible object is
* {@link PerBasisEnumeration }
*
*/
public PerBasisEnumeration getFeeBasis() {
return feeBasis;
}
/**
* Sets the value of the feeBasis property.
*
* @param value
* allowed object is
* {@link PerBasisEnumeration }
*
*/
public void setFeeBasis(PerBasisEnumeration value) {
this.feeBasis = value;
}
/**
* Gets the value of the hasFreeConnectingReservations property.
*
* @return
* possible object is
* {@link Boolean }
*
*/
public Boolean isHasFreeConnectingReservations() {
return hasFreeConnectingReservations;
}
/**
* Sets the value of the hasFreeConnectingReservations property.
*
* @param value
* allowed object is
* {@link Boolean }
*
*/
public void setHasFreeConnectingReservations(Boolean value) {
this.hasFreeConnectingReservations = value;
}
/**
* Gets the value of the numberOfFreeConnectingReservations property.
*
* @return
* possible object is
* {@link BigInteger }
*
*/
public BigInteger getNumberOfFreeConnectingReservations() {
return numberOfFreeConnectingReservations;
}
/**
* Sets the value of the numberOfFreeConnectingReservations property.
*
* @param value
* allowed object is
* {@link BigInteger }
*
*/
public void setNumberOfFreeConnectingReservations(BigInteger value) {
this.numberOfFreeConnectingReservations = value;
}
/**
* Gets the value of the bookingArrangements property.
*
* @return
* possible object is
* {@link BookingArrangementsStructure }
*
*/
public BookingArrangementsStructure getBookingArrangements() {
return bookingArrangements;
}
/**
* Sets the value of the bookingArrangements property.
*
* @param value
* allowed object is
* {@link BookingArrangementsStructure }
*
*/
public void setBookingArrangements(BookingArrangementsStructure value) {
this.bookingArrangements = value;
}
public Reserving_VersionStructure withReservingRequirements(ReservationEnumeration... values) {
if (values!= null) {
for (ReservationEnumeration value: values) {
getReservingRequirements().add(value);
}
}
return this;
}
public Reserving_VersionStructure withReservingRequirements(Collection values) {
if (values!= null) {
getReservingRequirements().addAll(values);
}
return this;
}
public Reserving_VersionStructure withMinimumNumberToReserve(BigInteger value) {
setMinimumNumberToReserve(value);
return this;
}
public Reserving_VersionStructure withMaximumNumberToReserve(BigInteger value) {
setMaximumNumberToReserve(value);
return this;
}
public Reserving_VersionStructure withMustReserveWholeCompartment(Boolean value) {
setMustReserveWholeCompartment(value);
return this;
}
public Reserving_VersionStructure withReservationChargeType(ReservationChargeTypeEnumeration value) {
setReservationChargeType(value);
return this;
}
public Reserving_VersionStructure withFeeBasis(PerBasisEnumeration value) {
setFeeBasis(value);
return this;
}
public Reserving_VersionStructure withHasFreeConnectingReservations(Boolean value) {
setHasFreeConnectingReservations(value);
return this;
}
public Reserving_VersionStructure withNumberOfFreeConnectingReservations(BigInteger value) {
setNumberOfFreeConnectingReservations(value);
return this;
}
public Reserving_VersionStructure withBookingArrangements(BookingArrangementsStructure value) {
setBookingArrangements(value);
return this;
}
@Override
public Reserving_VersionStructure withUrl(String value) {
setUrl(value);
return this;
}
@Override
public Reserving_VersionStructure withTypeOfUsageParameterRef(TypeOfUsageParameterRefStructure value) {
setTypeOfUsageParameterRef(value);
return this;
}
@Override
public Reserving_VersionStructure withPrices(UsageParameterPrices_RelStructure value) {
setPrices(value);
return this;
}
@Override
public Reserving_VersionStructure withName(MultilingualString value) {
setName(value);
return this;
}
@Override
public Reserving_VersionStructure withDescription(MultilingualString value) {
setDescription(value);
return this;
}
@Override
public Reserving_VersionStructure withAlternativeNames(AlternativeNames_RelStructure value) {
setAlternativeNames(value);
return this;
}
@Override
public Reserving_VersionStructure withNoticeAssignments(NoticeAssignments_RelStructure value) {
setNoticeAssignments(value);
return this;
}
@Override
public Reserving_VersionStructure withPricingServiceRef(PricingServiceRefStructure value) {
setPricingServiceRef(value);
return this;
}
@Override
public Reserving_VersionStructure withPricingRuleRef(JAXBElement extends PricingRuleRefStructure> value) {
setPricingRuleRef(value);
return this;
}
@Override
public Reserving_VersionStructure withPriceGroups(PriceGroups_RelStructure value) {
setPriceGroups(value);
return this;
}
@Override
public Reserving_VersionStructure withFareTables(FareTables_RelStructure value) {
setFareTables(value);
return this;
}
@Override
public Reserving_VersionStructure withKeyList(KeyListStructure value) {
setKeyList(value);
return this;
}
@Override
public Reserving_VersionStructure withExtensions(ExtensionsStructure value) {
setExtensions(value);
return this;
}
@Override
public Reserving_VersionStructure withBrandingRef(BrandingRefStructure value) {
setBrandingRef(value);
return this;
}
@Override
public Reserving_VersionStructure withAlternativeTexts(AlternativeTexts_RelStructure value) {
setAlternativeTexts(value);
return this;
}
@Override
public Reserving_VersionStructure withResponsibilitySetRef(String value) {
setResponsibilitySetRef(value);
return this;
}
@Override
public Reserving_VersionStructure withValidityConditions(ValidityConditions_RelStructure value) {
setValidityConditions(value);
return this;
}
@Override
public Reserving_VersionStructure withValidBetween(ValidBetween... values) {
if (values!= null) {
for (ValidBetween value: values) {
getValidBetween().add(value);
}
}
return this;
}
@Override
public Reserving_VersionStructure withValidBetween(Collection values) {
if (values!= null) {
getValidBetween().addAll(values);
}
return this;
}
@Override
public Reserving_VersionStructure withDataSourceRef(String value) {
setDataSourceRef(value);
return this;
}
@Override
public Reserving_VersionStructure withCreated(OffsetDateTime value) {
setCreated(value);
return this;
}
@Override
public Reserving_VersionStructure withChanged(OffsetDateTime value) {
setChanged(value);
return this;
}
@Override
public Reserving_VersionStructure withModification(ModificationEnumeration value) {
setModification(value);
return this;
}
@Override
public Reserving_VersionStructure withVersion(String value) {
setVersion(value);
return this;
}
@Override
public Reserving_VersionStructure withStatus_BasicModificationDetailsGroup(StatusEnumeration value) {
setStatus_BasicModificationDetailsGroup(value);
return this;
}
@Override
public Reserving_VersionStructure withDerivedFromVersionRef_BasicModificationDetailsGroup(String value) {
setDerivedFromVersionRef_BasicModificationDetailsGroup(value);
return this;
}
@Override
public Reserving_VersionStructure withCompatibleWithVersionFrameVersionRef(String value) {
setCompatibleWithVersionFrameVersionRef(value);
return this;
}
@Override
public Reserving_VersionStructure withDerivedFromObjectRef(String value) {
setDerivedFromObjectRef(value);
return this;
}
@Override
public Reserving_VersionStructure withNameOfClass(String value) {
setNameOfClass(value);
return this;
}
@Override
public Reserving_VersionStructure withId(String value) {
setId(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);
}
}