All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.rutebanken.netex.model.EntityInVersionStructure Maven / Gradle / Ivy

There is a newer version: 2.0.15
Show newest version
//
// 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.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.XmlAttribute;
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.NormalizedStringAdapter;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.rutebanken.netex.OmitNullsToStringStyle;
import org.rutebanken.util.OffsetDateTimeISO8601XmlAdapter;


/**
 * 

Java class for EntityInVersionStructure complex type. * *

The following schema fragment specifies the expected content contained within this class. * *

 * <complexType name="EntityInVersionStructure">
 *   <complexContent>
 *     <extension base="{http://www.netex.org.uk/netex}EntityStructure">
 *       <sequence>
 *         <group ref="{http://www.netex.org.uk/netex}EntityInVersionGroup" minOccurs="0"/>
 *       </sequence>
 *       <attGroup ref="{http://www.netex.org.uk/netex}BasicModificationDetailsGroup"/>
 *       <attribute name="dataSourceRef" type="{http://www.netex.org.uk/netex}DataSourceIdType" />
 *     </extension>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "EntityInVersionStructure", propOrder = { "validityConditions", "validBetween" }) @XmlSeeAlso({ SimplePoint_VersionStructure.class, VersionedChildStructure.class, DataManagedObjectStructure.class }) public class EntityInVersionStructure extends EntityStructure { protected ValidityConditions_RelStructure validityConditions; @XmlElement(name = "ValidBetween") protected List validBetween; @XmlAttribute(name = "dataSourceRef") @XmlJavaTypeAdapter(NormalizedStringAdapter.class) protected String dataSourceRef; @XmlAttribute(name = "created") @XmlJavaTypeAdapter(OffsetDateTimeISO8601XmlAdapter.class) @XmlSchemaType(name = "dateTime") protected OffsetDateTime created; @XmlAttribute(name = "changed") @XmlJavaTypeAdapter(OffsetDateTimeISO8601XmlAdapter.class) @XmlSchemaType(name = "dateTime") protected OffsetDateTime changed; @XmlAttribute(name = "modification") protected ModificationEnumeration modification; @XmlAttribute(name = "version") @XmlJavaTypeAdapter(NormalizedStringAdapter.class) protected String version; @XmlAttribute(name = "status") protected StatusEnumeration status_BasicModificationDetailsGroup; @XmlAttribute(name = "derivedFromVersionRef") @XmlJavaTypeAdapter(NormalizedStringAdapter.class) protected String derivedFromVersionRef_BasicModificationDetailsGroup; @XmlAttribute(name = "compatibleWithVersionFrameVersionRef") @XmlJavaTypeAdapter(NormalizedStringAdapter.class) protected String compatibleWithVersionFrameVersionRef; @XmlAttribute(name = "derivedFromObjectRef") @XmlJavaTypeAdapter(NormalizedStringAdapter.class) protected String derivedFromObjectRef; /** * Gets the value of the validityConditions property. * * @return * possible object is * {@link ValidityConditions_RelStructure } * */ public ValidityConditions_RelStructure getValidityConditions() { return validityConditions; } /** * Sets the value of the validityConditions property. * * @param value * allowed object is * {@link ValidityConditions_RelStructure } * */ public void setValidityConditions(ValidityConditions_RelStructure value) { this.validityConditions = value; } /** * Gets the value of the validBetween 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 validBetween property. * *

* For example, to add a new item, do as follows: *

     *    getValidBetween().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link ValidBetween } * * */ public List getValidBetween() { if (validBetween == null) { validBetween = new ArrayList(); } return this.validBetween; } /** * Gets the value of the dataSourceRef property. * * @return * possible object is * {@link String } * */ public String getDataSourceRef() { return dataSourceRef; } /** * Sets the value of the dataSourceRef property. * * @param value * allowed object is * {@link String } * */ public void setDataSourceRef(String value) { this.dataSourceRef = value; } /** * Gets the value of the created property. * * @return * possible object is * {@link String } * */ public OffsetDateTime getCreated() { return created; } /** * Sets the value of the created property. * * @param value * allowed object is * {@link String } * */ public void setCreated(OffsetDateTime value) { this.created = value; } /** * Gets the value of the changed property. * * @return * possible object is * {@link String } * */ public OffsetDateTime getChanged() { return changed; } /** * Sets the value of the changed property. * * @param value * allowed object is * {@link String } * */ public void setChanged(OffsetDateTime value) { this.changed = value; } /** * Gets the value of the modification property. * * @return * possible object is * {@link ModificationEnumeration } * */ public ModificationEnumeration getModification() { if (modification == null) { return ModificationEnumeration.NEW; } else { return modification; } } /** * Sets the value of the modification property. * * @param value * allowed object is * {@link ModificationEnumeration } * */ public void setModification(ModificationEnumeration value) { this.modification = value; } /** * Gets the value of the version property. * * @return * possible object is * {@link String } * */ public String getVersion() { return version; } /** * Sets the value of the version property. * * @param value * allowed object is * {@link String } * */ public void setVersion(String value) { this.version = value; } /** * Gets the value of the status_BasicModificationDetailsGroup property. * * @return * possible object is * {@link StatusEnumeration } * */ public StatusEnumeration getStatus_BasicModificationDetailsGroup() { if (status_BasicModificationDetailsGroup == null) { return StatusEnumeration.ACTIVE; } else { return status_BasicModificationDetailsGroup; } } /** * Sets the value of the status_BasicModificationDetailsGroup property. * * @param value * allowed object is * {@link StatusEnumeration } * */ public void setStatus_BasicModificationDetailsGroup(StatusEnumeration value) { this.status_BasicModificationDetailsGroup = value; } /** * Gets the value of the derivedFromVersionRef_BasicModificationDetailsGroup property. * * @return * possible object is * {@link String } * */ public String getDerivedFromVersionRef_BasicModificationDetailsGroup() { return derivedFromVersionRef_BasicModificationDetailsGroup; } /** * Sets the value of the derivedFromVersionRef_BasicModificationDetailsGroup property. * * @param value * allowed object is * {@link String } * */ public void setDerivedFromVersionRef_BasicModificationDetailsGroup(String value) { this.derivedFromVersionRef_BasicModificationDetailsGroup = value; } /** * Gets the value of the compatibleWithVersionFrameVersionRef property. * * @return * possible object is * {@link String } * */ public String getCompatibleWithVersionFrameVersionRef() { return compatibleWithVersionFrameVersionRef; } /** * Sets the value of the compatibleWithVersionFrameVersionRef property. * * @param value * allowed object is * {@link String } * */ public void setCompatibleWithVersionFrameVersionRef(String value) { this.compatibleWithVersionFrameVersionRef = value; } /** * Gets the value of the derivedFromObjectRef property. * * @return * possible object is * {@link String } * */ public String getDerivedFromObjectRef() { return derivedFromObjectRef; } /** * Sets the value of the derivedFromObjectRef property. * * @param value * allowed object is * {@link String } * */ public void setDerivedFromObjectRef(String value) { this.derivedFromObjectRef = value; } public EntityInVersionStructure withValidityConditions(ValidityConditions_RelStructure value) { setValidityConditions(value); return this; } public EntityInVersionStructure withValidBetween(ValidBetween... values) { if (values!= null) { for (ValidBetween value: values) { getValidBetween().add(value); } } return this; } public EntityInVersionStructure withValidBetween(Collection values) { if (values!= null) { getValidBetween().addAll(values); } return this; } public EntityInVersionStructure withDataSourceRef(String value) { setDataSourceRef(value); return this; } public EntityInVersionStructure withCreated(OffsetDateTime value) { setCreated(value); return this; } public EntityInVersionStructure withChanged(OffsetDateTime value) { setChanged(value); return this; } public EntityInVersionStructure withModification(ModificationEnumeration value) { setModification(value); return this; } public EntityInVersionStructure withVersion(String value) { setVersion(value); return this; } public EntityInVersionStructure withStatus_BasicModificationDetailsGroup(StatusEnumeration value) { setStatus_BasicModificationDetailsGroup(value); return this; } public EntityInVersionStructure withDerivedFromVersionRef_BasicModificationDetailsGroup(String value) { setDerivedFromVersionRef_BasicModificationDetailsGroup(value); return this; } public EntityInVersionStructure withCompatibleWithVersionFrameVersionRef(String value) { setCompatibleWithVersionFrameVersionRef(value); return this; } public EntityInVersionStructure withDerivedFromObjectRef(String value) { setDerivedFromObjectRef(value); return this; } @Override public EntityInVersionStructure withNameOfClass(String value) { setNameOfClass(value); return this; } @Override public EntityInVersionStructure 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