예제 #1
0
 def parse(self,
           dsl_string,
           alias_mapping_dict=None,
           alias_mapping_url=None,
           resources_base_url=None):
     dsl_string = AbstractTestParser.BASIC_VERSION_SECTION + dsl_string
     return dsl_parse(dsl_string, alias_mapping_dict, alias_mapping_url,
                      resources_base_url)
 def parse(self, dsl_string,
           resources_base_url=None,
           dsl_version=BASIC_VERSION_SECTION_DSL_1_0,
           resolver=None,
           validate_version=True):
     # add dsl version if missing
     if DSL_VERSION_PREFIX not in dsl_string:
         dsl_string = dsl_version + dsl_string
         if not resolver:
             resolver = DefaultImportResolver()
     return dsl_parse(dsl_string,
                      resources_base_url=resources_base_url,
                      resolver=resolver,
                      validate_version=validate_version)
예제 #3
0
 def parse(self, dsl_string,
           resources_base_path=None,
           dsl_version=BASIC_VERSION_SECTION_DSL_1_0,
           resolver=None,
           validate_version=True):
     # add dsl version if missing
     if DSL_VERSION_PREFIX not in dsl_string:
         dsl_string = dsl_version + dsl_string
         if not resolver:
             resolver = DefaultImportResolver()
     return dsl_parse(dsl_string,
                      resources_base_path=resources_base_path,
                      resolver=resolver,
                      validate_version=validate_version)
 def parse(self, dsl_string, alias_mapping_dict=None,
           alias_mapping_url=None, resources_base_url=None):
     dsl_string = AbstractTestParser.BASIC_VERSION_SECTION + dsl_string
     return dsl_parse(dsl_string, alias_mapping_dict, alias_mapping_url,
                      resources_base_url)
 def parse(self, dsl_string, resources_base_url=None,
           dsl_version=BASIC_VERSION_SECTION_DSL_1_0):
     # add dsl version if missing
     if DSL_VERSION_PREFIX not in dsl_string:
         dsl_string = dsl_version + dsl_string
     return dsl_parse(dsl_string, resources_base_url)