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

org.rutebanken.netex.model.JourneyAccounting_VersionStructure 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.BigDecimal;
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.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.NormalizedStringAdapter;
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 JourneyAccounting_VersionStructure complex type. * *

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

 * <complexType name="JourneyAccounting_VersionStructure">
 *   <complexContent>
 *     <extension base="{http://www.netex.org.uk/netex}Assignment_VersionStructure">
 *       <sequence>
 *         <group ref="{http://www.netex.org.uk/netex}JourneyAccountingGroup"/>
 *       </sequence>
 *     </extension>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "JourneyAccounting_VersionStructure", propOrder = { "accountedObjectRef", "organisationRef", "supplyContractRef", "accountingCode", "accountingType", "partial", "distance", "duration" }) @XmlSeeAlso({ JourneyAccounting.class }) public class JourneyAccounting_VersionStructure extends Assignment_VersionStructure { @XmlElement(name = "AccountedObjectRef") protected VersionOfObjectRefStructure accountedObjectRef; @XmlElement(name = "OrganisationRef") protected OrganisationRefStructure organisationRef; @XmlElement(name = "SupplyContractRef") protected SupplyContractRefStructure supplyContractRef; @XmlElement(name = "AccountingCode") @XmlJavaTypeAdapter(NormalizedStringAdapter.class) @XmlSchemaType(name = "normalizedString") protected String accountingCode; @XmlElement(name = "AccountingType", defaultValue = "contract") @XmlSchemaType(name = "NMTOKEN") protected JourneyAccountingEnumeration accountingType; @XmlElement(name = "Partial", type = Boolean.class, defaultValue = "false") protected List partial; @XmlElement(name = "Distance", defaultValue = "1") protected BigDecimal distance; @XmlElement(name = "Duration", type = String.class) @XmlJavaTypeAdapter(DurationXmlAdapter.class) @XmlSchemaType(name = "duration") protected Duration duration; /** * Gets the value of the accountedObjectRef property. * * @return * possible object is * {@link VersionOfObjectRefStructure } * */ public VersionOfObjectRefStructure getAccountedObjectRef() { return accountedObjectRef; } /** * Sets the value of the accountedObjectRef property. * * @param value * allowed object is * {@link VersionOfObjectRefStructure } * */ public void setAccountedObjectRef(VersionOfObjectRefStructure value) { this.accountedObjectRef = value; } /** * Gets the value of the organisationRef property. * * @return * possible object is * {@link OrganisationRefStructure } * */ public OrganisationRefStructure getOrganisationRef() { return organisationRef; } /** * Sets the value of the organisationRef property. * * @param value * allowed object is * {@link OrganisationRefStructure } * */ public void setOrganisationRef(OrganisationRefStructure value) { this.organisationRef = value; } /** * Gets the value of the supplyContractRef property. * * @return * possible object is * {@link SupplyContractRefStructure } * */ public SupplyContractRefStructure getSupplyContractRef() { return supplyContractRef; } /** * Sets the value of the supplyContractRef property. * * @param value * allowed object is * {@link SupplyContractRefStructure } * */ public void setSupplyContractRef(SupplyContractRefStructure value) { this.supplyContractRef = value; } /** * Gets the value of the accountingCode property. * * @return * possible object is * {@link String } * */ public String getAccountingCode() { return accountingCode; } /** * Sets the value of the accountingCode property. * * @param value * allowed object is * {@link String } * */ public void setAccountingCode(String value) { this.accountingCode = value; } /** * Gets the value of the accountingType property. * * @return * possible object is * {@link JourneyAccountingEnumeration } * */ public JourneyAccountingEnumeration getAccountingType() { return accountingType; } /** * Sets the value of the accountingType property. * * @param value * allowed object is * {@link JourneyAccountingEnumeration } * */ public void setAccountingType(JourneyAccountingEnumeration value) { this.accountingType = value; } /** * Gets the value of the partial 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 partial property. * *

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

     *    getPartial().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link Boolean } * * */ public List getPartial() { if (partial == null) { partial = new ArrayList(); } return this.partial; } /** * 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 duration property. * * @return * possible object is * {@link String } * */ public Duration getDuration() { return duration; } /** * Sets the value of the duration property. * * @param value * allowed object is * {@link String } * */ public void setDuration(Duration value) { this.duration = value; } public JourneyAccounting_VersionStructure withAccountedObjectRef(VersionOfObjectRefStructure value) { setAccountedObjectRef(value); return this; } public JourneyAccounting_VersionStructure withOrganisationRef(OrganisationRefStructure value) { setOrganisationRef(value); return this; } public JourneyAccounting_VersionStructure withSupplyContractRef(SupplyContractRefStructure value) { setSupplyContractRef(value); return this; } public JourneyAccounting_VersionStructure withAccountingCode(String value) { setAccountingCode(value); return this; } public JourneyAccounting_VersionStructure withAccountingType(JourneyAccountingEnumeration value) { setAccountingType(value); return this; } public JourneyAccounting_VersionStructure withPartial(Boolean... values) { if (values!= null) { for (Boolean value: values) { getPartial().add(value); } } return this; } public JourneyAccounting_VersionStructure withPartial(Collection values) { if (values!= null) { getPartial().addAll(values); } return this; } public JourneyAccounting_VersionStructure withDistance(BigDecimal value) { setDistance(value); return this; } public JourneyAccounting_VersionStructure withDuration(Duration value) { setDuration(value); return this; } @Override public JourneyAccounting_VersionStructure withName(MultilingualString value) { setName(value); return this; } @Override public JourneyAccounting_VersionStructure withDescription(MultilingualString value) { setDescription(value); return this; } @Override public JourneyAccounting_VersionStructure withOrder(BigInteger value) { setOrder(value); return this; } @Override public JourneyAccounting_VersionStructure withKeyList(KeyListStructure value) { setKeyList(value); return this; } @Override public JourneyAccounting_VersionStructure withExtensions(ExtensionsStructure value) { setExtensions(value); return this; } @Override public JourneyAccounting_VersionStructure withBrandingRef(BrandingRefStructure value) { setBrandingRef(value); return this; } @Override public JourneyAccounting_VersionStructure withAlternativeTexts(AlternativeTexts_RelStructure value) { setAlternativeTexts(value); return this; } @Override public JourneyAccounting_VersionStructure withResponsibilitySetRef(String value) { setResponsibilitySetRef(value); return this; } @Override public JourneyAccounting_VersionStructure withValidityConditions(ValidityConditions_RelStructure value) { setValidityConditions(value); return this; } @Override public JourneyAccounting_VersionStructure withValidBetween(ValidBetween... values) { if (values!= null) { for (ValidBetween value: values) { getValidBetween().add(value); } } return this; } @Override public JourneyAccounting_VersionStructure withValidBetween(Collection values) { if (values!= null) { getValidBetween().addAll(values); } return this; } @Override public JourneyAccounting_VersionStructure withDataSourceRef(String value) { setDataSourceRef(value); return this; } @Override public JourneyAccounting_VersionStructure withCreated(OffsetDateTime value) { setCreated(value); return this; } @Override public JourneyAccounting_VersionStructure withChanged(OffsetDateTime value) { setChanged(value); return this; } @Override public JourneyAccounting_VersionStructure withModification(ModificationEnumeration value) { setModification(value); return this; } @Override public JourneyAccounting_VersionStructure withVersion(String value) { setVersion(value); return this; } @Override public JourneyAccounting_VersionStructure withStatus_BasicModificationDetailsGroup(StatusEnumeration value) { setStatus_BasicModificationDetailsGroup(value); return this; } @Override public JourneyAccounting_VersionStructure withDerivedFromVersionRef_BasicModificationDetailsGroup(String value) { setDerivedFromVersionRef_BasicModificationDetailsGroup(value); return this; } @Override public JourneyAccounting_VersionStructure withCompatibleWithVersionFrameVersionRef(String value) { setCompatibleWithVersionFrameVersionRef(value); return this; } @Override public JourneyAccounting_VersionStructure withDerivedFromObjectRef(String value) { setDerivedFromObjectRef(value); return this; } @Override public JourneyAccounting_VersionStructure withNameOfClass(String value) { setNameOfClass(value); return this; } @Override public JourneyAccounting_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); } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy