
de.vdv.ojp20.siri.AffectedPathLinkStructure Maven / Gradle / Ivy
Show all versions of ojp-java-model Show documentation
//
// This file was generated by the Eclipse Implementation of JAXB, v4.0.5
// See https://eclipse-ee4j.github.io/jaxb-ri
// Any modifications to this file will be lost upon recompilation of the source schema.
//
package de.vdv.ojp20.siri;
import java.util.ArrayList;
import java.util.Collection;
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;
import jakarta.xml.bind.annotation.adapters.CollapsedStringAdapter;
import jakarta.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.opentripplanner.ojp.netex.OmitNullsToStringStyle;
import uk.org.ifopt.ifopt.LinkProjectionStructure;
/**
* Java class for AffectedPathLinkStructure complex type
.
*
* The following schema fragment specifies the expected content contained within this class.
*
* {@code
*
*
*
*
*
*
*
*
*
*
*
*
*
*
* }
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "AffectedPathLinkStructure", propOrder = {
"linkRef",
"linkName",
"accessibilityFeature",
"linkDirection",
"linkProjection",
"offset",
"extensions"
})
public class AffectedPathLinkStructure {
@XmlElement(name = "LinkRef")
@XmlJavaTypeAdapter(CollapsedStringAdapter.class)
@XmlSchemaType(name = "NMTOKEN")
protected List linkRef;
@XmlElement(name = "LinkName")
protected List linkName;
@XmlElement(name = "AccessibilityFeature")
@XmlSchemaType(name = "string")
protected AccessibilityFeatureEnumeration accessibilityFeature;
@XmlElement(name = "LinkDirection")
protected List linkDirection;
@XmlElement(name = "LinkProjection")
protected LinkProjectionStructure linkProjection;
@XmlElement(name = "Offset")
protected OffsetStructure offset;
@XmlElement(name = "Extensions")
protected ExtensionsStructure extensions;
/**
* Gets the value of the linkRef 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 linkRef property.
*
*
* For example, to add a new item, do as follows:
*
*
* getLinkRef().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link String }
*
*
*
* @return
* The value of the linkRef property.
*/
public List getLinkRef() {
if (linkRef == null) {
linkRef = new ArrayList<>();
}
return this.linkRef;
}
/**
* Gets the value of the linkName 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 linkName property.
*
*
* For example, to add a new item, do as follows:
*
*
* getLinkName().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link NaturalLanguageStringStructure }
*
*
*
* @return
* The value of the linkName property.
*/
public List getLinkName() {
if (linkName == null) {
linkName = new ArrayList<>();
}
return this.linkName;
}
/**
* Gets the value of the accessibilityFeature property.
*
* @return
* possible object is
* {@link AccessibilityFeatureEnumeration }
*
*/
public AccessibilityFeatureEnumeration getAccessibilityFeature() {
return accessibilityFeature;
}
/**
* Sets the value of the accessibilityFeature property.
*
* @param value
* allowed object is
* {@link AccessibilityFeatureEnumeration }
*
*/
public void setAccessibilityFeature(AccessibilityFeatureEnumeration value) {
this.accessibilityFeature = value;
}
/**
* Gets the value of the linkDirection 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 linkDirection property.
*
*
* For example, to add a new item, do as follows:
*
*
* getLinkDirection().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link String }
*
*
*
* @return
* The value of the linkDirection property.
*/
public List getLinkDirection() {
if (linkDirection == null) {
linkDirection = new ArrayList<>();
}
return this.linkDirection;
}
/**
* Gets the value of the linkProjection property.
*
* @return
* possible object is
* {@link LinkProjectionStructure }
*
*/
public LinkProjectionStructure getLinkProjection() {
return linkProjection;
}
/**
* Sets the value of the linkProjection property.
*
* @param value
* allowed object is
* {@link LinkProjectionStructure }
*
*/
public void setLinkProjection(LinkProjectionStructure value) {
this.linkProjection = value;
}
/**
* Gets the value of the offset property.
*
* @return
* possible object is
* {@link OffsetStructure }
*
*/
public OffsetStructure getOffset() {
return offset;
}
/**
* Sets the value of the offset property.
*
* @param value
* allowed object is
* {@link OffsetStructure }
*
*/
public void setOffset(OffsetStructure value) {
this.offset = value;
}
/**
* Gets the value of the extensions property.
*
* @return
* possible object is
* {@link ExtensionsStructure }
*
*/
public ExtensionsStructure getExtensions() {
return extensions;
}
/**
* Sets the value of the extensions property.
*
* @param value
* allowed object is
* {@link ExtensionsStructure }
*
*/
public void setExtensions(ExtensionsStructure value) {
this.extensions = value;
}
public AffectedPathLinkStructure withLinkRef(String... values) {
if (values!= null) {
for (String value: values) {
getLinkRef().add(value);
}
}
return this;
}
public AffectedPathLinkStructure withLinkRef(Collection values) {
if (values!= null) {
getLinkRef().addAll(values);
}
return this;
}
public AffectedPathLinkStructure withLinkName(NaturalLanguageStringStructure... values) {
if (values!= null) {
for (NaturalLanguageStringStructure value: values) {
getLinkName().add(value);
}
}
return this;
}
public AffectedPathLinkStructure withLinkName(Collection values) {
if (values!= null) {
getLinkName().addAll(values);
}
return this;
}
public AffectedPathLinkStructure withAccessibilityFeature(AccessibilityFeatureEnumeration value) {
setAccessibilityFeature(value);
return this;
}
public AffectedPathLinkStructure withLinkDirection(String... values) {
if (values!= null) {
for (String value: values) {
getLinkDirection().add(value);
}
}
return this;
}
public AffectedPathLinkStructure withLinkDirection(Collection values) {
if (values!= null) {
getLinkDirection().addAll(values);
}
return this;
}
public AffectedPathLinkStructure withLinkProjection(LinkProjectionStructure value) {
setLinkProjection(value);
return this;
}
public AffectedPathLinkStructure withOffset(OffsetStructure value) {
setOffset(value);
return this;
}
public AffectedPathLinkStructure withExtensions(ExtensionsStructure value) {
setExtensions(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);
}
}