![JAR search and dependency download from the Maven repository](/logo.png)
uk.org.siri.siri21.ServiceException Maven / Gradle / Ivy
Show all versions of siri-java-model Show documentation
//
// This file was generated by the Eclipse Implementation of JAXB, v3.0.2
// See https://eclipse-ee4j.github.io/jaxb-ri
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2025.01.07 at 02:19:41 PM UTC
//
package uk.org.siri.siri21;
import java.io.Serializable;
import java.util.ArrayList;
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.XmlRootElement;
import jakarta.xml.bind.annotation.XmlSchemaType;
import jakarta.xml.bind.annotation.XmlType;
/**
* Type for whether service is unavailable for all or some services SIRI 2.0
*
* Java class for ServiceExceptionStructure complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="ServiceExceptionStructure">
* <complexContent>
* <extension base="{http://www.siri.org.uk/siri}AbstractItemStructure">
* <sequence>
* <element ref="{http://www.siri.org.uk/siri}LineRef" minOccurs="0"/>
* <element name="DirectionRef" type="{http://www.siri.org.uk/siri}DirectionRefStructure" minOccurs="0"/>
* <element ref="{http://www.siri.org.uk/siri}StopPointRef" minOccurs="0"/>
* <element name="ServiceStatus" type="{http://www.siri.org.uk/siri}ServiceExceptionEnumeration" minOccurs="0"/>
* <element name="Notice" type="{http://www.siri.org.uk/siri}NaturalLanguageStringStructure" maxOccurs="unbounded" minOccurs="0"/>
* <element name="SituationRef" type="{http://www.siri.org.uk/siri}SituationSimpleRefStructure" minOccurs="0"/>
* </sequence>
* </extension>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "ServiceExceptionStructure", propOrder = {
"lineRef",
"directionRef",
"stopPointRef",
"serviceStatus",
"notices",
"situationRef"
})
@XmlRootElement(name = "ServiceException")
public class ServiceException
extends AbstractItemStructure
implements Serializable
{
@XmlElement(name = "LineRef")
protected LineRef lineRef;
@XmlElement(name = "DirectionRef")
protected DirectionRefStructure directionRef;
@XmlElement(name = "StopPointRef")
protected StopPointRefStructure stopPointRef;
@XmlElement(name = "ServiceStatus")
@XmlSchemaType(name = "NMTOKEN")
protected ServiceExceptionEnumeration serviceStatus;
@XmlElement(name = "Notice")
protected List notices;
@XmlElement(name = "SituationRef")
protected SituationSimpleRef situationRef;
/**
* Gets the value of the lineRef property.
*
* @return
* possible object is
* {@link LineRef }
*
*/
public LineRef getLineRef() {
return lineRef;
}
/**
* Sets the value of the lineRef property.
*
* @param value
* allowed object is
* {@link LineRef }
*
*/
public void setLineRef(LineRef value) {
this.lineRef = value;
}
/**
* Gets the value of the directionRef property.
*
* @return
* possible object is
* {@link DirectionRefStructure }
*
*/
public DirectionRefStructure getDirectionRef() {
return directionRef;
}
/**
* Sets the value of the directionRef property.
*
* @param value
* allowed object is
* {@link DirectionRefStructure }
*
*/
public void setDirectionRef(DirectionRefStructure value) {
this.directionRef = value;
}
/**
* Gets the value of the stopPointRef property.
*
* @return
* possible object is
* {@link StopPointRefStructure }
*
*/
public StopPointRefStructure getStopPointRef() {
return stopPointRef;
}
/**
* Sets the value of the stopPointRef property.
*
* @param value
* allowed object is
* {@link StopPointRefStructure }
*
*/
public void setStopPointRef(StopPointRefStructure value) {
this.stopPointRef = value;
}
/**
* Gets the value of the serviceStatus property.
*
* @return
* possible object is
* {@link ServiceExceptionEnumeration }
*
*/
public ServiceExceptionEnumeration getServiceStatus() {
return serviceStatus;
}
/**
* Sets the value of the serviceStatus property.
*
* @param value
* allowed object is
* {@link ServiceExceptionEnumeration }
*
*/
public void setServiceStatus(ServiceExceptionEnumeration value) {
this.serviceStatus = value;
}
/**
* Gets the value of the notices 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 Jakarta XML Binding object.
* This is why there is not a set
method for the notices property.
*
*
* For example, to add a new item, do as follows:
*
* getNotices().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link NaturalLanguageStringStructure }
*
*
*/
public List getNotices() {
if (notices == null) {
notices = new ArrayList();
}
return this.notices;
}
/**
* Gets the value of the situationRef property.
*
* @return
* possible object is
* {@link SituationSimpleRef }
*
*/
public SituationSimpleRef getSituationRef() {
return situationRef;
}
/**
* Sets the value of the situationRef property.
*
* @param value
* allowed object is
* {@link SituationSimpleRef }
*
*/
public void setSituationRef(SituationSimpleRef value) {
this.situationRef = value;
}
}