
de.vdv.ojp20.siri.OptionalTrafficElementStructure 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.BigInteger;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import eu.datex2.schema._2_0rc1._2_0.Cause;
import eu.datex2.schema._2_0rc1._2_0.Comment;
import eu.datex2.schema._2_0rc1._2_0.ExtensionType;
import eu.datex2.schema._2_0rc1._2_0.GroupOfLocations;
import eu.datex2.schema._2_0rc1._2_0.Impact;
import eu.datex2.schema._2_0rc1._2_0.Management;
import eu.datex2.schema._2_0rc1._2_0.ProbabilityOfOccurrenceEnum;
import eu.datex2.schema._2_0rc1._2_0.Source;
import eu.datex2.schema._2_0rc1._2_0.Validity;
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 jakarta.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.opentripplanner.ojp.netex.OmitNullsToStringStyle;
import org.opentripplanner.ojp.time.XmlDateTime;
import org.opentripplanner.ojp.util.XmlDateTimeAdapter;
/**
* Java class for OptionalTrafficElementStructure complex type
.
*
* The following schema fragment specifies the expected content contained within this class.
*
* {@code
*
*
*
*
*
*
*
*
*
*
*
*
* }
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "OptionalTrafficElementStructure", propOrder = {
"situationRecordCreationReference",
"situationRecordCreationTime",
"situationRecordObservationTime",
"situationRecordVersion",
"situationRecordVersionTime",
"situationRecordFirstSupplierVersionTime",
"probabilityOfOccurrence",
"source",
"validity",
"impact",
"cause",
"generalPublicComment",
"nonGeneralPublicComment",
"groupOfLocations",
"management",
"situationRecordExtension",
"trafficElementExtension"
})
public abstract class OptionalTrafficElementStructure {
@XmlElement(required = true)
protected String situationRecordCreationReference;
@XmlElement(type = String.class)
@XmlJavaTypeAdapter(XmlDateTimeAdapter.class)
@XmlSchemaType(name = "dateTime")
protected XmlDateTime situationRecordCreationTime;
@XmlElement(type = String.class)
@XmlJavaTypeAdapter(XmlDateTimeAdapter.class)
@XmlSchemaType(name = "dateTime")
protected XmlDateTime situationRecordObservationTime;
@XmlSchemaType(name = "nonNegativeInteger")
protected BigInteger situationRecordVersion;
@XmlElement(type = String.class)
@XmlJavaTypeAdapter(XmlDateTimeAdapter.class)
@XmlSchemaType(name = "dateTime")
protected XmlDateTime situationRecordVersionTime;
@XmlElement(required = true, type = String.class)
@XmlJavaTypeAdapter(XmlDateTimeAdapter.class)
@XmlSchemaType(name = "dateTime")
protected XmlDateTime situationRecordFirstSupplierVersionTime;
@XmlSchemaType(name = "string")
protected ProbabilityOfOccurrenceEnum probabilityOfOccurrence;
@XmlElement(name = "Source")
protected Source source;
protected Validity validity;
protected Impact impact;
protected Cause cause;
protected List generalPublicComment;
protected List nonGeneralPublicComment;
protected GroupOfLocations groupOfLocations;
protected Management management;
protected ExtensionType situationRecordExtension;
protected ExtensionType trafficElementExtension;
/**
* Gets the value of the situationRecordCreationReference property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getSituationRecordCreationReference() {
return situationRecordCreationReference;
}
/**
* Sets the value of the situationRecordCreationReference property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setSituationRecordCreationReference(String value) {
this.situationRecordCreationReference = value;
}
/**
* Gets the value of the situationRecordCreationTime property.
*
* @return
* possible object is
* {@link String }
*
*/
public XmlDateTime getSituationRecordCreationTime() {
return situationRecordCreationTime;
}
/**
* Sets the value of the situationRecordCreationTime property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setSituationRecordCreationTime(XmlDateTime value) {
this.situationRecordCreationTime = value;
}
/**
* Gets the value of the situationRecordObservationTime property.
*
* @return
* possible object is
* {@link String }
*
*/
public XmlDateTime getSituationRecordObservationTime() {
return situationRecordObservationTime;
}
/**
* Sets the value of the situationRecordObservationTime property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setSituationRecordObservationTime(XmlDateTime value) {
this.situationRecordObservationTime = value;
}
/**
* Gets the value of the situationRecordVersion property.
*
* @return
* possible object is
* {@link BigInteger }
*
*/
public BigInteger getSituationRecordVersion() {
return situationRecordVersion;
}
/**
* Sets the value of the situationRecordVersion property.
*
* @param value
* allowed object is
* {@link BigInteger }
*
*/
public void setSituationRecordVersion(BigInteger value) {
this.situationRecordVersion = value;
}
/**
* Gets the value of the situationRecordVersionTime property.
*
* @return
* possible object is
* {@link String }
*
*/
public XmlDateTime getSituationRecordVersionTime() {
return situationRecordVersionTime;
}
/**
* Sets the value of the situationRecordVersionTime property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setSituationRecordVersionTime(XmlDateTime value) {
this.situationRecordVersionTime = value;
}
/**
* Gets the value of the situationRecordFirstSupplierVersionTime property.
*
* @return
* possible object is
* {@link String }
*
*/
public XmlDateTime getSituationRecordFirstSupplierVersionTime() {
return situationRecordFirstSupplierVersionTime;
}
/**
* Sets the value of the situationRecordFirstSupplierVersionTime property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setSituationRecordFirstSupplierVersionTime(XmlDateTime value) {
this.situationRecordFirstSupplierVersionTime = value;
}
/**
* Gets the value of the probabilityOfOccurrence property.
*
* @return
* possible object is
* {@link ProbabilityOfOccurrenceEnum }
*
*/
public ProbabilityOfOccurrenceEnum getProbabilityOfOccurrence() {
return probabilityOfOccurrence;
}
/**
* Sets the value of the probabilityOfOccurrence property.
*
* @param value
* allowed object is
* {@link ProbabilityOfOccurrenceEnum }
*
*/
public void setProbabilityOfOccurrence(ProbabilityOfOccurrenceEnum value) {
this.probabilityOfOccurrence = value;
}
/**
* Gets the value of the source property.
*
* @return
* possible object is
* {@link Source }
*
*/
public Source getSource() {
return source;
}
/**
* Sets the value of the source property.
*
* @param value
* allowed object is
* {@link Source }
*
*/
public void setSource(Source value) {
this.source = value;
}
/**
* Gets the value of the validity property.
*
* @return
* possible object is
* {@link Validity }
*
*/
public Validity getValidity() {
return validity;
}
/**
* Sets the value of the validity property.
*
* @param value
* allowed object is
* {@link Validity }
*
*/
public void setValidity(Validity value) {
this.validity = value;
}
/**
* Gets the value of the impact property.
*
* @return
* possible object is
* {@link Impact }
*
*/
public Impact getImpact() {
return impact;
}
/**
* Sets the value of the impact property.
*
* @param value
* allowed object is
* {@link Impact }
*
*/
public void setImpact(Impact value) {
this.impact = value;
}
/**
* Gets the value of the cause property.
*
* @return
* possible object is
* {@link Cause }
*
*/
public Cause getCause() {
return cause;
}
/**
* Sets the value of the cause property.
*
* @param value
* allowed object is
* {@link Cause }
*
*/
public void setCause(Cause value) {
this.cause = value;
}
/**
* Gets the value of the generalPublicComment 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 generalPublicComment property.
*
*
* For example, to add a new item, do as follows:
*
*
* getGeneralPublicComment().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link Comment }
*
*
*
* @return
* The value of the generalPublicComment property.
*/
public List getGeneralPublicComment() {
if (generalPublicComment == null) {
generalPublicComment = new ArrayList<>();
}
return this.generalPublicComment;
}
/**
* Gets the value of the nonGeneralPublicComment 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 nonGeneralPublicComment property.
*
*
* For example, to add a new item, do as follows:
*
*
* getNonGeneralPublicComment().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link Comment }
*
*
*
* @return
* The value of the nonGeneralPublicComment property.
*/
public List getNonGeneralPublicComment() {
if (nonGeneralPublicComment == null) {
nonGeneralPublicComment = new ArrayList<>();
}
return this.nonGeneralPublicComment;
}
/**
* Gets the value of the groupOfLocations property.
*
* @return
* possible object is
* {@link GroupOfLocations }
*
*/
public GroupOfLocations getGroupOfLocations() {
return groupOfLocations;
}
/**
* Sets the value of the groupOfLocations property.
*
* @param value
* allowed object is
* {@link GroupOfLocations }
*
*/
public void setGroupOfLocations(GroupOfLocations value) {
this.groupOfLocations = value;
}
/**
* Gets the value of the management property.
*
* @return
* possible object is
* {@link Management }
*
*/
public Management getManagement() {
return management;
}
/**
* Sets the value of the management property.
*
* @param value
* allowed object is
* {@link Management }
*
*/
public void setManagement(Management value) {
this.management = value;
}
/**
* Gets the value of the situationRecordExtension property.
*
* @return
* possible object is
* {@link ExtensionType }
*
*/
public ExtensionType getSituationRecordExtension() {
return situationRecordExtension;
}
/**
* Sets the value of the situationRecordExtension property.
*
* @param value
* allowed object is
* {@link ExtensionType }
*
*/
public void setSituationRecordExtension(ExtensionType value) {
this.situationRecordExtension = value;
}
/**
* Gets the value of the trafficElementExtension property.
*
* @return
* possible object is
* {@link ExtensionType }
*
*/
public ExtensionType getTrafficElementExtension() {
return trafficElementExtension;
}
/**
* Sets the value of the trafficElementExtension property.
*
* @param value
* allowed object is
* {@link ExtensionType }
*
*/
public void setTrafficElementExtension(ExtensionType value) {
this.trafficElementExtension = value;
}
public OptionalTrafficElementStructure withSituationRecordCreationReference(String value) {
setSituationRecordCreationReference(value);
return this;
}
public OptionalTrafficElementStructure withSituationRecordCreationTime(XmlDateTime value) {
setSituationRecordCreationTime(value);
return this;
}
public OptionalTrafficElementStructure withSituationRecordObservationTime(XmlDateTime value) {
setSituationRecordObservationTime(value);
return this;
}
public OptionalTrafficElementStructure withSituationRecordVersion(BigInteger value) {
setSituationRecordVersion(value);
return this;
}
public OptionalTrafficElementStructure withSituationRecordVersionTime(XmlDateTime value) {
setSituationRecordVersionTime(value);
return this;
}
public OptionalTrafficElementStructure withSituationRecordFirstSupplierVersionTime(XmlDateTime value) {
setSituationRecordFirstSupplierVersionTime(value);
return this;
}
public OptionalTrafficElementStructure withProbabilityOfOccurrence(ProbabilityOfOccurrenceEnum value) {
setProbabilityOfOccurrence(value);
return this;
}
public OptionalTrafficElementStructure withSource(Source value) {
setSource(value);
return this;
}
public OptionalTrafficElementStructure withValidity(Validity value) {
setValidity(value);
return this;
}
public OptionalTrafficElementStructure withImpact(Impact value) {
setImpact(value);
return this;
}
public OptionalTrafficElementStructure withCause(Cause value) {
setCause(value);
return this;
}
public OptionalTrafficElementStructure withGeneralPublicComment(Comment... values) {
if (values!= null) {
for (Comment value: values) {
getGeneralPublicComment().add(value);
}
}
return this;
}
public OptionalTrafficElementStructure withGeneralPublicComment(Collection values) {
if (values!= null) {
getGeneralPublicComment().addAll(values);
}
return this;
}
public OptionalTrafficElementStructure withNonGeneralPublicComment(Comment... values) {
if (values!= null) {
for (Comment value: values) {
getNonGeneralPublicComment().add(value);
}
}
return this;
}
public OptionalTrafficElementStructure withNonGeneralPublicComment(Collection values) {
if (values!= null) {
getNonGeneralPublicComment().addAll(values);
}
return this;
}
public OptionalTrafficElementStructure withGroupOfLocations(GroupOfLocations value) {
setGroupOfLocations(value);
return this;
}
public OptionalTrafficElementStructure withManagement(Management value) {
setManagement(value);
return this;
}
public OptionalTrafficElementStructure withSituationRecordExtension(ExtensionType value) {
setSituationRecordExtension(value);
return this;
}
public OptionalTrafficElementStructure withTrafficElementExtension(ExtensionType value) {
setTrafficElementExtension(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);
}
}