org.rutebanken.netex.model.LanguageUsageStructure 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.XmlList;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.rutebanken.netex.OmitNullsToStringStyle;
/**
* Java class for LanguageUsageStructure complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="LanguageUsageStructure">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="Language" type="{http://www.w3.org/2001/XMLSchema}language"/>
* <element name="LanguageUse" type="{http://www.netex.org.uk/netex}LanguageUseListOfEnumerations"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "LanguageUsageStructure", propOrder = {
"language",
"languageUse"
})
public class LanguageUsageStructure {
@XmlElement(name = "Language", required = true)
@XmlJavaTypeAdapter(CollapsedStringAdapter.class)
@XmlSchemaType(name = "language")
protected String language;
@XmlList
@XmlElement(name = "LanguageUse", required = true)
protected List languageUse;
/**
* Gets the value of the language property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getLanguage() {
return language;
}
/**
* Sets the value of the language property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setLanguage(String value) {
this.language = value;
}
/**
* Gets the value of the languageUse 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 languageUse property.
*
*
* For example, to add a new item, do as follows:
*
* getLanguageUse().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link LanguageUseEnumeration }
*
*
*/
public List getLanguageUse() {
if (languageUse == null) {
languageUse = new ArrayList();
}
return this.languageUse;
}
public LanguageUsageStructure withLanguage(String value) {
setLanguage(value);
return this;
}
public LanguageUsageStructure withLanguageUse(LanguageUseEnumeration... values) {
if (values!= null) {
for (LanguageUseEnumeration value: values) {
getLanguageUse().add(value);
}
}
return this;
}
public LanguageUsageStructure withLanguageUse(Collection values) {
if (values!= null) {
getLanguageUse().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);
}
}