3
6ßL]O	  ã               @   s$   d Z ddlmZ G dd„ deƒZdS )zV Defines the ITemplate interface used to create templatizable object
    hierarchies.
é    )Ú	Interfacec               @   s0   e Zd ZdZdd„ Zdd„ Zdd„ Zdd	„ Zd
S )Ú	ITemplatez^ Defines the ITemplate interface used to create templatizable object
        hierarchies.
    c             C   s   dS )a¡   Returns a list of **TemplateDataName** objects, one for each
            bindable data source contained within the template. Each
            **TemplateDataName** object supports unresolved bindings in
            addition to resolved bindings. Also, a **TemplateDataName** may be
            marked as *optional*, meaning the if the name remains unresolved,
            the application can take an alternative action (e.g. omit the data
            from a plot, or substitute default data, etc.).

            Returns
            -------
            A list of **TemplateDataName** objects, one for each bindable data
            source contained in the template.
        N© )Úselfr   r   úA/tmp/pip-install-5sebvq2j/apptools/apptools/template/itemplate.pyÚnames_from_template"   s    zITemplate.names_from_templatec             C   s   dS )z€ Activates the object from its template data.

            Returns
            -------
            The original object.
        Nr   )r   r   r   r   Úobject_from_template1   s    zITemplate.object_from_templatec             C   s   dS )zÈ Returns a *templatized* version of the object that is safe for
            serialization.

            Returns
            -------
            A new object of the same class as the original.
        Nr   )r   r   r   r   Útemplate_from_object9   s    zITemplate.template_from_objectc             C   s   dS )z² Converts all contained 'TDerived' objects to real objects using the
            template traits of the object.

            Returns
            -------
            None
        Nr   )r   r   r   r   Úactivate_templateB   s    zITemplate.activate_templateN)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r   r	   r
   r   r   r   r   r      s
   	r   N)r   Z
traits.apir   r   r   r   r   r   Ú<module>   s   