test_class.file: shardingsphere-infra/shardingsphere-infra-common/src/test/java/org/apache/shardingsphere/infra/yaml/engine/YamlEngineTest.java
test_class.identifier: YamlEngineTest
test_case.body: @Test
      public void assertUnmarshalWithFile() throws IOException {
          URL url = getClass().getClassLoader().getResource("yaml/fixture-rule.yaml");
          assertNotNull(url);
          FixtureYamlRuleConfiguration actual = YamlEngine.unmarshal(new File(url.getFile()), FixtureYamlRuleConfiguration.class);
          assertThat(actual.getName(), is("test"));
      }
test_case.class_method_signature: YamlEngineTest.assertUnmarshalWithFile()
test_case.full_signature: @Test public void assertUnmarshalWithFile()
test_case.identifier: assertUnmarshalWithFile
test_case.invocations: getResource getClassLoader getClass assertNotNull unmarshal getFile assertThat getName is
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void assertUnmarshalWithFile()
focal_class.file: shardingsphere-infra/shardingsphere-infra-common/src/main/java/org/apache/shardingsphere/infra/yaml/engine/YamlEngine.java
focal_class.identifier: YamlEngine
focal_class.class_method_signature: YamlEngine.unmarshal(final File yamlFile, final Class<T> classType)
focal_class.full_signature: public static T unmarshal(final File yamlFile, final Class<T> classType)
focal_class.identifier: unmarshal
focal_class.modifiers: public static
focal_class.parameters: (final File yamlFile, final Class<T> classType)
focal_class.return: T
focal_class.signature: T unmarshal(final File yamlFile, final Class<T> classType)
focal_class.class_method_signature: YamlEngine.unmarshal(final byte[] yamlBytes, final Class<T> classType)
focal_class.full_signature: public static T unmarshal(final byte[] yamlBytes, final Class<T> classType)
focal_class.identifier: unmarshal
focal_class.modifiers: public static
focal_class.parameters: (final byte[] yamlBytes, final Class<T> classType)
focal_class.return: T
focal_class.signature: T unmarshal(final byte[] yamlBytes, final Class<T> classType)
focal_class.class_method_signature: YamlEngine.unmarshal(final String yamlContent, final Class<T> classType)
focal_class.full_signature: public static T unmarshal(final String yamlContent, final Class<T> classType)
focal_class.identifier: unmarshal
focal_class.modifiers: public static
focal_class.parameters: (final String yamlContent, final Class<T> classType)
focal_class.return: T
focal_class.signature: T unmarshal(final String yamlContent, final Class<T> classType)
focal_class.class_method_signature: YamlEngine.unmarshal(final String yamlContent)
focal_class.full_signature: public static Map<?, ?> unmarshal(final String yamlContent)
focal_class.identifier: unmarshal
focal_class.modifiers: public static
focal_class.parameters: (final String yamlContent)
focal_class.return: Map<?, ?>
focal_class.signature: Map<?, ?> unmarshal(final String yamlContent)
focal_class.class_method_signature: YamlEngine.unmarshalProperties(final String yamlContent)
focal_class.full_signature: public static Properties unmarshalProperties(final String yamlContent)
focal_class.identifier: unmarshalProperties
focal_class.modifiers: public static
focal_class.parameters: (final String yamlContent)
focal_class.return: Properties
focal_class.signature: Properties unmarshalProperties(final String yamlContent)
focal_class.class_method_signature: YamlEngine.marshal(final Object value)
focal_class.full_signature: public static String marshal(final Object value)
focal_class.identifier: marshal
focal_class.modifiers: public static
focal_class.parameters: (final Object value)
focal_class.return: String
focal_class.signature: String marshal(final Object value)
focal_method.body: public static <T extends YamlConfiguration> T unmarshal(final File yamlFile, final Class<T> classType) throws IOException {
          try (
                  FileInputStream fileInputStream = new FileInputStream(yamlFile);
                  InputStreamReader inputStreamReader = new InputStreamReader(fileInputStream)
          ) {
              return new Yaml(new ShardingSphereYamlConstructor(classType)).loadAs(inputStreamReader, classType);
          }
      }
focal_method.class_method_signature: YamlEngine.unmarshal(final File yamlFile, final Class<T> classType)
focal_method.full_signature: public static T unmarshal(final File yamlFile, final Class<T> classType)
focal_method.identifier: unmarshal
focal_method.invocations: loadAs
focal_method.modifiers: public static
focal_method.parameters: (final File yamlFile, final Class<T> classType)
focal_method.return: T
focal_method.signature: T unmarshal(final File yamlFile, final Class<T> classType)