org.rutebanken.netex.model.OnwardServiceLink_DerivedViewStructure Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of netex-java-model Show documentation
Show all versions of netex-java-model Show documentation
Generates Java model from NeTEx XSDs using JAXB.
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.11
// See http://java.sun.com/xml/jaxb
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2017.09.21 at 10:53:23 AM CEST
//
package org.rutebanken.netex.model;
import java.math.BigDecimal;
import java.time.Duration;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlSeeAlso;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
import com.migesok.jaxb.adapter.javatime.DurationXmlAdapter;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.rutebanken.netex.OmitNullsToStringStyle;
/**
* Java class for OnwardServiceLink_DerivedViewStructure complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="OnwardServiceLink_DerivedViewStructure">
* <complexContent>
* <extension base="{http://www.netex.org.uk/netex}DerivedViewStructure">
* <sequence>
* <element ref="{http://www.netex.org.uk/netex}ServiceLinkInJourneyPattern" minOccurs="0"/>
* <element ref="{http://www.netex.org.uk/netex}ServiceLinkRef" minOccurs="0"/>
* <element name="ToPointRef" type="{http://www.netex.org.uk/netex}ScheduledStopPointRefStructure" minOccurs="0"/>
* <element name="Distance" type="{http://www.netex.org.uk/netex}DistanceType" minOccurs="0"/>
* <element name="RunTime" type="{http://www.w3.org/2001/XMLSchema}duration" minOccurs="0"/>
* </sequence>
* </extension>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "OnwardServiceLink_DerivedViewStructure", propOrder = {
"serviceLinkInJourneyPattern",
"serviceLinkRef",
"toPointRef",
"distance",
"runTime"
})
@XmlSeeAlso({
OnwardServiceLinkView.class
})
public class OnwardServiceLink_DerivedViewStructure
extends DerivedViewStructure
{
@XmlElement(name = "ServiceLinkInJourneyPattern")
protected ServiceLinkInJourneyPattern_VersionedChildStructure serviceLinkInJourneyPattern;
@XmlElement(name = "ServiceLinkRef")
protected ServiceLinkRefStructure serviceLinkRef;
@XmlElement(name = "ToPointRef")
protected ScheduledStopPointRefStructure toPointRef;
@XmlElement(name = "Distance")
protected BigDecimal distance;
@XmlElement(name = "RunTime", type = String.class)
@XmlJavaTypeAdapter(DurationXmlAdapter.class)
@XmlSchemaType(name = "duration")
protected Duration runTime;
/**
* Gets the value of the serviceLinkInJourneyPattern property.
*
* @return
* possible object is
* {@link ServiceLinkInJourneyPattern_VersionedChildStructure }
*
*/
public ServiceLinkInJourneyPattern_VersionedChildStructure getServiceLinkInJourneyPattern() {
return serviceLinkInJourneyPattern;
}
/**
* Sets the value of the serviceLinkInJourneyPattern property.
*
* @param value
* allowed object is
* {@link ServiceLinkInJourneyPattern_VersionedChildStructure }
*
*/
public void setServiceLinkInJourneyPattern(ServiceLinkInJourneyPattern_VersionedChildStructure value) {
this.serviceLinkInJourneyPattern = value;
}
/**
* Gets the value of the serviceLinkRef property.
*
* @return
* possible object is
* {@link ServiceLinkRefStructure }
*
*/
public ServiceLinkRefStructure getServiceLinkRef() {
return serviceLinkRef;
}
/**
* Sets the value of the serviceLinkRef property.
*
* @param value
* allowed object is
* {@link ServiceLinkRefStructure }
*
*/
public void setServiceLinkRef(ServiceLinkRefStructure value) {
this.serviceLinkRef = value;
}
/**
* Gets the value of the toPointRef property.
*
* @return
* possible object is
* {@link ScheduledStopPointRefStructure }
*
*/
public ScheduledStopPointRefStructure getToPointRef() {
return toPointRef;
}
/**
* Sets the value of the toPointRef property.
*
* @param value
* allowed object is
* {@link ScheduledStopPointRefStructure }
*
*/
public void setToPointRef(ScheduledStopPointRefStructure value) {
this.toPointRef = value;
}
/**
* Gets the value of the distance property.
*
* @return
* possible object is
* {@link BigDecimal }
*
*/
public BigDecimal getDistance() {
return distance;
}
/**
* Sets the value of the distance property.
*
* @param value
* allowed object is
* {@link BigDecimal }
*
*/
public void setDistance(BigDecimal value) {
this.distance = value;
}
/**
* Gets the value of the runTime property.
*
* @return
* possible object is
* {@link String }
*
*/
public Duration getRunTime() {
return runTime;
}
/**
* Sets the value of the runTime property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setRunTime(Duration value) {
this.runTime = value;
}
public OnwardServiceLink_DerivedViewStructure withServiceLinkInJourneyPattern(ServiceLinkInJourneyPattern_VersionedChildStructure value) {
setServiceLinkInJourneyPattern(value);
return this;
}
public OnwardServiceLink_DerivedViewStructure withServiceLinkRef(ServiceLinkRefStructure value) {
setServiceLinkRef(value);
return this;
}
public OnwardServiceLink_DerivedViewStructure withToPointRef(ScheduledStopPointRefStructure value) {
setToPointRef(value);
return this;
}
public OnwardServiceLink_DerivedViewStructure withDistance(BigDecimal value) {
setDistance(value);
return this;
}
public OnwardServiceLink_DerivedViewStructure withRunTime(Duration value) {
setRunTime(value);
return this;
}
@Override
public OnwardServiceLink_DerivedViewStructure withBrandingRef(BrandingRefStructure value) {
setBrandingRef(value);
return this;
}
@Override
public OnwardServiceLink_DerivedViewStructure withId(String value) {
setId(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);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy