
de.vdv.ojp20.siri.AffectedVehicleStructure 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 jakarta.xml.bind.annotation.adapters.CollapsedStringAdapter;
import jakarta.xml.bind.annotation.adapters.NormalizedStringAdapter;
import jakarta.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.opentripplanner.ojp.netex.OmitNullsToStringStyle;
import uk.org.ifopt.acsb.AccessibilityAssessmentStructure;
/**
* Java class for AffectedVehicleStructure complex type
.
*
* The following schema fragment specifies the expected content contained within this class.
*
* {@code
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
* }
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "AffectedVehicleStructure", propOrder = {
"vehicleRef",
"vehicleRegistrationNumberPlate",
"phoneNumber",
"ipAddress",
"radioAddress",
"framedVehicleJourneyRef",
"location",
"currentLocation",
"accessibilityAssessment",
"operatorRef",
"productCategoryRef",
"serviceFeatureRef",
"vehicleFeatureRef",
"trainBlockPart",
"blockRef",
"courseOfJourneyRef",
"inCongestion",
"inPanic",
"headwayService",
"extensions"
})
public class AffectedVehicleStructure {
@XmlElement(name = "VehicleRef", required = true)
protected VehicleRefStructure vehicleRef;
@XmlElement(name = "VehicleRegistrationNumberPlate")
@XmlJavaTypeAdapter(NormalizedStringAdapter.class)
@XmlSchemaType(name = "normalizedString")
protected List vehicleRegistrationNumberPlate;
@XmlElement(name = "PhoneNumber")
protected String phoneNumber;
@XmlElement(name = "IPAddress")
@XmlJavaTypeAdapter(CollapsedStringAdapter.class)
@XmlSchemaType(name = "NMTOKEN")
protected String ipAddress;
@XmlElement(name = "RadioAddress")
@XmlJavaTypeAdapter(CollapsedStringAdapter.class)
@XmlSchemaType(name = "NMTOKEN")
protected String radioAddress;
@XmlElement(name = "FramedVehicleJourneyRef")
protected FramedVehicleJourneyRefStructure framedVehicleJourneyRef;
@XmlElement(name = "Location")
protected LocationStructure location;
@XmlElement(name = "CurrentLocation")
protected LocationStructure currentLocation;
@XmlElement(name = "AccessibilityAssessment")
protected AccessibilityAssessmentStructure accessibilityAssessment;
@XmlElement(name = "OperatorRef")
protected OperatorRefStructure operatorRef;
@XmlElement(name = "ProductCategoryRef")
protected ProductCategoryRefStructure productCategoryRef;
@XmlElement(name = "ServiceFeatureRef")
protected List serviceFeatureRef;
@XmlElement(name = "VehicleFeatureRef")
protected List vehicleFeatureRef;
@XmlElement(name = "TrainBlockPart")
protected List trainBlockPart;
@XmlElement(name = "BlockRef")
protected BlockRefStructure blockRef;
@XmlElement(name = "CourseOfJourneyRef")
protected CourseOfJourneyRefStructure courseOfJourneyRef;
@XmlElement(name = "InCongestion")
protected Boolean inCongestion;
@XmlElement(name = "InPanic", defaultValue = "false")
protected Boolean inPanic;
@XmlElement(name = "HeadwayService", defaultValue = "false")
protected Boolean headwayService;
@XmlElement(name = "Extensions")
protected ExtensionsStructure extensions;
/**
* Gets the value of the vehicleRef property.
*
* @return
* possible object is
* {@link VehicleRefStructure }
*
*/
public VehicleRefStructure getVehicleRef() {
return vehicleRef;
}
/**
* Sets the value of the vehicleRef property.
*
* @param value
* allowed object is
* {@link VehicleRefStructure }
*
*/
public void setVehicleRef(VehicleRefStructure value) {
this.vehicleRef = value;
}
/**
* Gets the value of the vehicleRegistrationNumberPlate 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 vehicleRegistrationNumberPlate property.
*
*
* For example, to add a new item, do as follows:
*
*
* getVehicleRegistrationNumberPlate().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link String }
*
*
*
* @return
* The value of the vehicleRegistrationNumberPlate property.
*/
public List getVehicleRegistrationNumberPlate() {
if (vehicleRegistrationNumberPlate == null) {
vehicleRegistrationNumberPlate = new ArrayList<>();
}
return this.vehicleRegistrationNumberPlate;
}
/**
* Gets the value of the phoneNumber property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getPhoneNumber() {
return phoneNumber;
}
/**
* Sets the value of the phoneNumber property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setPhoneNumber(String value) {
this.phoneNumber = value;
}
/**
* Gets the value of the ipAddress property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getIPAddress() {
return ipAddress;
}
/**
* Sets the value of the ipAddress property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setIPAddress(String value) {
this.ipAddress = value;
}
/**
* Gets the value of the radioAddress property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getRadioAddress() {
return radioAddress;
}
/**
* Sets the value of the radioAddress property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setRadioAddress(String value) {
this.radioAddress = value;
}
/**
* Gets the value of the framedVehicleJourneyRef property.
*
* @return
* possible object is
* {@link FramedVehicleJourneyRefStructure }
*
*/
public FramedVehicleJourneyRefStructure getFramedVehicleJourneyRef() {
return framedVehicleJourneyRef;
}
/**
* Sets the value of the framedVehicleJourneyRef property.
*
* @param value
* allowed object is
* {@link FramedVehicleJourneyRefStructure }
*
*/
public void setFramedVehicleJourneyRef(FramedVehicleJourneyRefStructure value) {
this.framedVehicleJourneyRef = value;
}
/**
* Gets the value of the location property.
*
* @return
* possible object is
* {@link LocationStructure }
*
*/
public LocationStructure getLocation() {
return location;
}
/**
* Sets the value of the location property.
*
* @param value
* allowed object is
* {@link LocationStructure }
*
*/
public void setLocation(LocationStructure value) {
this.location = value;
}
/**
* Gets the value of the currentLocation property.
*
* @return
* possible object is
* {@link LocationStructure }
*
*/
public LocationStructure getCurrentLocation() {
return currentLocation;
}
/**
* Sets the value of the currentLocation property.
*
* @param value
* allowed object is
* {@link LocationStructure }
*
*/
public void setCurrentLocation(LocationStructure value) {
this.currentLocation = value;
}
/**
* Gets the value of the accessibilityAssessment property.
*
* @return
* possible object is
* {@link AccessibilityAssessmentStructure }
*
*/
public AccessibilityAssessmentStructure getAccessibilityAssessment() {
return accessibilityAssessment;
}
/**
* Sets the value of the accessibilityAssessment property.
*
* @param value
* allowed object is
* {@link AccessibilityAssessmentStructure }
*
*/
public void setAccessibilityAssessment(AccessibilityAssessmentStructure value) {
this.accessibilityAssessment = value;
}
/**
* Gets the value of the operatorRef property.
*
* @return
* possible object is
* {@link OperatorRefStructure }
*
*/
public OperatorRefStructure getOperatorRef() {
return operatorRef;
}
/**
* Sets the value of the operatorRef property.
*
* @param value
* allowed object is
* {@link OperatorRefStructure }
*
*/
public void setOperatorRef(OperatorRefStructure value) {
this.operatorRef = value;
}
/**
* Gets the value of the productCategoryRef property.
*
* @return
* possible object is
* {@link ProductCategoryRefStructure }
*
*/
public ProductCategoryRefStructure getProductCategoryRef() {
return productCategoryRef;
}
/**
* Sets the value of the productCategoryRef property.
*
* @param value
* allowed object is
* {@link ProductCategoryRefStructure }
*
*/
public void setProductCategoryRef(ProductCategoryRefStructure value) {
this.productCategoryRef = value;
}
/**
* Gets the value of the serviceFeatureRef 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 serviceFeatureRef property.
*
*
* For example, to add a new item, do as follows:
*
*
* getServiceFeatureRef().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link ServiceFeatureRefStructure }
*
*
*
* @return
* The value of the serviceFeatureRef property.
*/
public List getServiceFeatureRef() {
if (serviceFeatureRef == null) {
serviceFeatureRef = new ArrayList<>();
}
return this.serviceFeatureRef;
}
/**
* Gets the value of the vehicleFeatureRef 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 vehicleFeatureRef property.
*
*
* For example, to add a new item, do as follows:
*
*
* getVehicleFeatureRef().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link VehicleFeatureRefStructure }
*
*
*
* @return
* The value of the vehicleFeatureRef property.
*/
public List getVehicleFeatureRef() {
if (vehicleFeatureRef == null) {
vehicleFeatureRef = new ArrayList<>();
}
return this.vehicleFeatureRef;
}
/**
* Gets the value of the trainBlockPart 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 trainBlockPart property.
*
*
* For example, to add a new item, do as follows:
*
*
* getTrainBlockPart().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link TrainBlockPartStructure }
*
*
*
* @return
* The value of the trainBlockPart property.
*/
public List getTrainBlockPart() {
if (trainBlockPart == null) {
trainBlockPart = new ArrayList<>();
}
return this.trainBlockPart;
}
/**
* Gets the value of the blockRef property.
*
* @return
* possible object is
* {@link BlockRefStructure }
*
*/
public BlockRefStructure getBlockRef() {
return blockRef;
}
/**
* Sets the value of the blockRef property.
*
* @param value
* allowed object is
* {@link BlockRefStructure }
*
*/
public void setBlockRef(BlockRefStructure value) {
this.blockRef = value;
}
/**
* Gets the value of the courseOfJourneyRef property.
*
* @return
* possible object is
* {@link CourseOfJourneyRefStructure }
*
*/
public CourseOfJourneyRefStructure getCourseOfJourneyRef() {
return courseOfJourneyRef;
}
/**
* Sets the value of the courseOfJourneyRef property.
*
* @param value
* allowed object is
* {@link CourseOfJourneyRefStructure }
*
*/
public void setCourseOfJourneyRef(CourseOfJourneyRefStructure value) {
this.courseOfJourneyRef = value;
}
/**
* Gets the value of the inCongestion property.
*
* @return
* possible object is
* {@link Boolean }
*
*/
public Boolean isInCongestion() {
return inCongestion;
}
/**
* Sets the value of the inCongestion property.
*
* @param value
* allowed object is
* {@link Boolean }
*
*/
public void setInCongestion(Boolean value) {
this.inCongestion = value;
}
/**
* Gets the value of the inPanic property.
*
* @return
* possible object is
* {@link Boolean }
*
*/
public Boolean isInPanic() {
return inPanic;
}
/**
* Sets the value of the inPanic property.
*
* @param value
* allowed object is
* {@link Boolean }
*
*/
public void setInPanic(Boolean value) {
this.inPanic = value;
}
/**
* Gets the value of the headwayService property.
*
* @return
* possible object is
* {@link Boolean }
*
*/
public Boolean isHeadwayService() {
return headwayService;
}
/**
* Sets the value of the headwayService property.
*
* @param value
* allowed object is
* {@link Boolean }
*
*/
public void setHeadwayService(Boolean value) {
this.headwayService = 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 AffectedVehicleStructure withVehicleRef(VehicleRefStructure value) {
setVehicleRef(value);
return this;
}
public AffectedVehicleStructure withVehicleRegistrationNumberPlate(String... values) {
if (values!= null) {
for (String value: values) {
getVehicleRegistrationNumberPlate().add(value);
}
}
return this;
}
public AffectedVehicleStructure withVehicleRegistrationNumberPlate(Collection values) {
if (values!= null) {
getVehicleRegistrationNumberPlate().addAll(values);
}
return this;
}
public AffectedVehicleStructure withPhoneNumber(String value) {
setPhoneNumber(value);
return this;
}
public AffectedVehicleStructure withIPAddress(String value) {
setIPAddress(value);
return this;
}
public AffectedVehicleStructure withRadioAddress(String value) {
setRadioAddress(value);
return this;
}
public AffectedVehicleStructure withFramedVehicleJourneyRef(FramedVehicleJourneyRefStructure value) {
setFramedVehicleJourneyRef(value);
return this;
}
public AffectedVehicleStructure withLocation(LocationStructure value) {
setLocation(value);
return this;
}
public AffectedVehicleStructure withCurrentLocation(LocationStructure value) {
setCurrentLocation(value);
return this;
}
public AffectedVehicleStructure withAccessibilityAssessment(AccessibilityAssessmentStructure value) {
setAccessibilityAssessment(value);
return this;
}
public AffectedVehicleStructure withOperatorRef(OperatorRefStructure value) {
setOperatorRef(value);
return this;
}
public AffectedVehicleStructure withProductCategoryRef(ProductCategoryRefStructure value) {
setProductCategoryRef(value);
return this;
}
public AffectedVehicleStructure withServiceFeatureRef(ServiceFeatureRefStructure... values) {
if (values!= null) {
for (ServiceFeatureRefStructure value: values) {
getServiceFeatureRef().add(value);
}
}
return this;
}
public AffectedVehicleStructure withServiceFeatureRef(Collection values) {
if (values!= null) {
getServiceFeatureRef().addAll(values);
}
return this;
}
public AffectedVehicleStructure withVehicleFeatureRef(VehicleFeatureRefStructure... values) {
if (values!= null) {
for (VehicleFeatureRefStructure value: values) {
getVehicleFeatureRef().add(value);
}
}
return this;
}
public AffectedVehicleStructure withVehicleFeatureRef(Collection values) {
if (values!= null) {
getVehicleFeatureRef().addAll(values);
}
return this;
}
public AffectedVehicleStructure withTrainBlockPart(TrainBlockPartStructure... values) {
if (values!= null) {
for (TrainBlockPartStructure value: values) {
getTrainBlockPart().add(value);
}
}
return this;
}
public AffectedVehicleStructure withTrainBlockPart(Collection values) {
if (values!= null) {
getTrainBlockPart().addAll(values);
}
return this;
}
public AffectedVehicleStructure withBlockRef(BlockRefStructure value) {
setBlockRef(value);
return this;
}
public AffectedVehicleStructure withCourseOfJourneyRef(CourseOfJourneyRefStructure value) {
setCourseOfJourneyRef(value);
return this;
}
public AffectedVehicleStructure withInCongestion(Boolean value) {
setInCongestion(value);
return this;
}
public AffectedVehicleStructure withInPanic(Boolean value) {
setInPanic(value);
return this;
}
public AffectedVehicleStructure withHeadwayService(Boolean value) {
setHeadwayService(value);
return this;
}
public AffectedVehicleStructure 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);
}
}