public class DiscountRightRefs_RelStructure extends OneToManyRelationshipStructure
Java class for discountRightRefs_RelStructure complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="discountRightRefs_RelStructure">
<complexContent>
<extension base="{http://www.netex.org.uk/netex}oneToManyRelationshipStructure">
<choice maxOccurs="unbounded">
<element ref="{http://www.netex.org.uk/netex}SaleDiscountRightRef"/>
<element ref="{http://www.netex.org.uk/netex}UsageDiscountRightRef"/>
</choice>
</extension>
</complexContent>
</complexType>
| Modifier and Type | Field and Description |
|---|---|
protected List<JAXBElement<? extends FareProductRefStructure>> |
saleDiscountRightRefOrUsageDiscountRightRef |
modificationSetid| Constructor and Description |
|---|
DiscountRightRefs_RelStructure() |
| Modifier and Type | Method and Description |
|---|---|
List<JAXBElement<? extends FareProductRefStructure>> |
getSaleDiscountRightRefOrUsageDiscountRightRef()
Gets the value of the saleDiscountRightRefOrUsageDiscountRightRef property.
|
String |
toString()
Generates a String representation of the contents of this type.
|
DiscountRightRefs_RelStructure |
withId(String value) |
DiscountRightRefs_RelStructure |
withModificationSet(ModificationSetEnumeration value) |
DiscountRightRefs_RelStructure |
withSaleDiscountRightRefOrUsageDiscountRightRef(Collection<JAXBElement<? extends FareProductRefStructure>> values) |
DiscountRightRefs_RelStructure |
withSaleDiscountRightRefOrUsageDiscountRightRef(JAXBElement<? extends FareProductRefStructure>... values) |
getModificationSet, setModificationSetgetId, setIdprotected List<JAXBElement<? extends FareProductRefStructure>> saleDiscountRightRefOrUsageDiscountRightRef
public List<JAXBElement<? extends FareProductRefStructure>> getSaleDiscountRightRefOrUsageDiscountRightRef()
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 saleDiscountRightRefOrUsageDiscountRightRef property.
For example, to add a new item, do as follows:
getSaleDiscountRightRefOrUsageDiscountRightRef().add(newItem);
Objects of the following type(s) are allowed in the list
JAXBElement<SaleDiscountRightRefStructure>
JAXBElement<UsageDiscountRightRefStructure>
JAXBElement<CappedDiscountRightRefStructure>
public DiscountRightRefs_RelStructure withSaleDiscountRightRefOrUsageDiscountRightRef(JAXBElement<? extends FareProductRefStructure>... values)
public DiscountRightRefs_RelStructure withSaleDiscountRightRefOrUsageDiscountRightRef(Collection<JAXBElement<? extends FareProductRefStructure>> values)
public DiscountRightRefs_RelStructure withModificationSet(ModificationSetEnumeration value)
withModificationSet in class OneToManyRelationshipStructurepublic DiscountRightRefs_RelStructure withId(String value)
withId in class OneToManyRelationshipStructurepublic String toString()
toString in class OneToManyRelationshipStructureCopyright © 2018 Entur AS. All rights reserved.