
de.vdv.ojp20.siri.FacilityConditionStructure 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.math.BigDecimal;
import java.math.BigInteger;
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.XmlType;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.opentripplanner.ojp.netex.OmitNullsToStringStyle;
/**
* Java class for FacilityConditionStructure complex type
.
*
* The following schema fragment specifies the expected content contained within this class.
*
* {@code
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
* }
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "FacilityConditionStructure", propOrder = {
"facility",
"facilityRef",
"facilityStatus",
"monitoredCounting",
"facilityUpdatedPosition",
"situationRef",
"remedy",
"monitoringInfo",
"validityPeriod",
"extensions"
})
public class FacilityConditionStructure {
@XmlElement(name = "Facility")
protected FacilityStructure facility;
@XmlElement(name = "FacilityRef")
protected FacilityRefStructure facilityRef;
@XmlElement(name = "FacilityStatus", required = true)
protected FacilityStatusStructure facilityStatus;
@XmlElement(name = "MonitoredCounting")
protected List monitoredCounting;
@XmlElement(name = "FacilityUpdatedPosition")
protected LocationStructure facilityUpdatedPosition;
@XmlElement(name = "SituationRef")
protected SituationRefStructure situationRef;
@XmlElement(name = "Remedy")
protected RemedyStructure remedy;
@XmlElement(name = "MonitoringInfo")
protected MonitoringInformationStructure monitoringInfo;
@XmlElement(name = "ValidityPeriod")
protected HalfOpenTimestampOutputRangeStructure validityPeriod;
@XmlElement(name = "Extensions")
protected ExtensionsStructure extensions;
/**
* Gets the value of the facility property.
*
* @return
* possible object is
* {@link FacilityStructure }
*
*/
public FacilityStructure getFacility() {
return facility;
}
/**
* Sets the value of the facility property.
*
* @param value
* allowed object is
* {@link FacilityStructure }
*
*/
public void setFacility(FacilityStructure value) {
this.facility = value;
}
/**
* Gets the value of the facilityRef property.
*
* @return
* possible object is
* {@link FacilityRefStructure }
*
*/
public FacilityRefStructure getFacilityRef() {
return facilityRef;
}
/**
* Sets the value of the facilityRef property.
*
* @param value
* allowed object is
* {@link FacilityRefStructure }
*
*/
public void setFacilityRef(FacilityRefStructure value) {
this.facilityRef = value;
}
/**
* Gets the value of the facilityStatus property.
*
* @return
* possible object is
* {@link FacilityStatusStructure }
*
*/
public FacilityStatusStructure getFacilityStatus() {
return facilityStatus;
}
/**
* Sets the value of the facilityStatus property.
*
* @param value
* allowed object is
* {@link FacilityStatusStructure }
*
*/
public void setFacilityStatus(FacilityStatusStructure value) {
this.facilityStatus = value;
}
/**
* Gets the value of the monitoredCounting 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 monitoredCounting property.
*
*
* For example, to add a new item, do as follows:
*
*
* getMonitoredCounting().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link FacilityConditionStructure.MonitoredCounting }
*
*
*
* @return
* The value of the monitoredCounting property.
*/
public List getMonitoredCounting() {
if (monitoredCounting == null) {
monitoredCounting = new ArrayList<>();
}
return this.monitoredCounting;
}
/**
* Gets the value of the facilityUpdatedPosition property.
*
* @return
* possible object is
* {@link LocationStructure }
*
*/
public LocationStructure getFacilityUpdatedPosition() {
return facilityUpdatedPosition;
}
/**
* Sets the value of the facilityUpdatedPosition property.
*
* @param value
* allowed object is
* {@link LocationStructure }
*
*/
public void setFacilityUpdatedPosition(LocationStructure value) {
this.facilityUpdatedPosition = value;
}
/**
* Gets the value of the situationRef property.
*
* @return
* possible object is
* {@link SituationRefStructure }
*
*/
public SituationRefStructure getSituationRef() {
return situationRef;
}
/**
* Sets the value of the situationRef property.
*
* @param value
* allowed object is
* {@link SituationRefStructure }
*
*/
public void setSituationRef(SituationRefStructure value) {
this.situationRef = value;
}
/**
* Gets the value of the remedy property.
*
* @return
* possible object is
* {@link RemedyStructure }
*
*/
public RemedyStructure getRemedy() {
return remedy;
}
/**
* Sets the value of the remedy property.
*
* @param value
* allowed object is
* {@link RemedyStructure }
*
*/
public void setRemedy(RemedyStructure value) {
this.remedy = value;
}
/**
* Gets the value of the monitoringInfo property.
*
* @return
* possible object is
* {@link MonitoringInformationStructure }
*
*/
public MonitoringInformationStructure getMonitoringInfo() {
return monitoringInfo;
}
/**
* Sets the value of the monitoringInfo property.
*
* @param value
* allowed object is
* {@link MonitoringInformationStructure }
*
*/
public void setMonitoringInfo(MonitoringInformationStructure value) {
this.monitoringInfo = 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 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 FacilityConditionStructure withFacility(FacilityStructure value) {
setFacility(value);
return this;
}
public FacilityConditionStructure withFacilityRef(FacilityRefStructure value) {
setFacilityRef(value);
return this;
}
public FacilityConditionStructure withFacilityStatus(FacilityStatusStructure value) {
setFacilityStatus(value);
return this;
}
public FacilityConditionStructure withMonitoredCounting(FacilityConditionStructure.MonitoredCounting... values) {
if (values!= null) {
for (FacilityConditionStructure.MonitoredCounting value: values) {
getMonitoredCounting().add(value);
}
}
return this;
}
public FacilityConditionStructure withMonitoredCounting(Collection values) {
if (values!= null) {
getMonitoredCounting().addAll(values);
}
return this;
}
public FacilityConditionStructure withFacilityUpdatedPosition(LocationStructure value) {
setFacilityUpdatedPosition(value);
return this;
}
public FacilityConditionStructure withSituationRef(SituationRefStructure value) {
setSituationRef(value);
return this;
}
public FacilityConditionStructure withRemedy(RemedyStructure value) {
setRemedy(value);
return this;
}
public FacilityConditionStructure withMonitoringInfo(MonitoringInformationStructure value) {
setMonitoringInfo(value);
return this;
}
public FacilityConditionStructure withValidityPeriod(HalfOpenTimestampOutputRangeStructure value) {
setValidityPeriod(value);
return this;
}
public FacilityConditionStructure 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 = "")
public static class MonitoredCounting
extends MonitoredCountingStructure
{
@Override
public FacilityConditionStructure.MonitoredCounting withCountingType(CountingTypeEnumeration value) {
setCountingType(value);
return this;
}
@Override
public FacilityConditionStructure.MonitoredCounting withCountedFeatureUnit(CountedFeatureUnitEnumeration value) {
setCountedFeatureUnit(value);
return this;
}
@Override
public FacilityConditionStructure.MonitoredCounting withTypeOfCountedFeature(TypeOfValueStructure value) {
setTypeOfCountedFeature(value);
return this;
}
@Override
public FacilityConditionStructure.MonitoredCounting withCount(BigInteger value) {
setCount(value);
return this;
}
@Override
public FacilityConditionStructure.MonitoredCounting withPercentage(BigDecimal value) {
setPercentage(value);
return this;
}
@Override
public FacilityConditionStructure.MonitoredCounting withTrend(CountingTrendEnumeration value) {
setTrend(value);
return this;
}
@Override
public FacilityConditionStructure.MonitoredCounting withAccuracy(BigDecimal value) {
setAccuracy(value);
return this;
}
@Override
public FacilityConditionStructure.MonitoredCounting withDescription(NaturalLanguageStringStructure... values) {
if (values!= null) {
for (NaturalLanguageStringStructure value: values) {
getDescription().add(value);
}
}
return this;
}
@Override
public FacilityConditionStructure.MonitoredCounting withDescription(Collection values) {
if (values!= null) {
getDescription().addAll(values);
}
return this;
}
@Override
public FacilityConditionStructure.MonitoredCounting withCountedItemsIdList(MonitoredCountingStructure.CountedItemsIdList value) {
setCountedItemsIdList(value);
return this;
}
@Override
public FacilityConditionStructure.MonitoredCounting 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);
}
}
}