
de.vdv.ojp20.siri.PassengerInformationActionStructure Maven / Gradle / Ivy
Show all versions of ojp-java-model Show documentation
//
// 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.math.BigInteger;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
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.time.XmlDateTime;
import org.opentripplanner.ojp.util.XmlDateTimeAdapter;
/**
* Java class for PassengerInformationActionStructure complex type
.
*
* The following schema fragment specifies the expected content contained within this class.
*
* {@code
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
* }
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "PassengerInformationActionStructure", propOrder = {
"actionRef",
"recordedAtTime",
"version",
"sourceRef",
"ownerRef",
"perspective",
"actionPriority",
"textualContent"
})
public class PassengerInformationActionStructure
extends ParameterisedActionStructure
{
@XmlElement(name = "ActionRef", required = true)
protected EntryQualifierStructure actionRef;
@XmlElement(name = "RecordedAtTime", required = true, type = String.class)
@XmlJavaTypeAdapter(XmlDateTimeAdapter.class)
@XmlSchemaType(name = "dateTime")
protected XmlDateTime recordedAtTime;
@XmlElement(name = "Version")
protected SituationVersion version;
@XmlElement(name = "SourceRef")
protected ParticipantRefStructure sourceRef;
@XmlElement(name = "OwnerRef")
protected OrganisationRefStructure ownerRef;
@XmlElement(name = "Perspective", required = true)
@XmlSchemaType(name = "NMTOKEN")
protected List perspective;
@XmlElement(name = "ActionPriority")
@XmlSchemaType(name = "positiveInteger")
protected BigInteger actionPriority;
@XmlElement(name = "TextualContent", required = true)
protected List textualContent;
/**
* Gets the value of the actionRef property.
*
* @return
* possible object is
* {@link EntryQualifierStructure }
*
*/
public EntryQualifierStructure getActionRef() {
return actionRef;
}
/**
* Sets the value of the actionRef property.
*
* @param value
* allowed object is
* {@link EntryQualifierStructure }
*
*/
public void setActionRef(EntryQualifierStructure value) {
this.actionRef = value;
}
/**
* Gets the value of the recordedAtTime property.
*
* @return
* possible object is
* {@link String }
*
*/
public XmlDateTime getRecordedAtTime() {
return recordedAtTime;
}
/**
* Sets the value of the recordedAtTime property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setRecordedAtTime(XmlDateTime value) {
this.recordedAtTime = value;
}
/**
* Gets the value of the version property.
*
* @return
* possible object is
* {@link SituationVersion }
*
*/
public SituationVersion getVersion() {
return version;
}
/**
* Sets the value of the version property.
*
* @param value
* allowed object is
* {@link SituationVersion }
*
*/
public void setVersion(SituationVersion value) {
this.version = value;
}
/**
* Gets the value of the sourceRef property.
*
* @return
* possible object is
* {@link ParticipantRefStructure }
*
*/
public ParticipantRefStructure getSourceRef() {
return sourceRef;
}
/**
* Sets the value of the sourceRef property.
*
* @param value
* allowed object is
* {@link ParticipantRefStructure }
*
*/
public void setSourceRef(ParticipantRefStructure value) {
this.sourceRef = value;
}
/**
* Gets the value of the ownerRef property.
*
* @return
* possible object is
* {@link OrganisationRefStructure }
*
*/
public OrganisationRefStructure getOwnerRef() {
return ownerRef;
}
/**
* Sets the value of the ownerRef property.
*
* @param value
* allowed object is
* {@link OrganisationRefStructure }
*
*/
public void setOwnerRef(OrganisationRefStructure value) {
this.ownerRef = value;
}
/**
* Gets the value of the perspective 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 perspective property.
*
*
* For example, to add a new item, do as follows:
*
*
* getPerspective().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link PerspectiveEnumeration }
*
*
*
* @return
* The value of the perspective property.
*/
public List getPerspective() {
if (perspective == null) {
perspective = new ArrayList<>();
}
return this.perspective;
}
/**
* Gets the value of the actionPriority property.
*
* @return
* possible object is
* {@link BigInteger }
*
*/
public BigInteger getActionPriority() {
return actionPriority;
}
/**
* Sets the value of the actionPriority property.
*
* @param value
* allowed object is
* {@link BigInteger }
*
*/
public void setActionPriority(BigInteger value) {
this.actionPriority = value;
}
/**
* Gets the value of the textualContent 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 textualContent property.
*
*
* For example, to add a new item, do as follows:
*
*
* getTextualContent().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link TextualContentStructure }
*
*
*
* @return
* The value of the textualContent property.
*/
public List getTextualContent() {
if (textualContent == null) {
textualContent = new ArrayList<>();
}
return this.textualContent;
}
public PassengerInformationActionStructure withActionRef(EntryQualifierStructure value) {
setActionRef(value);
return this;
}
public PassengerInformationActionStructure withRecordedAtTime(XmlDateTime value) {
setRecordedAtTime(value);
return this;
}
public PassengerInformationActionStructure withVersion(SituationVersion value) {
setVersion(value);
return this;
}
public PassengerInformationActionStructure withSourceRef(ParticipantRefStructure value) {
setSourceRef(value);
return this;
}
public PassengerInformationActionStructure withOwnerRef(OrganisationRefStructure value) {
setOwnerRef(value);
return this;
}
public PassengerInformationActionStructure withPerspective(PerspectiveEnumeration... values) {
if (values!= null) {
for (PerspectiveEnumeration value: values) {
getPerspective().add(value);
}
}
return this;
}
public PassengerInformationActionStructure withPerspective(Collection values) {
if (values!= null) {
getPerspective().addAll(values);
}
return this;
}
public PassengerInformationActionStructure withActionPriority(BigInteger value) {
setActionPriority(value);
return this;
}
public PassengerInformationActionStructure withTextualContent(TextualContentStructure... values) {
if (values!= null) {
for (TextualContentStructure value: values) {
getTextualContent().add(value);
}
}
return this;
}
public PassengerInformationActionStructure withTextualContent(Collection values) {
if (values!= null) {
getTextualContent().addAll(values);
}
return this;
}
@Override
public PassengerInformationActionStructure withDescription(NaturalLanguageStringStructure value) {
setDescription(value);
return this;
}
@Override
public PassengerInformationActionStructure withActionData(ActionDataStructure... values) {
if (values!= null) {
for (ActionDataStructure value: values) {
getActionData().add(value);
}
}
return this;
}
@Override
public PassengerInformationActionStructure withActionData(Collection values) {
if (values!= null) {
getActionData().addAll(values);
}
return this;
}
@Override
public PassengerInformationActionStructure withPublicationWindow(ClosedTimestampRangeStructure... values) {
if (values!= null) {
for (ClosedTimestampRangeStructure value: values) {
getPublicationWindow().add(value);
}
}
return this;
}
@Override
public PassengerInformationActionStructure withPublicationWindow(Collection values) {
if (values!= null) {
getPublicationWindow().addAll(values);
}
return this;
}
@Override
public PassengerInformationActionStructure withActionStatus(ActionStatusEnumeration value) {
setActionStatus(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);
}
}