![JAR search and dependency download from the Maven repository](/logo.png)
uk.org.siri.siri21.PtAdviceStructure 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.XmlSchemaType;
import jakarta.xml.bind.annotation.XmlType;
/**
* Type for (structured) advice. The AdviceType enumerated value can be used to generate standardized messages describing the SITUATION. If no enumerated value is given, AdviceName is used instead.
* Note: this means that AdviceName is NOT a complete message, but only a (few) word(s) to be included in the message!
* Alternatively, AdviceRef can be used to reference a (complete) standardised advisory message.
*
*
* Java class for PtAdviceStructure complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="PtAdviceStructure">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="AdviceRef" type="{http://www.siri.org.uk/siri}AdviceRefStructure" minOccurs="0"/>
* <element name="AdviceType" type="{http://www.siri.org.uk/siri}AdviceTypeEnumeration" minOccurs="0"/>
* <element name="AdviceName" type="{http://www.siri.org.uk/siri}NaturalLanguageStringStructure" maxOccurs="unbounded" minOccurs="0"/>
* <element name="Details" type="{http://www.siri.org.uk/siri}NaturalLanguageStringStructure" maxOccurs="unbounded" minOccurs="0"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "PtAdviceStructure", propOrder = {
"adviceRef",
"adviceType",
"adviceNames",
"details"
})
public class PtAdviceStructure
implements Serializable
{
@XmlElement(name = "AdviceRef")
protected AdviceRefStructure adviceRef;
@XmlElement(name = "AdviceType")
@XmlSchemaType(name = "NMTOKEN")
protected AdviceTypeEnumeration adviceType;
@XmlElement(name = "AdviceName")
protected List adviceNames;
@XmlElement(name = "Details")
protected List details;
/**
* Gets the value of the adviceRef property.
*
* @return
* possible object is
* {@link AdviceRefStructure }
*
*/
public AdviceRefStructure getAdviceRef() {
return adviceRef;
}
/**
* Sets the value of the adviceRef property.
*
* @param value
* allowed object is
* {@link AdviceRefStructure }
*
*/
public void setAdviceRef(AdviceRefStructure value) {
this.adviceRef = value;
}
/**
* Gets the value of the adviceType property.
*
* @return
* possible object is
* {@link AdviceTypeEnumeration }
*
*/
public AdviceTypeEnumeration getAdviceType() {
return adviceType;
}
/**
* Sets the value of the adviceType property.
*
* @param value
* allowed object is
* {@link AdviceTypeEnumeration }
*
*/
public void setAdviceType(AdviceTypeEnumeration value) {
this.adviceType = value;
}
/**
* Gets the value of the adviceNames 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 adviceNames property.
*
*
* For example, to add a new item, do as follows:
*
* getAdviceNames().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link NaturalLanguageStringStructure }
*
*
*/
public List getAdviceNames() {
if (adviceNames == null) {
adviceNames = new ArrayList();
}
return this.adviceNames;
}
/**
* Gets the value of the details 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 details property.
*
*
* For example, to add a new item, do as follows:
*
* getDetails().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link NaturalLanguageStringStructure }
*
*
*/
public List getDetails() {
if (details == null) {
details = new ArrayList();
}
return this.details;
}
}