"""Entry point for parsing LOL DMSContent XML responses."""
import xml.etree.ElementTree as ET

from ecmind_blue_client.ecm.parser._dms_content_object_type_lol import (
    DmsContentObjectTypeLol,
)
from ecmind_blue_client.ecm.parser._dms_content_parser import DmsContentParser


class DmsContentParserLol(DmsContentParser[DmsContentObjectTypeLol]):
    """LOL parser for DMSContent XML responses from ``dms.GetResultList``.

    Use this parser when the query was built with ``DmsQueryBuilderLol``. Object types
    expose their result rows via ``DmsContentObjectTypeLol.rows()``.
    """

    def _init_object_type(self, node: ET.Element, archive: ET.Element) -> DmsContentObjectTypeLol:
        return DmsContentObjectTypeLol(node, archive)
