from __future__ import annotations
from dataclasses import dataclass, field
from .line_string_type import LineStringType
from .point_on_link import PointOnLink
from .strict_containment_aggregation_structure import StrictContainmentAggregationStructure

__NAMESPACE__ = "http://www.netex.org.uk/netex"


@dataclass(slots=True, kw_only=True)
class PointsOnLinkRelStructure(StrictContainmentAggregationStructure):
    class Meta:
        name = "pointsOnLink_RelStructure"

    point_on_link: list[PointOnLink] = field(
        default_factory=list,
        metadata={
            "name": "PointOnLink",
            "type": "Element",
            "namespace": "http://www.netex.org.uk/netex",
            "min_occurs": 1,
        }
    )
    line_string: None | LineStringType = field(
        default=None,
        metadata={
            "name": "LineString",
            "type": "Element",
            "namespace": "http://www.netex.org.uk/netex",
        }
    )