org.rutebanken.netex.model.PassengerAccessibilityNeedsStructure Maven / Gradle / Ivy
Show all versions of netex-java-model Show documentation
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.11
// See http://java.sun.com/xml/jaxb
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2017.09.21 at 10:53:23 AM CEST
//
package org.rutebanken.netex.model;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.rutebanken.netex.OmitNullsToStringStyle;
/**
* Java class for PassengerAccessibilityNeedsStructure complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="PassengerAccessibilityNeedsStructure">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="AccompaniedByCarer" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
* <element name="userNeeds" minOccurs="0">
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element ref="{http://www.netex.org.uk/netex}UserNeed" maxOccurs="unbounded" minOccurs="0"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
* </element>
* <element name="suitabilities" minOccurs="0">
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element ref="{http://www.netex.org.uk/netex}Suitability" maxOccurs="unbounded" minOccurs="0"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
* </element>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "PassengerAccessibilityNeedsStructure", propOrder = {
"accompaniedByCarer",
"userNeeds",
"suitabilities"
})
public class PassengerAccessibilityNeedsStructure {
@XmlElement(name = "AccompaniedByCarer")
protected Boolean accompaniedByCarer;
protected PassengerAccessibilityNeedsStructure.UserNeeds userNeeds;
protected PassengerAccessibilityNeedsStructure.Suitabilities suitabilities;
/**
* Gets the value of the accompaniedByCarer property.
*
* @return
* possible object is
* {@link Boolean }
*
*/
public Boolean isAccompaniedByCarer() {
return accompaniedByCarer;
}
/**
* Sets the value of the accompaniedByCarer property.
*
* @param value
* allowed object is
* {@link Boolean }
*
*/
public void setAccompaniedByCarer(Boolean value) {
this.accompaniedByCarer = value;
}
/**
* Gets the value of the userNeeds property.
*
* @return
* possible object is
* {@link PassengerAccessibilityNeedsStructure.UserNeeds }
*
*/
public PassengerAccessibilityNeedsStructure.UserNeeds getUserNeeds() {
return userNeeds;
}
/**
* Sets the value of the userNeeds property.
*
* @param value
* allowed object is
* {@link PassengerAccessibilityNeedsStructure.UserNeeds }
*
*/
public void setUserNeeds(PassengerAccessibilityNeedsStructure.UserNeeds value) {
this.userNeeds = value;
}
/**
* Gets the value of the suitabilities property.
*
* @return
* possible object is
* {@link PassengerAccessibilityNeedsStructure.Suitabilities }
*
*/
public PassengerAccessibilityNeedsStructure.Suitabilities getSuitabilities() {
return suitabilities;
}
/**
* Sets the value of the suitabilities property.
*
* @param value
* allowed object is
* {@link PassengerAccessibilityNeedsStructure.Suitabilities }
*
*/
public void setSuitabilities(PassengerAccessibilityNeedsStructure.Suitabilities value) {
this.suitabilities = value;
}
public PassengerAccessibilityNeedsStructure withAccompaniedByCarer(Boolean value) {
setAccompaniedByCarer(value);
return this;
}
public PassengerAccessibilityNeedsStructure withUserNeeds(PassengerAccessibilityNeedsStructure.UserNeeds value) {
setUserNeeds(value);
return this;
}
public PassengerAccessibilityNeedsStructure withSuitabilities(PassengerAccessibilityNeedsStructure.Suitabilities value) {
setSuitabilities(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);
}
/**
* Java class for anonymous complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element ref="{http://www.netex.org.uk/netex}Suitability" maxOccurs="unbounded" minOccurs="0"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"suitability"
})
public static class Suitabilities {
@XmlElement(name = "Suitability")
protected List suitability;
/**
* Gets the value of the suitability 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 suitability property.
*
*
* For example, to add a new item, do as follows:
*
* getSuitability().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link Suitability }
*
*
*/
public List getSuitability() {
if (suitability == null) {
suitability = new ArrayList();
}
return this.suitability;
}
public PassengerAccessibilityNeedsStructure.Suitabilities withSuitability(Suitability... values) {
if (values!= null) {
for (Suitability value: values) {
getSuitability().add(value);
}
}
return this;
}
public PassengerAccessibilityNeedsStructure.Suitabilities withSuitability(Collection values) {
if (values!= null) {
getSuitability().addAll(values);
}
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);
}
}
/**
* Java class for anonymous complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element ref="{http://www.netex.org.uk/netex}UserNeed" maxOccurs="unbounded" minOccurs="0"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"userNeed"
})
public static class UserNeeds {
@XmlElement(name = "UserNeed")
protected List userNeed;
/**
* Gets the value of the userNeed 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 userNeed property.
*
*
* For example, to add a new item, do as follows:
*
* getUserNeed().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link UserNeed }
*
*
*/
public List getUserNeed() {
if (userNeed == null) {
userNeed = new ArrayList();
}
return this.userNeed;
}
public PassengerAccessibilityNeedsStructure.UserNeeds withUserNeed(UserNeed... values) {
if (values!= null) {
for (UserNeed value: values) {
getUserNeed().add(value);
}
}
return this;
}
public PassengerAccessibilityNeedsStructure.UserNeeds withUserNeed(Collection values) {
if (values!= null) {
getUserNeed().addAll(values);
}
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);
}
}
}