test_class.declarator: tableRuleConfigYamlSwapper = new EncryptTableRuleConfigurationYamlSwapper()
test_class.modifier: private final
test_class.original_string: private final EncryptTableRuleConfigurationYamlSwapper tableRuleConfigYamlSwapper = new EncryptTableRuleConfigurationYamlSwapper();
test_class.type: EncryptTableRuleConfigurationYamlSwapper
test_class.var_name: tableRuleConfigYamlSwapper
test_class.file: shardingsphere-features/shardingsphere-encrypt/shardingsphere-encrypt-common/src/test/java/org/apache/shardingsphere/encrypt/yaml/swapper/rule/EncryptTableRuleConfigurationYamlSwapperTest.java
test_class.identifier: EncryptTableRuleConfigurationYamlSwapperTest
test_case.body: @Test
      public void assertSwapToObject() {
          YamlEncryptColumnRuleConfiguration encryptColumnRuleConfig = new YamlEncryptColumnRuleConfiguration();
          encryptColumnRuleConfig.setLogicColumn("encrypt_column");
          encryptColumnRuleConfig.setCipherColumn("encrypt_cipher");
          encryptColumnRuleConfig.setAssistedQueryColumn("encrypt_assisted");
          encryptColumnRuleConfig.setPlainColumn("encrypt_plain");
          encryptColumnRuleConfig.setEncryptorName("test_encryptor");
          Map<String, YamlEncryptColumnRuleConfiguration> columns = new LinkedHashMap<>(1);
          columns.put("test_column", encryptColumnRuleConfig);
          YamlEncryptTableRuleConfiguration yamlEncryptTableRuleConfig = new YamlEncryptTableRuleConfiguration();
          yamlEncryptTableRuleConfig.setName("test_table");
          yamlEncryptTableRuleConfig.setColumns(columns);
          EncryptTableRuleConfiguration actualEncryptTableRuleConfig = tableRuleConfigYamlSwapper.swapToObject(yamlEncryptTableRuleConfig);
          assertNotNull(actualEncryptTableRuleConfig);
          assertThat(actualEncryptTableRuleConfig.getName(), is("test_table"));
          Collection<EncryptColumnRuleConfiguration> actualColumns = actualEncryptTableRuleConfig.getColumns();
          assertFalse(actualColumns.isEmpty());
          assertThat(actualColumns.size(), is(1));
      }
test_case.class_method_signature: EncryptTableRuleConfigurationYamlSwapperTest.assertSwapToObject()
test_case.full_signature: @Test public void assertSwapToObject()
test_case.identifier: assertSwapToObject
test_case.invocations: setLogicColumn setCipherColumn setAssistedQueryColumn setPlainColumn setEncryptorName put setName setColumns swapToObject assertNotNull assertThat getName is getColumns assertFalse isEmpty assertThat size is
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void assertSwapToObject()
focal_class.declarator: columnYamlSwapper = new EncryptColumnRuleConfigurationYamlSwapper()
focal_class.modifier: private final
focal_class.original_string: private final EncryptColumnRuleConfigurationYamlSwapper columnYamlSwapper = new EncryptColumnRuleConfigurationYamlSwapper();
focal_class.type: EncryptColumnRuleConfigurationYamlSwapper
focal_class.var_name: columnYamlSwapper
focal_class.file: shardingsphere-features/shardingsphere-encrypt/shardingsphere-encrypt-common/src/main/java/org/apache/shardingsphere/encrypt/yaml/swapper/rule/EncryptTableRuleConfigurationYamlSwapper.java
focal_class.identifier: EncryptTableRuleConfigurationYamlSwapper
focal_class.interfaces: implements YamlSwapper<YamlEncryptTableRuleConfiguration, EncryptTableRuleConfiguration>
focal_class.class_method_signature: EncryptTableRuleConfigurationYamlSwapper.swapToYamlConfiguration(final EncryptTableRuleConfiguration data)
focal_class.full_signature: @Override public YamlEncryptTableRuleConfiguration swapToYamlConfiguration(final EncryptTableRuleConfiguration data)
focal_class.identifier: swapToYamlConfiguration
focal_class.modifiers: @Override public
focal_class.parameters: (final EncryptTableRuleConfiguration data)
focal_class.return: YamlEncryptTableRuleConfiguration
focal_class.signature: YamlEncryptTableRuleConfiguration swapToYamlConfiguration(final EncryptTableRuleConfiguration data)
focal_class.class_method_signature: EncryptTableRuleConfigurationYamlSwapper.swapToObject(final YamlEncryptTableRuleConfiguration yamlConfig)
focal_class.full_signature: @Override public EncryptTableRuleConfiguration swapToObject(final YamlEncryptTableRuleConfiguration yamlConfig)
focal_class.identifier: swapToObject
focal_class.modifiers: @Override public
focal_class.parameters: (final YamlEncryptTableRuleConfiguration yamlConfig)
focal_class.return: EncryptTableRuleConfiguration
focal_class.signature: EncryptTableRuleConfiguration swapToObject(final YamlEncryptTableRuleConfiguration yamlConfig)
focal_method.body: @Override
      public EncryptTableRuleConfiguration swapToObject(final YamlEncryptTableRuleConfiguration yamlConfig) {
          Collection<EncryptColumnRuleConfiguration> columns = new LinkedList<>();
          for (Entry<String, YamlEncryptColumnRuleConfiguration> entry : yamlConfig.getColumns().entrySet()) {
              YamlEncryptColumnRuleConfiguration yamlEncryptColumnRuleConfig = entry.getValue();
              yamlEncryptColumnRuleConfig.setLogicColumn(entry.getKey());
              columns.add(columnYamlSwapper.swapToObject(yamlEncryptColumnRuleConfig));
          }
          return new EncryptTableRuleConfiguration(yamlConfig.getName(), columns);
      }
focal_method.class_method_signature: EncryptTableRuleConfigurationYamlSwapper.swapToObject(final YamlEncryptTableRuleConfiguration yamlConfig)
focal_method.full_signature: @Override public EncryptTableRuleConfiguration swapToObject(final YamlEncryptTableRuleConfiguration yamlConfig)
focal_method.identifier: swapToObject
focal_method.invocations: entrySet getColumns getValue setLogicColumn getKey add swapToObject getName
focal_method.modifiers: @Override public
focal_method.parameters: (final YamlEncryptTableRuleConfiguration yamlConfig)
focal_method.return: EncryptTableRuleConfiguration
focal_method.signature: EncryptTableRuleConfiguration swapToObject(final YamlEncryptTableRuleConfiguration yamlConfig)