from __future__ import annotations
from dataclasses import dataclass, field
from .check_constraint import CheckConstraint
from .check_constraint_ref import CheckConstraintRef
from .containment_aggregation_structure import ContainmentAggregationStructure

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


@dataclass(slots=True, kw_only=True)
class CheckConstraintsRelStructure(ContainmentAggregationStructure):
    class Meta:
        name = "checkConstraints_RelStructure"

    check_constraint_ref_or_check_constraint: list[CheckConstraintRef | CheckConstraint] = field(
        default_factory=list,
        metadata={
            "type": "Elements",
            "choices": (
                {
                    "name": "CheckConstraintRef",
                    "type": CheckConstraintRef,
                    "namespace": "http://www.netex.org.uk/netex",
                },
                {
                    "name": "CheckConstraint",
                    "type": CheckConstraint,
                    "namespace": "http://www.netex.org.uk/netex",
                },
            ),
        }
    )