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

org.rutebanken.netex.model.CappingRule_VersionedChildStructure 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.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.XmlElementRef;
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 CappingRule_VersionedChildStructure complex type. * *

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

 * <complexType name="CappingRule_VersionedChildStructure">
 *   <complexContent>
 *     <extension base="{http://www.netex.org.uk/netex}PriceableObject_VersionStructure">
 *       <sequence>
 *         <group ref="{http://www.netex.org.uk/netex}CappingRuleGroup"/>
 *       </sequence>
 *     </extension>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "CappingRule_VersionedChildStructure", propOrder = { "maximumDistance", "cappingPeriod", "cappedDiscountRightRef", "preassignedFareProductRef", "validableElementRef", "validityParameterAssignments", "genericParameterAssignment", "genericParameterAssignmentInContext", "prices" }) @XmlSeeAlso({ CappingRule.class }) public class CappingRule_VersionedChildStructure extends PriceableObject_VersionStructure { @XmlElement(name = "MaximumDistance") protected BigDecimal maximumDistance; @XmlElement(name = "CappingPeriod", defaultValue = "day") @XmlSchemaType(name = "normalizedString") protected CappingPeriodEnumeration cappingPeriod; @XmlElement(name = "CappedDiscountRightRef") protected List cappedDiscountRightRef; @XmlElementRef(name = "PreassignedFareProductRef", namespace = "http://www.netex.org.uk/netex", type = JAXBElement.class, required = false) protected List> preassignedFareProductRef; @XmlElement(name = "ValidableElementRef") protected ValidableElementRefStructure validableElementRef; protected GenericParameterAssignments_RelStructure validityParameterAssignments; @XmlElement(name = "GenericParameterAssignment") protected GenericParameterAssignment genericParameterAssignment; @XmlElement(name = "GenericParameterAssignmentInContext") protected GenericParameterAssignmentInContext genericParameterAssignmentInContext; protected CappingRulePrices_RelStructure prices; /** * Gets the value of the maximumDistance property. * * @return * possible object is * {@link BigDecimal } * */ public BigDecimal getMaximumDistance() { return maximumDistance; } /** * Sets the value of the maximumDistance property. * * @param value * allowed object is * {@link BigDecimal } * */ public void setMaximumDistance(BigDecimal value) { this.maximumDistance = value; } /** * Gets the value of the cappingPeriod property. * * @return * possible object is * {@link CappingPeriodEnumeration } * */ public CappingPeriodEnumeration getCappingPeriod() { return cappingPeriod; } /** * Sets the value of the cappingPeriod property. * * @param value * allowed object is * {@link CappingPeriodEnumeration } * */ public void setCappingPeriod(CappingPeriodEnumeration value) { this.cappingPeriod = value; } /** * Gets the value of the cappedDiscountRightRef 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 cappedDiscountRightRef property. * *

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

     *    getCappedDiscountRightRef().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link CappedDiscountRightRefStructure } * * */ public List getCappedDiscountRightRef() { if (cappedDiscountRightRef == null) { cappedDiscountRightRef = new ArrayList(); } return this.cappedDiscountRightRef; } /** * Gets the value of the preassignedFareProductRef 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 preassignedFareProductRef property. * *

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

     *    getPreassignedFareProductRef().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link JAXBElement }{@code <}{@link PreassignedFareProductRefStructure }{@code >} * {@link JAXBElement }{@code <}{@link SupplementProductRefStructure }{@code >} * * */ public List> getPreassignedFareProductRef() { if (preassignedFareProductRef == null) { preassignedFareProductRef = new ArrayList>(); } return this.preassignedFareProductRef; } /** * Gets the value of the validableElementRef property. * * @return * possible object is * {@link ValidableElementRefStructure } * */ public ValidableElementRefStructure getValidableElementRef() { return validableElementRef; } /** * Sets the value of the validableElementRef property. * * @param value * allowed object is * {@link ValidableElementRefStructure } * */ public void setValidableElementRef(ValidableElementRefStructure value) { this.validableElementRef = value; } /** * Gets the value of the validityParameterAssignments property. * * @return * possible object is * {@link GenericParameterAssignments_RelStructure } * */ public GenericParameterAssignments_RelStructure getValidityParameterAssignments() { return validityParameterAssignments; } /** * Sets the value of the validityParameterAssignments property. * * @param value * allowed object is * {@link GenericParameterAssignments_RelStructure } * */ public void setValidityParameterAssignments(GenericParameterAssignments_RelStructure value) { this.validityParameterAssignments = value; } /** * Gets the value of the genericParameterAssignment property. * * @return * possible object is * {@link GenericParameterAssignment } * */ public GenericParameterAssignment getGenericParameterAssignment() { return genericParameterAssignment; } /** * Sets the value of the genericParameterAssignment property. * * @param value * allowed object is * {@link GenericParameterAssignment } * */ public void setGenericParameterAssignment(GenericParameterAssignment value) { this.genericParameterAssignment = value; } /** * Gets the value of the genericParameterAssignmentInContext property. * * @return * possible object is * {@link GenericParameterAssignmentInContext } * */ public GenericParameterAssignmentInContext getGenericParameterAssignmentInContext() { return genericParameterAssignmentInContext; } /** * Sets the value of the genericParameterAssignmentInContext property. * * @param value * allowed object is * {@link GenericParameterAssignmentInContext } * */ public void setGenericParameterAssignmentInContext(GenericParameterAssignmentInContext value) { this.genericParameterAssignmentInContext = value; } /** * Gets the value of the prices property. * * @return * possible object is * {@link CappingRulePrices_RelStructure } * */ public CappingRulePrices_RelStructure getPrices() { return prices; } /** * Sets the value of the prices property. * * @param value * allowed object is * {@link CappingRulePrices_RelStructure } * */ public void setPrices(CappingRulePrices_RelStructure value) { this.prices = value; } public CappingRule_VersionedChildStructure withMaximumDistance(BigDecimal value) { setMaximumDistance(value); return this; } public CappingRule_VersionedChildStructure withCappingPeriod(CappingPeriodEnumeration value) { setCappingPeriod(value); return this; } public CappingRule_VersionedChildStructure withCappedDiscountRightRef(CappedDiscountRightRefStructure... values) { if (values!= null) { for (CappedDiscountRightRefStructure value: values) { getCappedDiscountRightRef().add(value); } } return this; } public CappingRule_VersionedChildStructure withCappedDiscountRightRef(Collection values) { if (values!= null) { getCappedDiscountRightRef().addAll(values); } return this; } public CappingRule_VersionedChildStructure withPreassignedFareProductRef(JAXBElement ... values) { if (values!= null) { for (JAXBElement value: values) { getPreassignedFareProductRef().add(value); } } return this; } public CappingRule_VersionedChildStructure withPreassignedFareProductRef(Collection> values) { if (values!= null) { getPreassignedFareProductRef().addAll(values); } return this; } public CappingRule_VersionedChildStructure withValidableElementRef(ValidableElementRefStructure value) { setValidableElementRef(value); return this; } public CappingRule_VersionedChildStructure withValidityParameterAssignments(GenericParameterAssignments_RelStructure value) { setValidityParameterAssignments(value); return this; } public CappingRule_VersionedChildStructure withGenericParameterAssignment(GenericParameterAssignment value) { setGenericParameterAssignment(value); return this; } public CappingRule_VersionedChildStructure withGenericParameterAssignmentInContext(GenericParameterAssignmentInContext value) { setGenericParameterAssignmentInContext(value); return this; } public CappingRule_VersionedChildStructure withPrices(CappingRulePrices_RelStructure value) { setPrices(value); return this; } @Override public CappingRule_VersionedChildStructure withName(MultilingualString value) { setName(value); return this; } @Override public CappingRule_VersionedChildStructure withDescription(MultilingualString value) { setDescription(value); return this; } @Override public CappingRule_VersionedChildStructure withAlternativeNames(AlternativeNames_RelStructure value) { setAlternativeNames(value); return this; } @Override public CappingRule_VersionedChildStructure withNoticeAssignments(NoticeAssignments_RelStructure value) { setNoticeAssignments(value); return this; } @Override public CappingRule_VersionedChildStructure withPricingServiceRef(PricingServiceRefStructure value) { setPricingServiceRef(value); return this; } @Override public CappingRule_VersionedChildStructure withPricingRuleRef(JAXBElement value) { setPricingRuleRef(value); return this; } @Override public CappingRule_VersionedChildStructure withPriceGroups(PriceGroups_RelStructure value) { setPriceGroups(value); return this; } @Override public CappingRule_VersionedChildStructure withFareTables(FareTables_RelStructure value) { setFareTables(value); return this; } @Override public CappingRule_VersionedChildStructure withKeyList(KeyListStructure value) { setKeyList(value); return this; } @Override public CappingRule_VersionedChildStructure withExtensions(ExtensionsStructure value) { setExtensions(value); return this; } @Override public CappingRule_VersionedChildStructure withBrandingRef(BrandingRefStructure value) { setBrandingRef(value); return this; } @Override public CappingRule_VersionedChildStructure withAlternativeTexts(AlternativeTexts_RelStructure value) { setAlternativeTexts(value); return this; } @Override public CappingRule_VersionedChildStructure withResponsibilitySetRef(String value) { setResponsibilitySetRef(value); return this; } @Override public CappingRule_VersionedChildStructure withValidityConditions(ValidityConditions_RelStructure value) { setValidityConditions(value); return this; } @Override public CappingRule_VersionedChildStructure withValidBetween(ValidBetween... values) { if (values!= null) { for (ValidBetween value: values) { getValidBetween().add(value); } } return this; } @Override public CappingRule_VersionedChildStructure withValidBetween(Collection values) { if (values!= null) { getValidBetween().addAll(values); } return this; } @Override public CappingRule_VersionedChildStructure withDataSourceRef(String value) { setDataSourceRef(value); return this; } @Override public CappingRule_VersionedChildStructure withCreated(OffsetDateTime value) { setCreated(value); return this; } @Override public CappingRule_VersionedChildStructure withChanged(OffsetDateTime value) { setChanged(value); return this; } @Override public CappingRule_VersionedChildStructure withModification(ModificationEnumeration value) { setModification(value); return this; } @Override public CappingRule_VersionedChildStructure withVersion(String value) { setVersion(value); return this; } @Override public CappingRule_VersionedChildStructure withStatus_BasicModificationDetailsGroup(StatusEnumeration value) { setStatus_BasicModificationDetailsGroup(value); return this; } @Override public CappingRule_VersionedChildStructure withDerivedFromVersionRef_BasicModificationDetailsGroup(String value) { setDerivedFromVersionRef_BasicModificationDetailsGroup(value); return this; } @Override public CappingRule_VersionedChildStructure withCompatibleWithVersionFrameVersionRef(String value) { setCompatibleWithVersionFrameVersionRef(value); return this; } @Override public CappingRule_VersionedChildStructure withDerivedFromObjectRef(String value) { setDerivedFromObjectRef(value); return this; } @Override public CappingRule_VersionedChildStructure withNameOfClass(String value) { setNameOfClass(value); return this; } @Override public CappingRule_VersionedChildStructure 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