
de.vdv.ojp20.siri.JourneyRelationStructure 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 org.apache.commons.lang3.builder.ToStringBuilder;
import org.opentripplanner.ojp.netex.OmitNullsToStringStyle;
/**
* Java class for JourneyRelationStructure complex type
.
*
* The following schema fragment specifies the expected content contained within this class.
*
* {@code
*
*
*
*
*
*
*
*
*
*
*
* }
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "JourneyRelationStructure", propOrder = {
"journeyRelationType",
"callInfo",
"journeyParts",
"relatedJourney"
})
public class JourneyRelationStructure {
@XmlElement(name = "JourneyRelationType", required = true)
@XmlSchemaType(name = "NMTOKEN")
protected JourneyRelationTypeEnumeration journeyRelationType;
@XmlElement(name = "CallInfo")
protected RelatedCallStructure callInfo;
@XmlElement(name = "JourneyParts")
protected JourneyRelationStructure.JourneyParts journeyParts;
@XmlElement(name = "RelatedJourney", required = true)
protected List relatedJourney;
/**
* Gets the value of the journeyRelationType property.
*
* @return
* possible object is
* {@link JourneyRelationTypeEnumeration }
*
*/
public JourneyRelationTypeEnumeration getJourneyRelationType() {
return journeyRelationType;
}
/**
* Sets the value of the journeyRelationType property.
*
* @param value
* allowed object is
* {@link JourneyRelationTypeEnumeration }
*
*/
public void setJourneyRelationType(JourneyRelationTypeEnumeration value) {
this.journeyRelationType = value;
}
/**
* Gets the value of the callInfo property.
*
* @return
* possible object is
* {@link RelatedCallStructure }
*
*/
public RelatedCallStructure getCallInfo() {
return callInfo;
}
/**
* Sets the value of the callInfo property.
*
* @param value
* allowed object is
* {@link RelatedCallStructure }
*
*/
public void setCallInfo(RelatedCallStructure value) {
this.callInfo = value;
}
/**
* Gets the value of the journeyParts property.
*
* @return
* possible object is
* {@link JourneyRelationStructure.JourneyParts }
*
*/
public JourneyRelationStructure.JourneyParts getJourneyParts() {
return journeyParts;
}
/**
* Sets the value of the journeyParts property.
*
* @param value
* allowed object is
* {@link JourneyRelationStructure.JourneyParts }
*
*/
public void setJourneyParts(JourneyRelationStructure.JourneyParts value) {
this.journeyParts = value;
}
/**
* Gets the value of the relatedJourney 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 relatedJourney property.
*
*
* For example, to add a new item, do as follows:
*
*
* getRelatedJourney().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link RelatedJourneyStructure }
*
*
*
* @return
* The value of the relatedJourney property.
*/
public List getRelatedJourney() {
if (relatedJourney == null) {
relatedJourney = new ArrayList<>();
}
return this.relatedJourney;
}
public JourneyRelationStructure withJourneyRelationType(JourneyRelationTypeEnumeration value) {
setJourneyRelationType(value);
return this;
}
public JourneyRelationStructure withCallInfo(RelatedCallStructure value) {
setCallInfo(value);
return this;
}
public JourneyRelationStructure withJourneyParts(JourneyRelationStructure.JourneyParts value) {
setJourneyParts(value);
return this;
}
public JourneyRelationStructure withRelatedJourney(RelatedJourneyStructure... values) {
if (values!= null) {
for (RelatedJourneyStructure value: values) {
getRelatedJourney().add(value);
}
}
return this;
}
public JourneyRelationStructure withRelatedJourney(Collection values) {
if (values!= null) {
getRelatedJourney().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);
}
/**
* 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 = {
"journeyPartInfo"
})
public static class JourneyParts {
@XmlElement(name = "JourneyPartInfo", required = true)
protected List journeyPartInfo;
/**
* Gets the value of the journeyPartInfo 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 journeyPartInfo property.
*
*
* For example, to add a new item, do as follows:
*
*
* getJourneyPartInfo().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link RelatedJourneyPartStructure }
*
*
*
* @return
* The value of the journeyPartInfo property.
*/
public List getJourneyPartInfo() {
if (journeyPartInfo == null) {
journeyPartInfo = new ArrayList<>();
}
return this.journeyPartInfo;
}
public JourneyRelationStructure.JourneyParts withJourneyPartInfo(RelatedJourneyPartStructure... values) {
if (values!= null) {
for (RelatedJourneyPartStructure value: values) {
getJourneyPartInfo().add(value);
}
}
return this;
}
public JourneyRelationStructure.JourneyParts withJourneyPartInfo(Collection values) {
if (values!= null) {
getJourneyPartInfo().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);
}
}
}