a
    CøgH  ã                   @   sF   d dl mZmZmZ d dlmZmZmZ eeef Z	G dd„ dƒZ
dS )é    )ÚAnyÚDictÚOptional)ÚHTMLÚElementÚTagc                   @   s~   e Zd ZdZedeee edœdd„ƒZ	ee
edœdd„ƒZeeeed	œd
d„ƒZeee
dœdd„ƒZeee
dœdd„ƒZdS )Ú	DOMEnginez2
    Parent class of all DOM implementations.
    N)Útype_ÚattrÚreturnc                 C   s   t ‚dS )zS
        Creates and returns a tree node of the given type and attributes.
        N©ÚNotImplementedError)r	   r
   © r   ú\/var/www/lab.imftr.de/x/nb_venv/lib/python3.9/site-packages/draftjs_exporter/engines/base.pyÚ
create_tag   s    zDOMEngine.create_tag)Úmarkupr   c                 C   s   t ‚dS )z¶
        Creates nodes based on the input html.
        Note: this method is used in component implementations only, and
        is not required for the exporter to operate.
        Nr   )r   r   r   r   Ú
parse_html   s    zDOMEngine.parse_html)ÚeltÚchildr   c                 C   s   t ‚dS )zF
        Appends the given child node in the children of elt.
        Nr   )r   r   r   r   r   Úappend_child   s    zDOMEngine.append_child)r   r   c                 C   s   t ‚dS )z2
        Renders a given element to HTML.
        Nr   ©r   r   r   r   Úrender$   s    zDOMEngine.renderc                 C   s   t ‚dS )z°
        Renders a given element to HTML.
        Note: this method is only used for draftjs_exporter's tests, and
        is not required for the exporter to operate.
        Nr   r   r   r   r   Úrender_debug+   s    zDOMEngine.render_debug)N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__Ústaticmethodr   r   ÚAttrr   r   r   r   r   r   r   r   r   r   r   r   r      s   r   N)Útypingr   r   r   Zdraftjs_exporter.typesr   r   r   Ústrr   r   r   r   r   r   Ú<module>   s   