def get_class_validator_function_name(name):
    """Converts name to a python class validator function name.

    Keyword Arguments:
    name - name being converted.

    """
    name = get_class_functional_name(name)
    return 'validate_{0}'.format(name)
def get_class_decoder_function_name(name):
    """Converts name to a python class decoder function name.

    Keyword Arguments:
    name - name being converted.

    """
    name = get_class_functional_name(name)
    return 'decode_{0}'.format(name)
 def get_functions():
     fns = ''
     for cls in ctx.pkg.classes:
         fn = get_template(ctx, _TEMPLATE_VALIDATOR_FUNCTION)
         fn = fn.replace('{class-name}', get_class_name(cls))
         fn = fn.replace('{class-function-name}', get_class_functional_name(cls))
         fn = fn.replace('{class-doc-name}', get_class_doc_string_name(cls))
         fn += emit_line_return(3)
         fns += fn
     return fns
 def get_functions():
     fns = ''
     for cls in ctx.pkg.classes:
         dcs = self.get_decodings(cls)
         fn = get_template(ctx, _TEMPLATE_DECODER_FUNCTION)
         fn = fn.replace('{class-name}', get_class_name(cls))
         fn = fn.replace('{class-function-name}', get_class_functional_name(cls))
         fn = fn.replace('{class-doc-name}', get_class_doc_string_name(cls))
         fn = fn.replace('{class-decodings}', dcs)
         fn += emit_line_return(3)
         fns += fn
     return fns