
de.vdv.ojp20.siri.MonitoredCountingStructure 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.XmlSchemaType;
import jakarta.xml.bind.annotation.XmlSeeAlso;
import jakarta.xml.bind.annotation.XmlType;
import jakarta.xml.bind.annotation.adapters.CollapsedStringAdapter;
import jakarta.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.opentripplanner.ojp.netex.OmitNullsToStringStyle;
/**
* Java class for MonitoredCountingStructure complex type
.
*
* The following schema fragment specifies the expected content contained within this class.
*
* {@code
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
* }
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "MonitoredCountingStructure", propOrder = {
"countingType",
"countedFeatureUnit",
"typeOfCountedFeature",
"count",
"percentage",
"trend",
"accuracy",
"description",
"countedItemsIdList",
"extensions"
})
@XmlSeeAlso({
de.vdv.ojp20.siri.FacilityConditionStructure.MonitoredCounting.class
})
public class MonitoredCountingStructure {
@XmlElement(name = "CountingType", required = true)
@XmlSchemaType(name = "NMTOKEN")
protected CountingTypeEnumeration countingType;
@XmlElement(name = "CountedFeatureUnit")
@XmlSchemaType(name = "NMTOKEN")
protected CountedFeatureUnitEnumeration countedFeatureUnit;
@XmlElement(name = "TypeOfCountedFeature")
protected TypeOfValueStructure typeOfCountedFeature;
@XmlElement(name = "Count")
protected BigInteger count;
@XmlElement(name = "Percentage")
protected BigDecimal percentage;
@XmlElement(name = "Trend")
@XmlSchemaType(name = "NMTOKEN")
protected CountingTrendEnumeration trend;
@XmlElement(name = "Accuracy")
protected BigDecimal accuracy;
@XmlElement(name = "Description")
protected List description;
@XmlElement(name = "CountedItemsIdList")
protected MonitoredCountingStructure.CountedItemsIdList countedItemsIdList;
@XmlElement(name = "Extensions")
protected ExtensionsStructure extensions;
/**
* Gets the value of the countingType property.
*
* @return
* possible object is
* {@link CountingTypeEnumeration }
*
*/
public CountingTypeEnumeration getCountingType() {
return countingType;
}
/**
* Sets the value of the countingType property.
*
* @param value
* allowed object is
* {@link CountingTypeEnumeration }
*
*/
public void setCountingType(CountingTypeEnumeration value) {
this.countingType = value;
}
/**
* Gets the value of the countedFeatureUnit property.
*
* @return
* possible object is
* {@link CountedFeatureUnitEnumeration }
*
*/
public CountedFeatureUnitEnumeration getCountedFeatureUnit() {
return countedFeatureUnit;
}
/**
* Sets the value of the countedFeatureUnit property.
*
* @param value
* allowed object is
* {@link CountedFeatureUnitEnumeration }
*
*/
public void setCountedFeatureUnit(CountedFeatureUnitEnumeration value) {
this.countedFeatureUnit = value;
}
/**
* Gets the value of the typeOfCountedFeature property.
*
* @return
* possible object is
* {@link TypeOfValueStructure }
*
*/
public TypeOfValueStructure getTypeOfCountedFeature() {
return typeOfCountedFeature;
}
/**
* Sets the value of the typeOfCountedFeature property.
*
* @param value
* allowed object is
* {@link TypeOfValueStructure }
*
*/
public void setTypeOfCountedFeature(TypeOfValueStructure value) {
this.typeOfCountedFeature = value;
}
/**
* Gets the value of the count property.
*
* @return
* possible object is
* {@link BigInteger }
*
*/
public BigInteger getCount() {
return count;
}
/**
* Sets the value of the count property.
*
* @param value
* allowed object is
* {@link BigInteger }
*
*/
public void setCount(BigInteger value) {
this.count = value;
}
/**
* Gets the value of the percentage property.
*
* @return
* possible object is
* {@link BigDecimal }
*
*/
public BigDecimal getPercentage() {
return percentage;
}
/**
* Sets the value of the percentage property.
*
* @param value
* allowed object is
* {@link BigDecimal }
*
*/
public void setPercentage(BigDecimal value) {
this.percentage = value;
}
/**
* Gets the value of the trend property.
*
* @return
* possible object is
* {@link CountingTrendEnumeration }
*
*/
public CountingTrendEnumeration getTrend() {
return trend;
}
/**
* Sets the value of the trend property.
*
* @param value
* allowed object is
* {@link CountingTrendEnumeration }
*
*/
public void setTrend(CountingTrendEnumeration value) {
this.trend = value;
}
/**
* Gets the value of the accuracy property.
*
* @return
* possible object is
* {@link BigDecimal }
*
*/
public BigDecimal getAccuracy() {
return accuracy;
}
/**
* Sets the value of the accuracy property.
*
* @param value
* allowed object is
* {@link BigDecimal }
*
*/
public void setAccuracy(BigDecimal value) {
this.accuracy = 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 countedItemsIdList property.
*
* @return
* possible object is
* {@link MonitoredCountingStructure.CountedItemsIdList }
*
*/
public MonitoredCountingStructure.CountedItemsIdList getCountedItemsIdList() {
return countedItemsIdList;
}
/**
* Sets the value of the countedItemsIdList property.
*
* @param value
* allowed object is
* {@link MonitoredCountingStructure.CountedItemsIdList }
*
*/
public void setCountedItemsIdList(MonitoredCountingStructure.CountedItemsIdList value) {
this.countedItemsIdList = 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 MonitoredCountingStructure withCountingType(CountingTypeEnumeration value) {
setCountingType(value);
return this;
}
public MonitoredCountingStructure withCountedFeatureUnit(CountedFeatureUnitEnumeration value) {
setCountedFeatureUnit(value);
return this;
}
public MonitoredCountingStructure withTypeOfCountedFeature(TypeOfValueStructure value) {
setTypeOfCountedFeature(value);
return this;
}
public MonitoredCountingStructure withCount(BigInteger value) {
setCount(value);
return this;
}
public MonitoredCountingStructure withPercentage(BigDecimal value) {
setPercentage(value);
return this;
}
public MonitoredCountingStructure withTrend(CountingTrendEnumeration value) {
setTrend(value);
return this;
}
public MonitoredCountingStructure withAccuracy(BigDecimal value) {
setAccuracy(value);
return this;
}
public MonitoredCountingStructure withDescription(NaturalLanguageStringStructure... values) {
if (values!= null) {
for (NaturalLanguageStringStructure value: values) {
getDescription().add(value);
}
}
return this;
}
public MonitoredCountingStructure withDescription(Collection values) {
if (values!= null) {
getDescription().addAll(values);
}
return this;
}
public MonitoredCountingStructure withCountedItemsIdList(MonitoredCountingStructure.CountedItemsIdList value) {
setCountedItemsIdList(value);
return this;
}
public MonitoredCountingStructure 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 = {
"itemId"
})
public static class CountedItemsIdList {
@XmlElement(name = "ItemId", required = true)
@XmlJavaTypeAdapter(CollapsedStringAdapter.class)
@XmlSchemaType(name = "NMTOKEN")
protected List itemId;
/**
* Gets the value of the itemId 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 itemId property.
*
*
* For example, to add a new item, do as follows:
*
*
* getItemId().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link String }
*
*
*
* @return
* The value of the itemId property.
*/
public List getItemId() {
if (itemId == null) {
itemId = new ArrayList<>();
}
return this.itemId;
}
public MonitoredCountingStructure.CountedItemsIdList withItemId(String... values) {
if (values!= null) {
for (String value: values) {
getItemId().add(value);
}
}
return this;
}
public MonitoredCountingStructure.CountedItemsIdList withItemId(Collection values) {
if (values!= null) {
getItemId().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);
}
}
}