
de.vdv.ojp20.siri.PublishingActionStructure 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 org.apache.commons.lang3.builder.ToStringBuilder;
import org.opentripplanner.ojp.netex.OmitNullsToStringStyle;
/**
* Java class for PublishingActionStructure complex type
.
*
* The following schema fragment specifies the expected content contained within this class.
*
* {@code
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
* }
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "PublishingActionStructure", propOrder = {
"publishAtScope",
"passengerInformationAction"
})
public class PublishingActionStructure {
@XmlElement(name = "PublishAtScope", required = true)
protected PublishingActionStructure.PublishAtScope publishAtScope;
@XmlElement(name = "PassengerInformationAction", required = true)
protected List passengerInformationAction;
/**
* Gets the value of the publishAtScope property.
*
* @return
* possible object is
* {@link PublishingActionStructure.PublishAtScope }
*
*/
public PublishingActionStructure.PublishAtScope getPublishAtScope() {
return publishAtScope;
}
/**
* Sets the value of the publishAtScope property.
*
* @param value
* allowed object is
* {@link PublishingActionStructure.PublishAtScope }
*
*/
public void setPublishAtScope(PublishingActionStructure.PublishAtScope value) {
this.publishAtScope = value;
}
/**
* Gets the value of the passengerInformationAction 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 passengerInformationAction property.
*
*
* For example, to add a new item, do as follows:
*
*
* getPassengerInformationAction().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link PassengerInformationActionStructure }
*
*
*
* @return
* The value of the passengerInformationAction property.
*/
public List getPassengerInformationAction() {
if (passengerInformationAction == null) {
passengerInformationAction = new ArrayList<>();
}
return this.passengerInformationAction;
}
public PublishingActionStructure withPublishAtScope(PublishingActionStructure.PublishAtScope value) {
setPublishAtScope(value);
return this;
}
public PublishingActionStructure withPassengerInformationAction(PassengerInformationActionStructure... values) {
if (values!= null) {
for (PassengerInformationActionStructure value: values) {
getPassengerInformationAction().add(value);
}
}
return this;
}
public PublishingActionStructure withPassengerInformationAction(Collection values) {
if (values!= null) {
getPassengerInformationAction().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.
*
* {@code
*
*
*
*
*
*
*
*
*
*
* }
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"scopeType",
"affects"
})
public static class PublishAtScope {
@XmlElement(name = "ScopeType", required = true)
@XmlSchemaType(name = "NMTOKEN")
protected ScopeTypeEnumeration scopeType;
@XmlElement(name = "Affects", required = true)
protected AffectsScopeStructure affects;
/**
* Gets the value of the scopeType property.
*
* @return
* possible object is
* {@link ScopeTypeEnumeration }
*
*/
public ScopeTypeEnumeration getScopeType() {
return scopeType;
}
/**
* Sets the value of the scopeType property.
*
* @param value
* allowed object is
* {@link ScopeTypeEnumeration }
*
*/
public void setScopeType(ScopeTypeEnumeration value) {
this.scopeType = value;
}
/**
* Gets the value of the affects property.
*
* @return
* possible object is
* {@link AffectsScopeStructure }
*
*/
public AffectsScopeStructure getAffects() {
return affects;
}
/**
* Sets the value of the affects property.
*
* @param value
* allowed object is
* {@link AffectsScopeStructure }
*
*/
public void setAffects(AffectsScopeStructure value) {
this.affects = value;
}
public PublishingActionStructure.PublishAtScope withScopeType(ScopeTypeEnumeration value) {
setScopeType(value);
return this;
}
public PublishingActionStructure.PublishAtScope withAffects(AffectsScopeStructure value) {
setAffects(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);
}
}
}