コード例 #1
0
ファイル: generateMeta.py プロジェクト: ljo/META-SHARE
def parseAndGenerate(outfileName, prefix, xschemaFileName, processIncludes,
  package_prefix, force_optional_choices):
    root = parse_schema(xschemaFileName, processIncludes, force_optional_choices)
            
    Clazz.extract_descriptors(xschemaFileName)

    if DEBUG:
        debug_show_root(root)
    
    createClazzes(prefix, root)
    
    if DEBUG:
        for key, value in Clazz.ClazzDict.items():
            print 'clazzName: {}  elt: {}'.format(key, value.schema_element)
    
    Clazz.generate(prefix, root, package_prefix)
コード例 #2
0
def parseAndGenerate(outDirName, prefix, xschemaFileName, processIncludes,
                     package_prefix, force_optional_choices):
    root = parse_schema(xschemaFileName, processIncludes,
                        force_optional_choices)

    Clazz.extract_descriptors(xschemaFileName)

    if DEBUG:
        debug_show_root(root)

    createClazzes(prefix, root)

    if DEBUG:
        for key, value in Clazz.ClazzDict.items():
            print 'clazzName: {}  elt: {}'.format(key, value.schema_element)

    Clazz.generate(outDirName, prefix, root, parse_xsd.Targetnamespace,
                   parse_xsd.SchemaVersion, package_prefix)