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

org.rutebanken.netex.model.TrainComponent_DerivedViewStructure 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.math.BigInteger;
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.XmlList;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlSeeAlso;
import javax.xml.bind.annotation.XmlType;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.rutebanken.netex.OmitNullsToStringStyle;


/**
 * 

Java class for TrainComponent_DerivedViewStructure complex type. * *

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

 * <complexType name="TrainComponent_DerivedViewStructure">
 *   <complexContent>
 *     <extension base="{http://www.netex.org.uk/netex}DerivedViewStructure">
 *       <sequence>
 *         <group ref="{http://www.netex.org.uk/netex}TrainComponentViewGroup"/>
 *       </sequence>
 *       <attribute name="order" type="{http://www.w3.org/2001/XMLSchema}positiveInteger" />
 *     </extension>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "TrainComponent_DerivedViewStructure", propOrder = { "trainComponentRef", "label", "description", "trainElementRef", "fareClasses", "trainElementType" }) @XmlSeeAlso({ TrainComponentView.class }) public class TrainComponent_DerivedViewStructure extends DerivedViewStructure { @XmlElement(name = "TrainComponentRef") protected TrainComponentRefStructure trainComponentRef; @XmlElement(name = "Label") protected MultilingualString label; @XmlElement(name = "Description") protected MultilingualString description; @XmlElement(name = "TrainElementRef") protected TrainElementRefStructure trainElementRef; @XmlList @XmlElement(name = "FareClasses") protected List fareClasses; @XmlElement(name = "TrainElementType") @XmlSchemaType(name = "NMTOKEN") protected TrainElementTypeEnumeration trainElementType; @XmlAttribute(name = "order") @XmlSchemaType(name = "positiveInteger") protected BigInteger order; /** * Gets the value of the trainComponentRef property. * * @return * possible object is * {@link TrainComponentRefStructure } * */ public TrainComponentRefStructure getTrainComponentRef() { return trainComponentRef; } /** * Sets the value of the trainComponentRef property. * * @param value * allowed object is * {@link TrainComponentRefStructure } * */ public void setTrainComponentRef(TrainComponentRefStructure value) { this.trainComponentRef = value; } /** * Gets the value of the label property. * * @return * possible object is * {@link MultilingualString } * */ public MultilingualString getLabel() { return label; } /** * Sets the value of the label property. * * @param value * allowed object is * {@link MultilingualString } * */ public void setLabel(MultilingualString value) { this.label = 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 trainElementRef property. * * @return * possible object is * {@link TrainElementRefStructure } * */ public TrainElementRefStructure getTrainElementRef() { return trainElementRef; } /** * Sets the value of the trainElementRef property. * * @param value * allowed object is * {@link TrainElementRefStructure } * */ public void setTrainElementRef(TrainElementRefStructure value) { this.trainElementRef = value; } /** * Gets the value of the fareClasses 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 fareClasses property. * *

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

     *    getFareClasses().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link FareClassEnumeration } * * */ public List getFareClasses() { if (fareClasses == null) { fareClasses = new ArrayList(); } return this.fareClasses; } /** * Gets the value of the trainElementType property. * * @return * possible object is * {@link TrainElementTypeEnumeration } * */ public TrainElementTypeEnumeration getTrainElementType() { return trainElementType; } /** * Sets the value of the trainElementType property. * * @param value * allowed object is * {@link TrainElementTypeEnumeration } * */ public void setTrainElementType(TrainElementTypeEnumeration value) { this.trainElementType = value; } /** * Gets the value of the order property. * * @return * possible object is * {@link BigInteger } * */ public BigInteger getOrder() { return order; } /** * Sets the value of the order property. * * @param value * allowed object is * {@link BigInteger } * */ public void setOrder(BigInteger value) { this.order = value; } public TrainComponent_DerivedViewStructure withTrainComponentRef(TrainComponentRefStructure value) { setTrainComponentRef(value); return this; } public TrainComponent_DerivedViewStructure withLabel(MultilingualString value) { setLabel(value); return this; } public TrainComponent_DerivedViewStructure withDescription(MultilingualString value) { setDescription(value); return this; } public TrainComponent_DerivedViewStructure withTrainElementRef(TrainElementRefStructure value) { setTrainElementRef(value); return this; } public TrainComponent_DerivedViewStructure withFareClasses(FareClassEnumeration... values) { if (values!= null) { for (FareClassEnumeration value: values) { getFareClasses().add(value); } } return this; } public TrainComponent_DerivedViewStructure withFareClasses(Collection values) { if (values!= null) { getFareClasses().addAll(values); } return this; } public TrainComponent_DerivedViewStructure withTrainElementType(TrainElementTypeEnumeration value) { setTrainElementType(value); return this; } public TrainComponent_DerivedViewStructure withOrder(BigInteger value) { setOrder(value); return this; } @Override public TrainComponent_DerivedViewStructure withBrandingRef(BrandingRefStructure value) { setBrandingRef(value); return this; } @Override public TrainComponent_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