org.rutebanken.netex.model.NetworkFrameRequestPolicyStructure 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 org.rutebanken.netex.model;
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.XmlList;
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 NetworkFrameRequestPolicyStructure complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="NetworkFrameRequestPolicyStructure">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="MaximumNumberOfElements" type="{http://www.w3.org/2001/XMLSchema}integer" minOccurs="0"/>
* <element name="IncludeDeleted" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
* <element name="Urgency" type="{http://www.w3.org/2001/XMLSchema}duration" minOccurs="0"/>
* <element name="MustHaveBy" type="{http://www.w3.org/2001/XMLSchema}dateTime" minOccurs="0"/>
* <element name="Language" type="{http://www.w3.org/2001/XMLSchema}language" minOccurs="0"/>
* <element name="RequestDetail" type="{http://www.netex.org.uk/netex}OutputDetailListOfEnumerations" minOccurs="0"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "NetworkFrameRequestPolicyStructure", propOrder = {
"maximumNumberOfElements",
"includeDeleted",
"urgency",
"mustHaveBy",
"language",
"requestDetail"
})
public class NetworkFrameRequestPolicyStructure {
@XmlElement(name = "MaximumNumberOfElements")
protected BigInteger maximumNumberOfElements;
@XmlElement(name = "IncludeDeleted", defaultValue = "false")
protected Boolean includeDeleted;
@XmlElement(name = "Urgency", type = String.class)
@XmlJavaTypeAdapter(DurationXmlAdapter.class)
@XmlSchemaType(name = "duration")
protected Duration urgency;
@XmlElement(name = "MustHaveBy", type = String.class)
@XmlJavaTypeAdapter(OffsetDateTimeISO8601XmlAdapter.class)
@XmlSchemaType(name = "dateTime")
protected OffsetDateTime mustHaveBy;
@XmlElement(name = "Language")
@XmlJavaTypeAdapter(CollapsedStringAdapter.class)
@XmlSchemaType(name = "language")
protected String language;
@XmlList
@XmlElement(name = "RequestDetail")
protected List requestDetail;
/**
* Gets the value of the maximumNumberOfElements property.
*
* @return
* possible object is
* {@link BigInteger }
*
*/
public BigInteger getMaximumNumberOfElements() {
return maximumNumberOfElements;
}
/**
* Sets the value of the maximumNumberOfElements property.
*
* @param value
* allowed object is
* {@link BigInteger }
*
*/
public void setMaximumNumberOfElements(BigInteger value) {
this.maximumNumberOfElements = value;
}
/**
* Gets the value of the includeDeleted property.
*
* @return
* possible object is
* {@link Boolean }
*
*/
public Boolean isIncludeDeleted() {
return includeDeleted;
}
/**
* Sets the value of the includeDeleted property.
*
* @param value
* allowed object is
* {@link Boolean }
*
*/
public void setIncludeDeleted(Boolean value) {
this.includeDeleted = value;
}
/**
* Gets the value of the urgency property.
*
* @return
* possible object is
* {@link String }
*
*/
public Duration getUrgency() {
return urgency;
}
/**
* Sets the value of the urgency property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setUrgency(Duration value) {
this.urgency = value;
}
/**
* Gets the value of the mustHaveBy property.
*
* @return
* possible object is
* {@link String }
*
*/
public OffsetDateTime getMustHaveBy() {
return mustHaveBy;
}
/**
* Sets the value of the mustHaveBy property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setMustHaveBy(OffsetDateTime value) {
this.mustHaveBy = value;
}
/**
* Gets the value of the language property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getLanguage() {
return language;
}
/**
* Sets the value of the language property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setLanguage(String value) {
this.language = value;
}
/**
* Gets the value of the requestDetail 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 requestDetail property.
*
*
* For example, to add a new item, do as follows:
*
* getRequestDetail().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link OutputDetailEnumeration }
*
*
*/
public List getRequestDetail() {
if (requestDetail == null) {
requestDetail = new ArrayList();
}
return this.requestDetail;
}
public NetworkFrameRequestPolicyStructure withMaximumNumberOfElements(BigInteger value) {
setMaximumNumberOfElements(value);
return this;
}
public NetworkFrameRequestPolicyStructure withIncludeDeleted(Boolean value) {
setIncludeDeleted(value);
return this;
}
public NetworkFrameRequestPolicyStructure withUrgency(Duration value) {
setUrgency(value);
return this;
}
public NetworkFrameRequestPolicyStructure withMustHaveBy(OffsetDateTime value) {
setMustHaveBy(value);
return this;
}
public NetworkFrameRequestPolicyStructure withLanguage(String value) {
setLanguage(value);
return this;
}
public NetworkFrameRequestPolicyStructure withRequestDetail(OutputDetailEnumeration... values) {
if (values!= null) {
for (OutputDetailEnumeration value: values) {
getRequestDetail().add(value);
}
}
return this;
}
public NetworkFrameRequestPolicyStructure withRequestDetail(Collection values) {
if (values!= null) {
getRequestDetail().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);
}
}