
de.vdv.ojp20.siri.EquipmentAvailabilityStructure 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;
import uk.org.ifopt.ifopt.EquipmentRefStructure;
import uk.org.ifopt.ifopt.EquipmentStatusEnumeration;
import uk.org.ifopt.ifopt.EquipmentTypeRefStructure;
/**
* Java class for EquipmentAvailabilityStructure complex type
.
*
* The following schema fragment specifies the expected content contained within this class.
*
* {@code
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
* }
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "EquipmentAvailabilityStructure", propOrder = {
"equipmentRef",
"description",
"equipmentTypeRef",
"validityPeriod",
"equipmentStatus",
"equipmentFeatures",
"extensions"
})
public class EquipmentAvailabilityStructure {
@XmlElement(name = "EquipmentRef")
protected EquipmentRefStructure equipmentRef;
@XmlElement(name = "Description")
protected List description;
@XmlElement(name = "EquipmentTypeRef")
protected EquipmentTypeRefStructure equipmentTypeRef;
@XmlElement(name = "ValidityPeriod")
protected HalfOpenTimestampOutputRangeStructure validityPeriod;
@XmlElement(name = "EquipmentStatus", required = true, defaultValue = "notAvailable")
@XmlSchemaType(name = "NMTOKEN")
protected EquipmentStatusEnumeration equipmentStatus;
@XmlElement(name = "EquipmentFeatures")
protected EquipmentAvailabilityStructure.EquipmentFeatures equipmentFeatures;
@XmlElement(name = "Extensions")
protected ExtensionsStructure extensions;
/**
* Gets the value of the equipmentRef property.
*
* @return
* possible object is
* {@link EquipmentRefStructure }
*
*/
public EquipmentRefStructure getEquipmentRef() {
return equipmentRef;
}
/**
* Sets the value of the equipmentRef property.
*
* @param value
* allowed object is
* {@link EquipmentRefStructure }
*
*/
public void setEquipmentRef(EquipmentRefStructure value) {
this.equipmentRef = value;
}
/**
* Gets the value of the description 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 description property.
*
*
* For example, to add a new item, do as follows:
*
*
* getDescription().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link NaturalLanguageStringStructure }
*
*
*
* @return
* The value of the description property.
*/
public List getDescription() {
if (description == null) {
description = new ArrayList<>();
}
return this.description;
}
/**
* Gets the value of the equipmentTypeRef property.
*
* @return
* possible object is
* {@link EquipmentTypeRefStructure }
*
*/
public EquipmentTypeRefStructure getEquipmentTypeRef() {
return equipmentTypeRef;
}
/**
* Sets the value of the equipmentTypeRef property.
*
* @param value
* allowed object is
* {@link EquipmentTypeRefStructure }
*
*/
public void setEquipmentTypeRef(EquipmentTypeRefStructure value) {
this.equipmentTypeRef = value;
}
/**
* Gets the value of the validityPeriod property.
*
* @return
* possible object is
* {@link HalfOpenTimestampOutputRangeStructure }
*
*/
public HalfOpenTimestampOutputRangeStructure getValidityPeriod() {
return validityPeriod;
}
/**
* Sets the value of the validityPeriod property.
*
* @param value
* allowed object is
* {@link HalfOpenTimestampOutputRangeStructure }
*
*/
public void setValidityPeriod(HalfOpenTimestampOutputRangeStructure value) {
this.validityPeriod = value;
}
/**
* Gets the value of the equipmentStatus property.
*
* @return
* possible object is
* {@link EquipmentStatusEnumeration }
*
*/
public EquipmentStatusEnumeration getEquipmentStatus() {
return equipmentStatus;
}
/**
* Sets the value of the equipmentStatus property.
*
* @param value
* allowed object is
* {@link EquipmentStatusEnumeration }
*
*/
public void setEquipmentStatus(EquipmentStatusEnumeration value) {
this.equipmentStatus = value;
}
/**
* Gets the value of the equipmentFeatures property.
*
* @return
* possible object is
* {@link EquipmentAvailabilityStructure.EquipmentFeatures }
*
*/
public EquipmentAvailabilityStructure.EquipmentFeatures getEquipmentFeatures() {
return equipmentFeatures;
}
/**
* Sets the value of the equipmentFeatures property.
*
* @param value
* allowed object is
* {@link EquipmentAvailabilityStructure.EquipmentFeatures }
*
*/
public void setEquipmentFeatures(EquipmentAvailabilityStructure.EquipmentFeatures value) {
this.equipmentFeatures = value;
}
/**
* Gets the value of the extensions property.
*
* @return
* possible object is
* {@link ExtensionsStructure }
*
*/
public ExtensionsStructure getExtensions() {
return extensions;
}
/**
* Sets the value of the extensions property.
*
* @param value
* allowed object is
* {@link ExtensionsStructure }
*
*/
public void setExtensions(ExtensionsStructure value) {
this.extensions = value;
}
public EquipmentAvailabilityStructure withEquipmentRef(EquipmentRefStructure value) {
setEquipmentRef(value);
return this;
}
public EquipmentAvailabilityStructure withDescription(NaturalLanguageStringStructure... values) {
if (values!= null) {
for (NaturalLanguageStringStructure value: values) {
getDescription().add(value);
}
}
return this;
}
public EquipmentAvailabilityStructure withDescription(Collection values) {
if (values!= null) {
getDescription().addAll(values);
}
return this;
}
public EquipmentAvailabilityStructure withEquipmentTypeRef(EquipmentTypeRefStructure value) {
setEquipmentTypeRef(value);
return this;
}
public EquipmentAvailabilityStructure withValidityPeriod(HalfOpenTimestampOutputRangeStructure value) {
setValidityPeriod(value);
return this;
}
public EquipmentAvailabilityStructure withEquipmentStatus(EquipmentStatusEnumeration value) {
setEquipmentStatus(value);
return this;
}
public EquipmentAvailabilityStructure withEquipmentFeatures(EquipmentAvailabilityStructure.EquipmentFeatures value) {
setEquipmentFeatures(value);
return this;
}
public EquipmentAvailabilityStructure withExtensions(ExtensionsStructure value) {
setExtensions(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);
}
/**
* Java class for anonymous complex type
.
*
* The following schema fragment specifies the expected content contained within this class.
*
* {@code
*
*
*
*
*
*
*
*
*
* }
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"featureRef"
})
public static class EquipmentFeatures {
@XmlElement(name = "FeatureRef", required = true)
protected List featureRef;
/**
* Gets the value of the featureRef 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 featureRef property.
*
*
* For example, to add a new item, do as follows:
*
*
* getFeatureRef().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link FeatureRefStructure }
*
*
*
* @return
* The value of the featureRef property.
*/
public List getFeatureRef() {
if (featureRef == null) {
featureRef = new ArrayList<>();
}
return this.featureRef;
}
public EquipmentAvailabilityStructure.EquipmentFeatures withFeatureRef(FeatureRefStructure... values) {
if (values!= null) {
for (FeatureRefStructure value: values) {
getFeatureRef().add(value);
}
}
return this;
}
public EquipmentAvailabilityStructure.EquipmentFeatures withFeatureRef(Collection values) {
if (values!= null) {
getFeatureRef().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);
}
}
}