org.rutebanken.netex.model.DepartmentRefs_RelStructure 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 departmentRefs_RelStructure complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="departmentRefs_RelStructure">
* <complexContent>
* <extension base="{http://www.netex.org.uk/netex}oneToManyRelationshipStructure">
* <sequence>
* <element ref="{http://www.netex.org.uk/netex}DepartmentRef" maxOccurs="unbounded"/>
* </sequence>
* </extension>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "departmentRefs_RelStructure", propOrder = {
"departmentRef"
})
public class DepartmentRefs_RelStructure
extends OneToManyRelationshipStructure
{
@XmlElement(name = "DepartmentRef", required = true)
protected List departmentRef;
/**
* Gets the value of the departmentRef 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 departmentRef property.
*
*
* For example, to add a new item, do as follows:
*
* getDepartmentRef().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link DepartmentRefStructure }
*
*
*/
public List getDepartmentRef() {
if (departmentRef == null) {
departmentRef = new ArrayList();
}
return this.departmentRef;
}
public DepartmentRefs_RelStructure withDepartmentRef(DepartmentRefStructure... values) {
if (values!= null) {
for (DepartmentRefStructure value: values) {
getDepartmentRef().add(value);
}
}
return this;
}
public DepartmentRefs_RelStructure withDepartmentRef(Collection values) {
if (values!= null) {
getDepartmentRef().addAll(values);
}
return this;
}
@Override
public DepartmentRefs_RelStructure withModificationSet(ModificationSetEnumeration value) {
setModificationSet(value);
return this;
}
@Override
public DepartmentRefs_RelStructure withId(String value) {
setId(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);
}
}