org.rutebanken.netex.model.PublicationDeliveryStructure Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of netex-java-model Show documentation
Show all versions of netex-java-model Show documentation
Generates Java model from NeTEx XSDs using JAXB.
//
// 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.time.Duration;
import java.time.OffsetDateTime;
import java.util.Collection;
import javax.xml.bind.JAXBElement;
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.XmlSchemaType;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
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;
import org.rutebanken.util.OffsetDateTimeISO8601XmlAdapter;
/**
* Java class for PublicationDeliveryStructure complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="PublicationDeliveryStructure">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <group ref="{http://www.netex.org.uk/netex}PublicationHeaderGroup"/>
* <group ref="{http://www.netex.org.uk/netex}PayloadGroup"/>
* </sequence>
* <attribute name="version" type="{http://www.w3.org/2001/XMLSchema}NMTOKEN" default="1.0" />
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "PublicationDeliveryStructure", propOrder = {
"publicationTimestamp",
"participantRef",
"publicationRequest",
"publicationRefreshInterval",
"description",
"dataObjects"
})
public class PublicationDeliveryStructure {
@XmlElement(name = "PublicationTimestamp", required = true, type = String.class)
@XmlJavaTypeAdapter(OffsetDateTimeISO8601XmlAdapter.class)
@XmlSchemaType(name = "dateTime")
protected OffsetDateTime publicationTimestamp;
@XmlElement(name = "ParticipantRef", required = true)
@XmlJavaTypeAdapter(CollapsedStringAdapter.class)
@XmlSchemaType(name = "NMTOKEN")
protected String participantRef;
@XmlElement(name = "PublicationRequest")
protected PublicationRequestStructure publicationRequest;
@XmlElement(name = "PublicationRefreshInterval", type = String.class)
@XmlJavaTypeAdapter(DurationXmlAdapter.class)
@XmlSchemaType(name = "duration")
protected Duration publicationRefreshInterval;
@XmlElement(name = "Description")
protected MultilingualString description;
protected PublicationDeliveryStructure.DataObjects dataObjects;
@XmlAttribute(name = "version")
@XmlJavaTypeAdapter(CollapsedStringAdapter.class)
@XmlSchemaType(name = "NMTOKEN")
protected String version;
/**
* Gets the value of the publicationTimestamp property.
*
* @return
* possible object is
* {@link String }
*
*/
public OffsetDateTime getPublicationTimestamp() {
return publicationTimestamp;
}
/**
* Sets the value of the publicationTimestamp property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setPublicationTimestamp(OffsetDateTime value) {
this.publicationTimestamp = value;
}
/**
* Gets the value of the participantRef property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getParticipantRef() {
return participantRef;
}
/**
* Sets the value of the participantRef property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setParticipantRef(String value) {
this.participantRef = value;
}
/**
* Gets the value of the publicationRequest property.
*
* @return
* possible object is
* {@link PublicationRequestStructure }
*
*/
public PublicationRequestStructure getPublicationRequest() {
return publicationRequest;
}
/**
* Sets the value of the publicationRequest property.
*
* @param value
* allowed object is
* {@link PublicationRequestStructure }
*
*/
public void setPublicationRequest(PublicationRequestStructure value) {
this.publicationRequest = value;
}
/**
* Gets the value of the publicationRefreshInterval property.
*
* @return
* possible object is
* {@link String }
*
*/
public Duration getPublicationRefreshInterval() {
return publicationRefreshInterval;
}
/**
* Sets the value of the publicationRefreshInterval property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setPublicationRefreshInterval(Duration value) {
this.publicationRefreshInterval = 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 dataObjects property.
*
* @return
* possible object is
* {@link PublicationDeliveryStructure.DataObjects }
*
*/
public PublicationDeliveryStructure.DataObjects getDataObjects() {
return dataObjects;
}
/**
* Sets the value of the dataObjects property.
*
* @param value
* allowed object is
* {@link PublicationDeliveryStructure.DataObjects }
*
*/
public void setDataObjects(PublicationDeliveryStructure.DataObjects value) {
this.dataObjects = value;
}
/**
* Gets the value of the version property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getVersion() {
if (version == null) {
return "1.0";
} else {
return version;
}
}
/**
* Sets the value of the version property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setVersion(String value) {
this.version = value;
}
public PublicationDeliveryStructure withPublicationTimestamp(OffsetDateTime value) {
setPublicationTimestamp(value);
return this;
}
public PublicationDeliveryStructure withParticipantRef(String value) {
setParticipantRef(value);
return this;
}
public PublicationDeliveryStructure withPublicationRequest(PublicationRequestStructure value) {
setPublicationRequest(value);
return this;
}
public PublicationDeliveryStructure withPublicationRefreshInterval(Duration value) {
setPublicationRefreshInterval(value);
return this;
}
public PublicationDeliveryStructure withDescription(MultilingualString value) {
setDescription(value);
return this;
}
public PublicationDeliveryStructure withDataObjects(PublicationDeliveryStructure.DataObjects value) {
setDataObjects(value);
return this;
}
public PublicationDeliveryStructure withVersion(String value) {
setVersion(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);
}
/**
* Java class for anonymous complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType>
* <complexContent>
* <extension base="{http://www.netex.org.uk/netex}dataObjects_RelStructure">
* </extension>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "")
public static class DataObjects
extends DataObjects_RelStructure
{
@Override
public PublicationDeliveryStructure.DataObjects withCompositeFrameOrCommonFrame(JAXBElement extends Common_VersionFrameStructure> ... values) {
if (values!= null) {
for (JAXBElement extends Common_VersionFrameStructure> value: values) {
getCompositeFrameOrCommonFrame().add(value);
}
}
return this;
}
@Override
public PublicationDeliveryStructure.DataObjects withCompositeFrameOrCommonFrame(Collection> values) {
if (values!= null) {
getCompositeFrameOrCommonFrame().addAll(values);
}
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