
de.vdv.ojp20.siri.MonitoringValidityConditionStructure 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.siri;
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 org.apache.commons.lang3.builder.ToStringBuilder;
import org.opentripplanner.ojp.netex.OmitNullsToStringStyle;
/**
* Java class for MonitoringValidityConditionStructure complex type
.
*
* The following schema fragment specifies the expected content contained within this class.
*
* {@code
*
*
*
*
*
*
*
*
*
*
*
*
* }
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "MonitoringValidityConditionStructure", propOrder = {
"period",
"timeband",
"dayType",
"holidayType"
})
public class MonitoringValidityConditionStructure {
@XmlElement(name = "Period")
protected List period;
@XmlElement(name = "Timeband")
protected List timeband;
@XmlElement(name = "DayType")
@XmlSchemaType(name = "NMTOKEN")
protected List dayType;
@XmlElement(name = "HolidayType")
@XmlSchemaType(name = "NMTOKEN")
protected List holidayType;
/**
* Gets the value of the period 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 period property.
*
*
* For example, to add a new item, do as follows:
*
*
* getPeriod().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link HalfOpenTimestampOutputRangeStructure }
*
*
*
* @return
* The value of the period property.
*/
public List getPeriod() {
if (period == null) {
period = new ArrayList<>();
}
return this.period;
}
/**
* Gets the value of the timeband 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 timeband property.
*
*
* For example, to add a new item, do as follows:
*
*
* getTimeband().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link HalfOpenTimeRangeStructure }
*
*
*
* @return
* The value of the timeband property.
*/
public List getTimeband() {
if (timeband == null) {
timeband = new ArrayList<>();
}
return this.timeband;
}
/**
* Gets the value of the dayType 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 dayType property.
*
*
* For example, to add a new item, do as follows:
*
*
* getDayType().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link DaysOfWeekEnumerationx }
*
*
*
* @return
* The value of the dayType property.
*/
public List getDayType() {
if (dayType == null) {
dayType = new ArrayList<>();
}
return this.dayType;
}
/**
* Gets the value of the holidayType 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 holidayType property.
*
*
* For example, to add a new item, do as follows:
*
*
* getHolidayType().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link HolidayTypeEnumerationx }
*
*
*
* @return
* The value of the holidayType property.
*/
public List getHolidayType() {
if (holidayType == null) {
holidayType = new ArrayList<>();
}
return this.holidayType;
}
public MonitoringValidityConditionStructure withPeriod(HalfOpenTimestampOutputRangeStructure... values) {
if (values!= null) {
for (HalfOpenTimestampOutputRangeStructure value: values) {
getPeriod().add(value);
}
}
return this;
}
public MonitoringValidityConditionStructure withPeriod(Collection values) {
if (values!= null) {
getPeriod().addAll(values);
}
return this;
}
public MonitoringValidityConditionStructure withTimeband(HalfOpenTimeRangeStructure... values) {
if (values!= null) {
for (HalfOpenTimeRangeStructure value: values) {
getTimeband().add(value);
}
}
return this;
}
public MonitoringValidityConditionStructure withTimeband(Collection values) {
if (values!= null) {
getTimeband().addAll(values);
}
return this;
}
public MonitoringValidityConditionStructure withDayType(DaysOfWeekEnumerationx... values) {
if (values!= null) {
for (DaysOfWeekEnumerationx value: values) {
getDayType().add(value);
}
}
return this;
}
public MonitoringValidityConditionStructure withDayType(Collection values) {
if (values!= null) {
getDayType().addAll(values);
}
return this;
}
public MonitoringValidityConditionStructure withHolidayType(HolidayTypeEnumerationx... values) {
if (values!= null) {
for (HolidayTypeEnumerationx value: values) {
getHolidayType().add(value);
}
}
return this;
}
public MonitoringValidityConditionStructure withHolidayType(Collection values) {
if (values!= null) {
getHolidayType().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);
}
}