uk.org.siri.siri.AbstractDiscoveryRequestStructure Maven / Gradle / Ivy
Show all versions of netex-java-model Show documentation
//
// 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 uk.org.siri.siri;
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.XmlElementRef;
import javax.xml.bind.annotation.XmlElementRefs;
import javax.xml.bind.annotation.XmlType;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.rutebanken.netex.OmitNullsToStringStyle;
/**
* Java class for AbstractDiscoveryRequestStructure complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="AbstractDiscoveryRequestStructure">
* <complexContent>
* <extension base="{http://www.siri.org.uk/siri}RequestStructure">
* <sequence>
* <group ref="{http://www.siri.org.uk/siri}RequestorEndpointGroup"/>
* </sequence>
* </extension>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "AbstractDiscoveryRequestStructure", propOrder = {
"rest"
})
public abstract class AbstractDiscoveryRequestStructure
extends RequestStructure
{
@XmlElementRefs({
@XmlElementRef(name = "Address", namespace = "http://www.siri.org.uk/siri", type = JAXBElement.class, required = false),
@XmlElementRef(name = "RequestorRef", namespace = "http://www.siri.org.uk/siri", type = JAXBElement.class, required = false),
@XmlElementRef(name = "MessageIdentifier", namespace = "http://www.siri.org.uk/siri", type = JAXBElement.class, required = false)
})
protected List> rest;
/**
* Gets the rest of the content model.
*
*
* You are getting this "catch-all" property because of the following reason:
* The field name "Address" is used by two different parts of a schema. See:
* line 44 of file:/home/en/git/rutebanken/netex-java-model/target/checkout/profile/NeTEx-XML-1.07/schema/xsd/siri/siri_requests-v2.0.xsd
* line 44 of file:/home/en/git/rutebanken/netex-java-model/target/checkout/profile/NeTEx-XML-1.07/schema/xsd/siri/siri_requests-v2.0.xsd
*
* To get rid of this property, apply a property customization to one
* of both of the following declarations to change their names:
* Gets the value of the rest 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 rest property.
*
*
* For example, to add a new item, do as follows:
*
* getRest().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link JAXBElement }{@code <}{@link String }{@code >}
* {@link JAXBElement }{@code <}{@link ParticipantRefStructure }{@code >}
* {@link JAXBElement }{@code <}{@link MessageQualifierStructure }{@code >}
*
*
*/
public List> getRest() {
if (rest == null) {
rest = new ArrayList>();
}
return this.rest;
}
public AbstractDiscoveryRequestStructure withRest(JAXBElement> ... values) {
if (values!= null) {
for (JAXBElement> value: values) {
getRest().add(value);
}
}
return this;
}
public AbstractDiscoveryRequestStructure withRest(Collection> values) {
if (values!= null) {
getRest().addAll(values);
}
return this;
}
@Override
public AbstractDiscoveryRequestStructure withAddress(String value) {
setAddress(value);
return this;
}
@Override
public AbstractDiscoveryRequestStructure withRequestorRef(ParticipantRefStructure value) {
setRequestorRef(value);
return this;
}
@Override
public AbstractDiscoveryRequestStructure withMessageIdentifier(MessageQualifierStructure value) {
setMessageIdentifier(value);
return this;
}
@Override
public AbstractDiscoveryRequestStructure withDelegatorAddress(String value) {
setDelegatorAddress(value);
return this;
}
@Override
public AbstractDiscoveryRequestStructure withDelegatorRef(ParticipantRefStructure value) {
setDelegatorRef(value);
return this;
}
@Override
public AbstractDiscoveryRequestStructure withAccountId(String value) {
setAccountId(value);
return this;
}
@Override
public AbstractDiscoveryRequestStructure withAccountKey(String value) {
setAccountKey(value);
return this;
}
@Override
public AbstractDiscoveryRequestStructure withRequestTimestamp(OffsetDateTime value) {
setRequestTimestamp(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);
}
}