@classmethod
def _template_generatable(cls, template: str) ->bool:
    """
        Returns whether the class has the required info to generate code for a specified code
        template string.
        """
    get_set_value_requires = (cls._name_value_type is not None and cls.
        _name_get_value_func is not None and cls._name_set_value_func is not
        None)
    get_set_enable_requires = (cls._name_get_enabled_func is not None and
        cls._name_set_enabled_func)
    requirements = {cls._template_get_value: get_set_value_requires, cls.
        _template_set_value: get_set_value_requires, cls.
        _template_get_enabled: get_set_enable_requires, cls.
        _template_set_enabled: get_set_enable_requires}
    return requirements[template]
