org.rutebanken.netex.model.Interchange_VersionStructure 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.Duration;
import java.time.OffsetDateTime;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import javax.xml.bind.JAXBElement;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlList;
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 Interchange_VersionStructure complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="Interchange_VersionStructure">
* <complexContent>
* <extension base="{http://www.netex.org.uk/netex}DataManagedObjectStructure">
* <sequence>
* <group ref="{http://www.netex.org.uk/netex}InterchangeGroup"/>
* </sequence>
* </extension>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "Interchange_VersionStructure", propOrder = {
"name",
"description",
"privateCode",
"externalInterchangeRef",
"connectionRef",
"priority",
"staySeated",
"crossBorder",
"planned",
"guaranteed",
"advertised",
"controlled",
"standardWaitTime",
"maximumWaitTime",
"maximumAutomaticWaitTime",
"standardTransferTime",
"minimumTransferTime",
"maximumTransferTime",
"controlCentreNotifyThreshold",
"transferModes",
"noticeAssignments"
})
@XmlSeeAlso({
Interchange.class,
ServiceJourneyInterchange_VersionStructure.class,
ServiceJourneyPatternInterchange_VersionStructure.class,
InterchangeRule_VersionStructure.class
})
public abstract class Interchange_VersionStructure
extends DataManagedObjectStructure
{
@XmlElement(name = "Name")
protected MultilingualString name;
@XmlElement(name = "Description")
protected MultilingualString description;
@XmlElement(name = "PrivateCode")
protected PrivateCodeStructure privateCode;
@XmlElement(name = "ExternalInterchangeRef")
protected ExternalObjectRefStructure externalInterchangeRef;
@XmlElement(name = "ConnectionRef")
protected ConnectionRefStructure connectionRef;
@XmlElement(name = "Priority")
protected BigInteger priority;
@XmlElement(name = "StaySeated", defaultValue = "false")
protected Boolean staySeated;
@XmlElement(name = "CrossBorder", defaultValue = "false")
protected Boolean crossBorder;
@XmlElement(name = "Planned", defaultValue = "true")
protected Boolean planned;
@XmlElement(name = "Guaranteed", defaultValue = "false")
protected Boolean guaranteed;
@XmlElement(name = "Advertised", defaultValue = "true")
protected Boolean advertised;
@XmlElement(name = "Controlled", defaultValue = "true")
protected Boolean controlled;
@XmlElement(name = "StandardWaitTime", type = String.class)
@XmlJavaTypeAdapter(DurationXmlAdapter.class)
@XmlSchemaType(name = "duration")
protected Duration standardWaitTime;
@XmlElement(name = "MaximumWaitTime", type = String.class)
@XmlJavaTypeAdapter(DurationXmlAdapter.class)
@XmlSchemaType(name = "duration")
protected Duration maximumWaitTime;
@XmlElement(name = "MaximumAutomaticWaitTime", type = String.class)
@XmlJavaTypeAdapter(DurationXmlAdapter.class)
@XmlSchemaType(name = "duration")
protected Duration maximumAutomaticWaitTime;
@XmlElement(name = "StandardTransferTime", type = String.class)
@XmlJavaTypeAdapter(DurationXmlAdapter.class)
@XmlSchemaType(name = "duration")
protected Duration standardTransferTime;
@XmlElement(name = "MinimumTransferTime", type = String.class)
@XmlJavaTypeAdapter(DurationXmlAdapter.class)
@XmlSchemaType(name = "duration")
protected Duration minimumTransferTime;
@XmlElement(name = "MaximumTransferTime", type = String.class)
@XmlJavaTypeAdapter(DurationXmlAdapter.class)
@XmlSchemaType(name = "duration")
protected Duration maximumTransferTime;
@XmlElement(name = "ControlCentreNotifyThreshold", type = String.class)
@XmlJavaTypeAdapter(DurationXmlAdapter.class)
@XmlSchemaType(name = "duration")
protected Duration controlCentreNotifyThreshold;
@XmlList
protected List transferModes;
protected Interchange_VersionStructure.NoticeAssignments noticeAssignments;
/**
* Gets the value of the name property.
*
* @return
* possible object is
* {@link MultilingualString }
*
*/
public MultilingualString getName() {
return name;
}
/**
* Sets the value of the name property.
*
* @param value
* allowed object is
* {@link MultilingualString }
*
*/
public void setName(MultilingualString value) {
this.name = value;
}
/**
* Gets the value of the description property.
*
* @return
* possible object is
* {@link MultilingualString }
*
*/
public MultilingualString getDescription() {
return description;
}
/**
* Sets the value of the description property.
*
* @param value
* allowed object is
* {@link MultilingualString }
*
*/
public void setDescription(MultilingualString value) {
this.description = value;
}
/**
* Gets the value of the privateCode property.
*
* @return
* possible object is
* {@link PrivateCodeStructure }
*
*/
public PrivateCodeStructure getPrivateCode() {
return privateCode;
}
/**
* Sets the value of the privateCode property.
*
* @param value
* allowed object is
* {@link PrivateCodeStructure }
*
*/
public void setPrivateCode(PrivateCodeStructure value) {
this.privateCode = value;
}
/**
* Gets the value of the externalInterchangeRef property.
*
* @return
* possible object is
* {@link ExternalObjectRefStructure }
*
*/
public ExternalObjectRefStructure getExternalInterchangeRef() {
return externalInterchangeRef;
}
/**
* Sets the value of the externalInterchangeRef property.
*
* @param value
* allowed object is
* {@link ExternalObjectRefStructure }
*
*/
public void setExternalInterchangeRef(ExternalObjectRefStructure value) {
this.externalInterchangeRef = value;
}
/**
* Gets the value of the connectionRef property.
*
* @return
* possible object is
* {@link ConnectionRefStructure }
*
*/
public ConnectionRefStructure getConnectionRef() {
return connectionRef;
}
/**
* Sets the value of the connectionRef property.
*
* @param value
* allowed object is
* {@link ConnectionRefStructure }
*
*/
public void setConnectionRef(ConnectionRefStructure value) {
this.connectionRef = value;
}
/**
* Gets the value of the priority property.
*
* @return
* possible object is
* {@link BigInteger }
*
*/
public BigInteger getPriority() {
return priority;
}
/**
* Sets the value of the priority property.
*
* @param value
* allowed object is
* {@link BigInteger }
*
*/
public void setPriority(BigInteger value) {
this.priority = value;
}
/**
* Gets the value of the staySeated property.
*
* @return
* possible object is
* {@link Boolean }
*
*/
public Boolean isStaySeated() {
return staySeated;
}
/**
* Sets the value of the staySeated property.
*
* @param value
* allowed object is
* {@link Boolean }
*
*/
public void setStaySeated(Boolean value) {
this.staySeated = value;
}
/**
* Gets the value of the crossBorder property.
*
* @return
* possible object is
* {@link Boolean }
*
*/
public Boolean isCrossBorder() {
return crossBorder;
}
/**
* Sets the value of the crossBorder property.
*
* @param value
* allowed object is
* {@link Boolean }
*
*/
public void setCrossBorder(Boolean value) {
this.crossBorder = value;
}
/**
* Gets the value of the planned property.
*
* @return
* possible object is
* {@link Boolean }
*
*/
public Boolean isPlanned() {
return planned;
}
/**
* Sets the value of the planned property.
*
* @param value
* allowed object is
* {@link Boolean }
*
*/
public void setPlanned(Boolean value) {
this.planned = value;
}
/**
* Gets the value of the guaranteed property.
*
* @return
* possible object is
* {@link Boolean }
*
*/
public Boolean isGuaranteed() {
return guaranteed;
}
/**
* Sets the value of the guaranteed property.
*
* @param value
* allowed object is
* {@link Boolean }
*
*/
public void setGuaranteed(Boolean value) {
this.guaranteed = value;
}
/**
* Gets the value of the advertised property.
*
* @return
* possible object is
* {@link Boolean }
*
*/
public Boolean isAdvertised() {
return advertised;
}
/**
* Sets the value of the advertised property.
*
* @param value
* allowed object is
* {@link Boolean }
*
*/
public void setAdvertised(Boolean value) {
this.advertised = value;
}
/**
* Gets the value of the controlled property.
*
* @return
* possible object is
* {@link Boolean }
*
*/
public Boolean isControlled() {
return controlled;
}
/**
* Sets the value of the controlled property.
*
* @param value
* allowed object is
* {@link Boolean }
*
*/
public void setControlled(Boolean value) {
this.controlled = value;
}
/**
* Gets the value of the standardWaitTime property.
*
* @return
* possible object is
* {@link String }
*
*/
public Duration getStandardWaitTime() {
return standardWaitTime;
}
/**
* Sets the value of the standardWaitTime property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setStandardWaitTime(Duration value) {
this.standardWaitTime = value;
}
/**
* Gets the value of the maximumWaitTime property.
*
* @return
* possible object is
* {@link String }
*
*/
public Duration getMaximumWaitTime() {
return maximumWaitTime;
}
/**
* Sets the value of the maximumWaitTime property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setMaximumWaitTime(Duration value) {
this.maximumWaitTime = value;
}
/**
* Gets the value of the maximumAutomaticWaitTime property.
*
* @return
* possible object is
* {@link String }
*
*/
public Duration getMaximumAutomaticWaitTime() {
return maximumAutomaticWaitTime;
}
/**
* Sets the value of the maximumAutomaticWaitTime property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setMaximumAutomaticWaitTime(Duration value) {
this.maximumAutomaticWaitTime = value;
}
/**
* Gets the value of the standardTransferTime property.
*
* @return
* possible object is
* {@link String }
*
*/
public Duration getStandardTransferTime() {
return standardTransferTime;
}
/**
* Sets the value of the standardTransferTime property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setStandardTransferTime(Duration value) {
this.standardTransferTime = value;
}
/**
* Gets the value of the minimumTransferTime property.
*
* @return
* possible object is
* {@link String }
*
*/
public Duration getMinimumTransferTime() {
return minimumTransferTime;
}
/**
* Sets the value of the minimumTransferTime property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setMinimumTransferTime(Duration value) {
this.minimumTransferTime = value;
}
/**
* Gets the value of the maximumTransferTime property.
*
* @return
* possible object is
* {@link String }
*
*/
public Duration getMaximumTransferTime() {
return maximumTransferTime;
}
/**
* Sets the value of the maximumTransferTime property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setMaximumTransferTime(Duration value) {
this.maximumTransferTime = value;
}
/**
* Gets the value of the controlCentreNotifyThreshold property.
*
* @return
* possible object is
* {@link String }
*
*/
public Duration getControlCentreNotifyThreshold() {
return controlCentreNotifyThreshold;
}
/**
* Sets the value of the controlCentreNotifyThreshold property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setControlCentreNotifyThreshold(Duration value) {
this.controlCentreNotifyThreshold = value;
}
/**
* Gets the value of the transferModes 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 transferModes property.
*
*
* For example, to add a new item, do as follows:
*
* getTransferModes().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link AccessModeEnumeration }
*
*
*/
public List getTransferModes() {
if (transferModes == null) {
transferModes = new ArrayList();
}
return this.transferModes;
}
/**
* Gets the value of the noticeAssignments property.
*
* @return
* possible object is
* {@link Interchange_VersionStructure.NoticeAssignments }
*
*/
public Interchange_VersionStructure.NoticeAssignments getNoticeAssignments() {
return noticeAssignments;
}
/**
* Sets the value of the noticeAssignments property.
*
* @param value
* allowed object is
* {@link Interchange_VersionStructure.NoticeAssignments }
*
*/
public void setNoticeAssignments(Interchange_VersionStructure.NoticeAssignments value) {
this.noticeAssignments = value;
}
public Interchange_VersionStructure withName(MultilingualString value) {
setName(value);
return this;
}
public Interchange_VersionStructure withDescription(MultilingualString value) {
setDescription(value);
return this;
}
public Interchange_VersionStructure withPrivateCode(PrivateCodeStructure value) {
setPrivateCode(value);
return this;
}
public Interchange_VersionStructure withExternalInterchangeRef(ExternalObjectRefStructure value) {
setExternalInterchangeRef(value);
return this;
}
public Interchange_VersionStructure withConnectionRef(ConnectionRefStructure value) {
setConnectionRef(value);
return this;
}
public Interchange_VersionStructure withPriority(BigInteger value) {
setPriority(value);
return this;
}
public Interchange_VersionStructure withStaySeated(Boolean value) {
setStaySeated(value);
return this;
}
public Interchange_VersionStructure withCrossBorder(Boolean value) {
setCrossBorder(value);
return this;
}
public Interchange_VersionStructure withPlanned(Boolean value) {
setPlanned(value);
return this;
}
public Interchange_VersionStructure withGuaranteed(Boolean value) {
setGuaranteed(value);
return this;
}
public Interchange_VersionStructure withAdvertised(Boolean value) {
setAdvertised(value);
return this;
}
public Interchange_VersionStructure withControlled(Boolean value) {
setControlled(value);
return this;
}
public Interchange_VersionStructure withStandardWaitTime(Duration value) {
setStandardWaitTime(value);
return this;
}
public Interchange_VersionStructure withMaximumWaitTime(Duration value) {
setMaximumWaitTime(value);
return this;
}
public Interchange_VersionStructure withMaximumAutomaticWaitTime(Duration value) {
setMaximumAutomaticWaitTime(value);
return this;
}
public Interchange_VersionStructure withStandardTransferTime(Duration value) {
setStandardTransferTime(value);
return this;
}
public Interchange_VersionStructure withMinimumTransferTime(Duration value) {
setMinimumTransferTime(value);
return this;
}
public Interchange_VersionStructure withMaximumTransferTime(Duration value) {
setMaximumTransferTime(value);
return this;
}
public Interchange_VersionStructure withControlCentreNotifyThreshold(Duration value) {
setControlCentreNotifyThreshold(value);
return this;
}
public Interchange_VersionStructure withTransferModes(AccessModeEnumeration... values) {
if (values!= null) {
for (AccessModeEnumeration value: values) {
getTransferModes().add(value);
}
}
return this;
}
public Interchange_VersionStructure withTransferModes(Collection values) {
if (values!= null) {
getTransferModes().addAll(values);
}
return this;
}
public Interchange_VersionStructure withNoticeAssignments(Interchange_VersionStructure.NoticeAssignments value) {
setNoticeAssignments(value);
return this;
}
@Override
public Interchange_VersionStructure withKeyList(KeyListStructure value) {
setKeyList(value);
return this;
}
@Override
public Interchange_VersionStructure withExtensions(ExtensionsStructure value) {
setExtensions(value);
return this;
}
@Override
public Interchange_VersionStructure withBrandingRef(BrandingRefStructure value) {
setBrandingRef(value);
return this;
}
@Override
public Interchange_VersionStructure withAlternativeTexts(AlternativeTexts_RelStructure value) {
setAlternativeTexts(value);
return this;
}
@Override
public Interchange_VersionStructure withResponsibilitySetRef(String value) {
setResponsibilitySetRef(value);
return this;
}
@Override
public Interchange_VersionStructure withValidityConditions(ValidityConditions_RelStructure value) {
setValidityConditions(value);
return this;
}
@Override
public Interchange_VersionStructure withValidBetween(ValidBetween... values) {
if (values!= null) {
for (ValidBetween value: values) {
getValidBetween().add(value);
}
}
return this;
}
@Override
public Interchange_VersionStructure withValidBetween(Collection values) {
if (values!= null) {
getValidBetween().addAll(values);
}
return this;
}
@Override
public Interchange_VersionStructure withDataSourceRef(String value) {
setDataSourceRef(value);
return this;
}
@Override
public Interchange_VersionStructure withCreated(OffsetDateTime value) {
setCreated(value);
return this;
}
@Override
public Interchange_VersionStructure withChanged(OffsetDateTime value) {
setChanged(value);
return this;
}
@Override
public Interchange_VersionStructure withModification(ModificationEnumeration value) {
setModification(value);
return this;
}
@Override
public Interchange_VersionStructure withVersion(String value) {
setVersion(value);
return this;
}
@Override
public Interchange_VersionStructure withStatus_BasicModificationDetailsGroup(StatusEnumeration value) {
setStatus_BasicModificationDetailsGroup(value);
return this;
}
@Override
public Interchange_VersionStructure withDerivedFromVersionRef_BasicModificationDetailsGroup(String value) {
setDerivedFromVersionRef_BasicModificationDetailsGroup(value);
return this;
}
@Override
public Interchange_VersionStructure withCompatibleWithVersionFrameVersionRef(String value) {
setCompatibleWithVersionFrameVersionRef(value);
return this;
}
@Override
public Interchange_VersionStructure withDerivedFromObjectRef(String value) {
setDerivedFromObjectRef(value);
return this;
}
@Override
public Interchange_VersionStructure withNameOfClass(String value) {
setNameOfClass(value);
return this;
}
@Override
public Interchange_VersionStructure 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>
* <extension base="{http://www.netex.org.uk/netex}noticeAssignments_RelStructure">
* </extension>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "")
public static class NoticeAssignments
extends NoticeAssignments_RelStructure
{
@Override
public Interchange_VersionStructure.NoticeAssignments withNoticeAssignment_OrNoticeAssignmentView(JAXBElement> ... values) {
if (values!= null) {
for (JAXBElement> value: values) {
getNoticeAssignment_OrNoticeAssignmentView().add(value);
}
}
return this;
}
@Override
public Interchange_VersionStructure.NoticeAssignments withNoticeAssignment_OrNoticeAssignmentView(Collection> values) {
if (values!= null) {
getNoticeAssignment_OrNoticeAssignmentView().addAll(values);
}
return this;
}
@Override
public Interchange_VersionStructure.NoticeAssignments withModificationSet(ModificationSetEnumeration value) {
setModificationSet(value);
return this;
}
@Override
public Interchange_VersionStructure.NoticeAssignments 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);
}
}
}