
de.vdv.ojp20.ItModesStructure 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;
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;
/**
* Combinations of MODE and MODE OF OPERATION that should be covered as monomodal trips (or for the ACCESS LEGs). If no MODE OF OPERATION is added usually "own" is assumed. But the trip planner may add other relevant results (e.g., sharing, if sensible trips are possible).
*
* Java class for ItModesStructure complex type
.
*
* The following schema fragment specifies the expected content contained within this class.
*
* {@code
*
*
*
*
*
*
*
*
*
*
*
* }
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "ItModesStructure", propOrder = {
"personalMode",
"personalModeOfOperation",
"alternativeModeOfOperation"
})
public class ItModesStructure {
/**
* Relevant PERSONAL MODE to be used for the monomodal trip.
*
*/
@XmlElement(name = "PersonalMode", required = true)
@XmlSchemaType(name = "string")
protected PersonalModesEnumeration personalMode;
/**
* List of personal mobility offers for this MODE.
*
*/
@XmlElement(name = "PersonalModeOfOperation")
@XmlSchemaType(name = "string")
protected List personalModeOfOperation;
/**
* List of alternative mobility offers for this MODE.
*
*/
@XmlElement(name = "AlternativeModeOfOperation")
@XmlSchemaType(name = "string")
protected List alternativeModeOfOperation;
/**
* Relevant PERSONAL MODE to be used for the monomodal trip.
*
* @return
* possible object is
* {@link PersonalModesEnumeration }
*
*/
public PersonalModesEnumeration getPersonalMode() {
return personalMode;
}
/**
* Sets the value of the personalMode property.
*
* @param value
* allowed object is
* {@link PersonalModesEnumeration }
*
* @see #getPersonalMode()
*/
public void setPersonalMode(PersonalModesEnumeration value) {
this.personalMode = value;
}
/**
* List of personal mobility offers for this MODE.
*
* Gets the value of the personalModeOfOperation 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 personalModeOfOperation property.
*
*
* For example, to add a new item, do as follows:
*
*
* getPersonalModeOfOperation().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link PersonalModesOfOperationEnumeration }
*
*
*
* @return
* The value of the personalModeOfOperation property.
*/
public List getPersonalModeOfOperation() {
if (personalModeOfOperation == null) {
personalModeOfOperation = new ArrayList<>();
}
return this.personalModeOfOperation;
}
/**
* List of alternative mobility offers for this MODE.
*
* Gets the value of the alternativeModeOfOperation 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 alternativeModeOfOperation property.
*
*
* For example, to add a new item, do as follows:
*
*
* getAlternativeModeOfOperation().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link AlternativeModesOfOperationEnumeration }
*
*
*
* @return
* The value of the alternativeModeOfOperation property.
*/
public List getAlternativeModeOfOperation() {
if (alternativeModeOfOperation == null) {
alternativeModeOfOperation = new ArrayList<>();
}
return this.alternativeModeOfOperation;
}
public ItModesStructure withPersonalMode(PersonalModesEnumeration value) {
setPersonalMode(value);
return this;
}
public ItModesStructure withPersonalModeOfOperation(PersonalModesOfOperationEnumeration... values) {
if (values!= null) {
for (PersonalModesOfOperationEnumeration value: values) {
getPersonalModeOfOperation().add(value);
}
}
return this;
}
public ItModesStructure withPersonalModeOfOperation(Collection values) {
if (values!= null) {
getPersonalModeOfOperation().addAll(values);
}
return this;
}
public ItModesStructure withAlternativeModeOfOperation(AlternativeModesOfOperationEnumeration... values) {
if (values!= null) {
for (AlternativeModesOfOperationEnumeration value: values) {
getAlternativeModeOfOperation().add(value);
}
}
return this;
}
public ItModesStructure withAlternativeModeOfOperation(Collection values) {
if (values!= null) {
getAlternativeModeOfOperation().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);
}
}