
de.vdv.ojp20.OJP Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ojp-java-model Show documentation
Show all versions of ojp-java-model Show documentation
Generates Java model from OJP xsds using jaxb.
The newest version!
//
// This file was generated by the Eclipse Implementation of JAXB, v4.0.5
// See https://eclipse-ee4j.github.io/jaxb-ri
// Any modifications to this file will be lost upon recompilation of the source schema.
//
package de.vdv.ojp20;
import de.vdv.ojp20.siri.ExtensionsStructure;
import jakarta.xml.bind.annotation.XmlAccessType;
import jakarta.xml.bind.annotation.XmlAccessorType;
import jakarta.xml.bind.annotation.XmlAttribute;
import jakarta.xml.bind.annotation.XmlElement;
import jakarta.xml.bind.annotation.XmlRootElement;
import jakarta.xml.bind.annotation.XmlSchemaType;
import jakarta.xml.bind.annotation.XmlType;
import jakarta.xml.bind.annotation.adapters.CollapsedStringAdapter;
import jakarta.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.opentripplanner.ojp.netex.OmitNullsToStringStyle;
/**
* Java class for anonymous complex type
.
*
* The following schema fragment specifies the expected content contained within this class.
*
* {@code
*
*
*
*
*
*
*
*
*
*
*
*
*
*
* }
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"ojpRequest",
"ojpResponse",
"extensions"
})
@XmlRootElement(name = "OJP")
public class OJP {
/**
* OJP Request - Groups individual functional requests.
*
*/
@XmlElement(name = "OJPRequest")
protected OJPRequestStructure ojpRequest;
/**
* OJP Request - Groups individual functional responses.
*
*/
@XmlElement(name = "OJPResponse")
protected OJPResponseStructure ojpResponse;
@XmlElement(name = "Extensions", namespace = "http://www.siri.org.uk/siri")
protected ExtensionsStructure extensions;
@XmlAttribute(name = "version", required = true)
@XmlJavaTypeAdapter(CollapsedStringAdapter.class)
@XmlSchemaType(name = "NMTOKEN")
protected String version;
/**
* OJP Request - Groups individual functional requests.
*
* @return
* possible object is
* {@link OJPRequestStructure }
*
*/
public OJPRequestStructure getOJPRequest() {
return ojpRequest;
}
/**
* Sets the value of the ojpRequest property.
*
* @param value
* allowed object is
* {@link OJPRequestStructure }
*
* @see #getOJPRequest()
*/
public void setOJPRequest(OJPRequestStructure value) {
this.ojpRequest = value;
}
/**
* OJP Request - Groups individual functional responses.
*
* @return
* possible object is
* {@link OJPResponseStructure }
*
*/
public OJPResponseStructure getOJPResponse() {
return ojpResponse;
}
/**
* Sets the value of the ojpResponse property.
*
* @param value
* allowed object is
* {@link OJPResponseStructure }
*
* @see #getOJPResponse()
*/
public void setOJPResponse(OJPResponseStructure value) {
this.ojpResponse = value;
}
/**
* Gets the value of the extensions property.
*
* @return
* possible object is
* {@link ExtensionsStructure }
*
*/
public ExtensionsStructure getExtensions() {
return extensions;
}
/**
* Sets the value of the extensions property.
*
* @param value
* allowed object is
* {@link ExtensionsStructure }
*
*/
public void setExtensions(ExtensionsStructure value) {
this.extensions = value;
}
/**
* Gets the value of the version property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getVersion() {
if (version == null) {
return "2.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 OJP withOJPRequest(OJPRequestStructure value) {
setOJPRequest(value);
return this;
}
public OJP withOJPResponse(OJPResponseStructure value) {
setOJPResponse(value);
return this;
}
public OJP withExtensions(ExtensionsStructure value) {
setExtensions(value);
return this;
}
public OJP 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);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy