
de.vdv.ojp20.siri.ClosedTimeRangeStructure 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.siri;
import java.time.LocalTime;
import jakarta.xml.bind.annotation.XmlAccessType;
import jakarta.xml.bind.annotation.XmlAccessorType;
import jakarta.xml.bind.annotation.XmlElement;
import jakarta.xml.bind.annotation.XmlSchemaType;
import jakarta.xml.bind.annotation.XmlType;
import jakarta.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.opentripplanner.ojp.netex.OmitNullsToStringStyle;
import org.opentripplanner.ojp.util.LocalTimeISO8601XmlAdapter;
/**
* Java class for ClosedTimeRangeStructure complex type
.
*
* The following schema fragment specifies the expected content contained within this class.
*
* {@code
*
*
*
*
*
*
*
*
*
*
*
* }
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "ClosedTimeRangeStructure", propOrder = {
"startTime",
"endTime",
"endTimePrecision"
})
public class ClosedTimeRangeStructure {
@XmlElement(name = "StartTime", required = true, type = String.class)
@XmlJavaTypeAdapter(LocalTimeISO8601XmlAdapter.class)
@XmlSchemaType(name = "time")
protected LocalTime startTime;
@XmlElement(name = "EndTime", required = true, type = String.class)
@XmlJavaTypeAdapter(LocalTimeISO8601XmlAdapter.class)
@XmlSchemaType(name = "time")
protected LocalTime endTime;
@XmlElement(name = "EndTimePrecision", defaultValue = "second")
@XmlSchemaType(name = "string")
protected EndTimePrecisionEnumeration endTimePrecision;
/**
* Gets the value of the startTime property.
*
* @return
* possible object is
* {@link String }
*
*/
public LocalTime getStartTime() {
return startTime;
}
/**
* Sets the value of the startTime property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setStartTime(LocalTime value) {
this.startTime = value;
}
/**
* Gets the value of the endTime property.
*
* @return
* possible object is
* {@link String }
*
*/
public LocalTime getEndTime() {
return endTime;
}
/**
* Sets the value of the endTime property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setEndTime(LocalTime value) {
this.endTime = value;
}
/**
* Gets the value of the endTimePrecision property.
*
* @return
* possible object is
* {@link EndTimePrecisionEnumeration }
*
*/
public EndTimePrecisionEnumeration getEndTimePrecision() {
return endTimePrecision;
}
/**
* Sets the value of the endTimePrecision property.
*
* @param value
* allowed object is
* {@link EndTimePrecisionEnumeration }
*
*/
public void setEndTimePrecision(EndTimePrecisionEnumeration value) {
this.endTimePrecision = value;
}
public ClosedTimeRangeStructure withStartTime(LocalTime value) {
setStartTime(value);
return this;
}
public ClosedTimeRangeStructure withEndTime(LocalTime value) {
setEndTime(value);
return this;
}
public ClosedTimeRangeStructure withEndTimePrecision(EndTimePrecisionEnumeration value) {
setEndTimePrecision(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