org.rutebanken.netex.model.RouteInstructions_RelStructure Maven / Gradle / Ivy
Show all versions of netex-java-model Show documentation
//
// 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.BigInteger;
import java.time.OffsetDateTime;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.rutebanken.netex.OmitNullsToStringStyle;
/**
* Java class for routeInstructions_RelStructure complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="routeInstructions_RelStructure">
* <complexContent>
* <extension base="{http://www.netex.org.uk/netex}strictContainmentAggregationStructure">
* <sequence>
* <element name="RouteInstruction" maxOccurs="unbounded">
* <complexType>
* <complexContent>
* <restriction base="{http://www.netex.org.uk/netex}RouteInstruction_VersionStructure">
* <sequence>
* <sequence>
* <group ref="{http://www.netex.org.uk/netex}EntityInVersionGroup" minOccurs="0"/>
* </sequence>
* <sequence>
* <group ref="{http://www.netex.org.uk/netex}DataManagedObjectGroup"/>
* </sequence>
* <sequence>
* <group ref="{http://www.netex.org.uk/netex}RouteInstructionGroup"/>
* </sequence>
* </sequence>
* <attribute name="id" type="{http://www.netex.org.uk/netex}RouteInstructionIdType" />
* </restriction>
* </complexContent>
* </complexType>
* </element>
* </sequence>
* </extension>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "routeInstructions_RelStructure", propOrder = {
"routeInstruction"
})
public class RouteInstructions_RelStructure
extends StrictContainmentAggregationStructure
{
@XmlElement(name = "RouteInstruction", required = true)
protected List routeInstruction;
/**
* Gets the value of the routeInstruction 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 routeInstruction property.
*
*
* For example, to add a new item, do as follows:
*
* getRouteInstruction().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link RouteInstructions_RelStructure.RouteInstruction }
*
*
*/
public List getRouteInstruction() {
if (routeInstruction == null) {
routeInstruction = new ArrayList();
}
return this.routeInstruction;
}
public RouteInstructions_RelStructure withRouteInstruction(RouteInstructions_RelStructure.RouteInstruction... values) {
if (values!= null) {
for (RouteInstructions_RelStructure.RouteInstruction value: values) {
getRouteInstruction().add(value);
}
}
return this;
}
public RouteInstructions_RelStructure withRouteInstruction(Collection values) {
if (values!= null) {
getRouteInstruction().addAll(values);
}
return this;
}
@Override
public RouteInstructions_RelStructure 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);
}
/**
* Java class for anonymous complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType>
* <complexContent>
* <restriction base="{http://www.netex.org.uk/netex}RouteInstruction_VersionStructure">
* <sequence>
* <sequence>
* <group ref="{http://www.netex.org.uk/netex}EntityInVersionGroup" minOccurs="0"/>
* </sequence>
* <sequence>
* <group ref="{http://www.netex.org.uk/netex}DataManagedObjectGroup"/>
* </sequence>
* <sequence>
* <group ref="{http://www.netex.org.uk/netex}RouteInstructionGroup"/>
* </sequence>
* </sequence>
* <attribute name="id" type="{http://www.netex.org.uk/netex}RouteInstructionIdType" />
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "")
public static class RouteInstruction
extends RouteInstruction_VersionStructure
{
@Override
public RouteInstructions_RelStructure.RouteInstruction withPointOnRouteRef(PointOnRouteRefStructure value) {
setPointOnRouteRef(value);
return this;
}
@Override
public RouteInstructions_RelStructure.RouteInstruction withInstruction(MultilingualString value) {
setInstruction(value);
return this;
}
@Override
public RouteInstructions_RelStructure.RouteInstruction withHeading(String value) {
setHeading(value);
return this;
}
@Override
public RouteInstructions_RelStructure.RouteInstruction withPathHeading(PathHeadingEnumeration value) {
setPathHeading(value);
return this;
}
@Override
public RouteInstructions_RelStructure.RouteInstruction withBearing(Float value) {
setBearing(value);
return this;
}
@Override
public RouteInstructions_RelStructure.RouteInstruction withTransition(TransitionEnumeration value) {
setTransition(value);
return this;
}
@Override
public RouteInstructions_RelStructure.RouteInstruction withRoadName(MultilingualString value) {
setRoadName(value);
return this;
}
@Override
public RouteInstructions_RelStructure.RouteInstruction withSimpleFeatureRef(SimpleFeatureRefStructure value) {
setSimpleFeatureRef(value);
return this;
}
@Override
public RouteInstructions_RelStructure.RouteInstruction withOrder(BigInteger value) {
setOrder(value);
return this;
}
@Override
public RouteInstructions_RelStructure.RouteInstruction withKeyList(KeyListStructure value) {
setKeyList(value);
return this;
}
@Override
public RouteInstructions_RelStructure.RouteInstruction withExtensions(ExtensionsStructure value) {
setExtensions(value);
return this;
}
@Override
public RouteInstructions_RelStructure.RouteInstruction withBrandingRef(BrandingRefStructure value) {
setBrandingRef(value);
return this;
}
@Override
public RouteInstructions_RelStructure.RouteInstruction withAlternativeTexts(AlternativeTexts_RelStructure value) {
setAlternativeTexts(value);
return this;
}
@Override
public RouteInstructions_RelStructure.RouteInstruction withResponsibilitySetRef(String value) {
setResponsibilitySetRef(value);
return this;
}
@Override
public RouteInstructions_RelStructure.RouteInstruction withValidityConditions(ValidityConditions_RelStructure value) {
setValidityConditions(value);
return this;
}
@Override
public RouteInstructions_RelStructure.RouteInstruction withValidBetween(ValidBetween... values) {
if (values!= null) {
for (ValidBetween value: values) {
getValidBetween().add(value);
}
}
return this;
}
@Override
public RouteInstructions_RelStructure.RouteInstruction withValidBetween(Collection values) {
if (values!= null) {
getValidBetween().addAll(values);
}
return this;
}
@Override
public RouteInstructions_RelStructure.RouteInstruction withDataSourceRef(String value) {
setDataSourceRef(value);
return this;
}
@Override
public RouteInstructions_RelStructure.RouteInstruction withCreated(OffsetDateTime value) {
setCreated(value);
return this;
}
@Override
public RouteInstructions_RelStructure.RouteInstruction withChanged(OffsetDateTime value) {
setChanged(value);
return this;
}
@Override
public RouteInstructions_RelStructure.RouteInstruction withModification(ModificationEnumeration value) {
setModification(value);
return this;
}
@Override
public RouteInstructions_RelStructure.RouteInstruction withVersion(String value) {
setVersion(value);
return this;
}
@Override
public RouteInstructions_RelStructure.RouteInstruction withStatus_BasicModificationDetailsGroup(StatusEnumeration value) {
setStatus_BasicModificationDetailsGroup(value);
return this;
}
@Override
public RouteInstructions_RelStructure.RouteInstruction withDerivedFromVersionRef_BasicModificationDetailsGroup(String value) {
setDerivedFromVersionRef_BasicModificationDetailsGroup(value);
return this;
}
@Override
public RouteInstructions_RelStructure.RouteInstruction withCompatibleWithVersionFrameVersionRef(String value) {
setCompatibleWithVersionFrameVersionRef(value);
return this;
}
@Override
public RouteInstructions_RelStructure.RouteInstruction withDerivedFromObjectRef(String value) {
setDerivedFromObjectRef(value);
return this;
}
@Override
public RouteInstructions_RelStructure.RouteInstruction withNameOfClass(String value) {
setNameOfClass(value);
return this;
}
@Override
public RouteInstructions_RelStructure.RouteInstruction 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);
}
}
}