All Downloads are FREE. Search and download functionalities are using the official Maven repository.

de.vdv.ojp20.PointOfInterestStructure Maven / Gradle / Ivy

The newest version!
//
// 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;

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.NormalizedStringAdapter;
import jakarta.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.opentripplanner.ojp.netex.OmitNullsToStringStyle;


/**
 * [corresponds to POINT OF INTEREST in TMv6 with related information] type of PLACE to or through which passengers may wish to navigate as part of their journey and which is modelled in detail by journey planners.
 * 
 * 

Java class for PointOfInterestStructure complex type

. * *

The following schema fragment specifies the expected content contained within this class.

* *
{@code
 * 
 *   
 *     
 *       
 *         
 *         
 *         
 *         
 *         
 *         
 *         
 *       
 *     
 *   
 * 
 * }
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "PointOfInterestStructure", propOrder = { "publicCode", "name", "nameSuffix", "pointOfInterestCategory", "privateCode", "topographicPlaceRef", "poiAdditionalInformation" }) public class PointOfInterestStructure { /** * ID of this Point of Interest. * */ @XmlElement(name = "PublicCode", required = true) @XmlJavaTypeAdapter(NormalizedStringAdapter.class) @XmlSchemaType(name = "normalizedString") protected String publicCode; /** * Name or description of point of interest for use in passenger information. * */ @XmlElement(name = "Name", required = true) protected InternationalTextStructure name; /** * Additional description of the point of interest that may be appended to the name if enough space is available. E.g. "Exhibition Center". * */ @XmlElement(name = "NameSuffix") protected InternationalTextStructure nameSuffix; /** * Categories this POI is associated with. Order indicates descending relevance. * */ @XmlElement(name = "PointOfInterestCategory") protected List pointOfInterestCategory; /** * Code of this point of interest in private/foreign/proprietary coding schemes. * */ @XmlElement(name = "PrivateCode") protected List privateCode; /** * Reference to a TopographicPlace * */ @XmlElement(name = "TopographicPlaceRef") protected TopographicPlaceRefStructure topographicPlaceRef; /** * Additional information for this POI (e.g., information on available parking slots, charging infrastructure, sharing vehicles). * */ @XmlElement(name = "POIAdditionalInformation") protected PointOfInterestAdditionalInformationStructure poiAdditionalInformation; /** * ID of this Point of Interest. * * @return * possible object is * {@link String } * */ public String getPublicCode() { return publicCode; } /** * Sets the value of the publicCode property. * * @param value * allowed object is * {@link String } * * @see #getPublicCode() */ public void setPublicCode(String value) { this.publicCode = value; } /** * Name or description of point of interest for use in passenger information. * * @return * possible object is * {@link InternationalTextStructure } * */ public InternationalTextStructure getName() { return name; } /** * Sets the value of the name property. * * @param value * allowed object is * {@link InternationalTextStructure } * * @see #getName() */ public void setName(InternationalTextStructure value) { this.name = value; } /** * Additional description of the point of interest that may be appended to the name if enough space is available. E.g. "Exhibition Center". * * @return * possible object is * {@link InternationalTextStructure } * */ public InternationalTextStructure getNameSuffix() { return nameSuffix; } /** * Sets the value of the nameSuffix property. * * @param value * allowed object is * {@link InternationalTextStructure } * * @see #getNameSuffix() */ public void setNameSuffix(InternationalTextStructure value) { this.nameSuffix = value; } /** * Categories this POI is associated with. Order indicates descending relevance. * * Gets the value of the pointOfInterestCategory 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 pointOfInterestCategory property.

* *

* For example, to add a new item, do as follows: *

*
     * getPointOfInterestCategory().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link PointOfInterestCategoryStructure } *

* * * @return * The value of the pointOfInterestCategory property. */ public List getPointOfInterestCategory() { if (pointOfInterestCategory == null) { pointOfInterestCategory = new ArrayList<>(); } return this.pointOfInterestCategory; } /** * Code of this point of interest in private/foreign/proprietary coding schemes. * * Gets the value of the privateCode 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 privateCode property.

* *

* For example, to add a new item, do as follows: *

*
     * getPrivateCode().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link PrivateCodeStructure } *

* * * @return * The value of the privateCode property. */ public List getPrivateCode() { if (privateCode == null) { privateCode = new ArrayList<>(); } return this.privateCode; } /** * Reference to a TopographicPlace * * @return * possible object is * {@link TopographicPlaceRefStructure } * */ public TopographicPlaceRefStructure getTopographicPlaceRef() { return topographicPlaceRef; } /** * Sets the value of the topographicPlaceRef property. * * @param value * allowed object is * {@link TopographicPlaceRefStructure } * * @see #getTopographicPlaceRef() */ public void setTopographicPlaceRef(TopographicPlaceRefStructure value) { this.topographicPlaceRef = value; } /** * Additional information for this POI (e.g., information on available parking slots, charging infrastructure, sharing vehicles). * * @return * possible object is * {@link PointOfInterestAdditionalInformationStructure } * */ public PointOfInterestAdditionalInformationStructure getPOIAdditionalInformation() { return poiAdditionalInformation; } /** * Sets the value of the poiAdditionalInformation property. * * @param value * allowed object is * {@link PointOfInterestAdditionalInformationStructure } * * @see #getPOIAdditionalInformation() */ public void setPOIAdditionalInformation(PointOfInterestAdditionalInformationStructure value) { this.poiAdditionalInformation = value; } public PointOfInterestStructure withPublicCode(String value) { setPublicCode(value); return this; } public PointOfInterestStructure withName(InternationalTextStructure value) { setName(value); return this; } public PointOfInterestStructure withNameSuffix(InternationalTextStructure value) { setNameSuffix(value); return this; } public PointOfInterestStructure withPointOfInterestCategory(PointOfInterestCategoryStructure... values) { if (values!= null) { for (PointOfInterestCategoryStructure value: values) { getPointOfInterestCategory().add(value); } } return this; } public PointOfInterestStructure withPointOfInterestCategory(Collection values) { if (values!= null) { getPointOfInterestCategory().addAll(values); } return this; } public PointOfInterestStructure withPrivateCode(PrivateCodeStructure... values) { if (values!= null) { for (PrivateCodeStructure value: values) { getPrivateCode().add(value); } } return this; } public PointOfInterestStructure withPrivateCode(Collection values) { if (values!= null) { getPrivateCode().addAll(values); } return this; } public PointOfInterestStructure withTopographicPlaceRef(TopographicPlaceRefStructure value) { setTopographicPlaceRef(value); return this; } public PointOfInterestStructure withPOIAdditionalInformation(PointOfInterestAdditionalInformationStructure value) { setPOIAdditionalInformation(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); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy