test_class.declarator: ruleConfig
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private EncryptRuleConfiguration ruleConfig;
test_class.type: EncryptRuleConfiguration
test_class.var_name: ruleConfig
test_class.file: shardingsphere-features/shardingsphere-encrypt/shardingsphere-encrypt-common/src/test/java/org/apache/shardingsphere/encrypt/yaml/swapper/EncryptRuleConfigurationYamlSwapperTest.java
test_class.identifier: EncryptRuleConfigurationYamlSwapperTest
test_case.body: @Test
      public void assertSwapToYamlConfiguration() {
          YamlEncryptRuleConfiguration actual = getSwapper().swapToYamlConfiguration(createEncryptRuleConfiguration());
          assertThat(actual.getTables().size(), is(1));
          assertThat(actual.getEncryptors().size(), is(1));
      }
test_case.class_method_signature: EncryptRuleConfigurationYamlSwapperTest.assertSwapToYamlConfiguration()
test_case.full_signature: @Test public void assertSwapToYamlConfiguration()
test_case.identifier: assertSwapToYamlConfiguration
test_case.invocations: swapToYamlConfiguration getSwapper createEncryptRuleConfiguration assertThat size getTables is assertThat size getEncryptors is
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void assertSwapToYamlConfiguration()
focal_class.declarator: tableYamlSwapper = new EncryptTableRuleConfigurationYamlSwapper()
focal_class.modifier: private final
focal_class.original_string: private final EncryptTableRuleConfigurationYamlSwapper tableYamlSwapper = new EncryptTableRuleConfigurationYamlSwapper();
focal_class.type: EncryptTableRuleConfigurationYamlSwapper
focal_class.var_name: tableYamlSwapper
focal_class.declarator: algorithmSwapper = new ShardingSphereAlgorithmConfigurationYamlSwapper()
focal_class.modifier: private final
focal_class.original_string: private final ShardingSphereAlgorithmConfigurationYamlSwapper algorithmSwapper = new ShardingSphereAlgorithmConfigurationYamlSwapper();
focal_class.type: ShardingSphereAlgorithmConfigurationYamlSwapper
focal_class.var_name: algorithmSwapper
focal_class.file: shardingsphere-features/shardingsphere-encrypt/shardingsphere-encrypt-common/src/main/java/org/apache/shardingsphere/encrypt/yaml/swapper/EncryptRuleConfigurationYamlSwapper.java
focal_class.identifier: EncryptRuleConfigurationYamlSwapper
focal_class.interfaces: implements YamlRuleConfigurationSwapper<YamlEncryptRuleConfiguration, EncryptRuleConfiguration>
focal_class.class_method_signature: EncryptRuleConfigurationYamlSwapper.swapToYamlConfiguration(final EncryptRuleConfiguration data)
focal_class.full_signature: @Override public YamlEncryptRuleConfiguration swapToYamlConfiguration(final EncryptRuleConfiguration data)
focal_class.identifier: swapToYamlConfiguration
focal_class.modifiers: @Override public
focal_class.parameters: (final EncryptRuleConfiguration data)
focal_class.return: YamlEncryptRuleConfiguration
focal_class.signature: YamlEncryptRuleConfiguration swapToYamlConfiguration(final EncryptRuleConfiguration data)
focal_class.class_method_signature: EncryptRuleConfigurationYamlSwapper.swapToObject(final YamlEncryptRuleConfiguration yamlConfig)
focal_class.full_signature: @Override public EncryptRuleConfiguration swapToObject(final YamlEncryptRuleConfiguration yamlConfig)
focal_class.identifier: swapToObject
focal_class.modifiers: @Override public
focal_class.parameters: (final YamlEncryptRuleConfiguration yamlConfig)
focal_class.return: EncryptRuleConfiguration
focal_class.signature: EncryptRuleConfiguration swapToObject(final YamlEncryptRuleConfiguration yamlConfig)
focal_class.class_method_signature: EncryptRuleConfigurationYamlSwapper.swapTables(final YamlEncryptRuleConfiguration yamlConfig)
focal_class.full_signature: private Collection<EncryptTableRuleConfiguration> swapTables(final YamlEncryptRuleConfiguration yamlConfig)
focal_class.identifier: swapTables
focal_class.modifiers: private
focal_class.parameters: (final YamlEncryptRuleConfiguration yamlConfig)
focal_class.return: Collection<EncryptTableRuleConfiguration>
focal_class.signature: Collection<EncryptTableRuleConfiguration> swapTables(final YamlEncryptRuleConfiguration yamlConfig)
focal_class.class_method_signature: EncryptRuleConfigurationYamlSwapper.swapEncryptAlgorithm(final YamlEncryptRuleConfiguration yamlConfig)
focal_class.full_signature: private Map<String, ShardingSphereAlgorithmConfiguration> swapEncryptAlgorithm(final YamlEncryptRuleConfiguration yamlConfig)
focal_class.identifier: swapEncryptAlgorithm
focal_class.modifiers: private
focal_class.parameters: (final YamlEncryptRuleConfiguration yamlConfig)
focal_class.return: Map<String, ShardingSphereAlgorithmConfiguration>
focal_class.signature: Map<String, ShardingSphereAlgorithmConfiguration> swapEncryptAlgorithm(final YamlEncryptRuleConfiguration yamlConfig)
focal_class.class_method_signature: EncryptRuleConfigurationYamlSwapper.getTypeClass()
focal_class.full_signature: @Override public Class<EncryptRuleConfiguration> getTypeClass()
focal_class.identifier: getTypeClass
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: Class<EncryptRuleConfiguration>
focal_class.signature: Class<EncryptRuleConfiguration> getTypeClass()
focal_class.class_method_signature: EncryptRuleConfigurationYamlSwapper.getRuleTagName()
focal_class.full_signature: @Override public String getRuleTagName()
focal_class.identifier: getRuleTagName
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getRuleTagName()
focal_class.class_method_signature: EncryptRuleConfigurationYamlSwapper.getOrder()
focal_class.full_signature: @Override public int getOrder()
focal_class.identifier: getOrder
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int getOrder()
focal_method.body: @Override
      public YamlEncryptRuleConfiguration swapToYamlConfiguration(final EncryptRuleConfiguration data) {
          YamlEncryptRuleConfiguration result = new YamlEncryptRuleConfiguration();
          data.getTables().forEach(each -> result.getTables().put(each.getName(), tableYamlSwapper.swapToYamlConfiguration(each)));
          data.getEncryptors().forEach((key, value) -> result.getEncryptors().put(key, algorithmSwapper.swapToYamlConfiguration(value)));
          return result;
      }
focal_method.class_method_signature: EncryptRuleConfigurationYamlSwapper.swapToYamlConfiguration(final EncryptRuleConfiguration data)
focal_method.full_signature: @Override public YamlEncryptRuleConfiguration swapToYamlConfiguration(final EncryptRuleConfiguration data)
focal_method.identifier: swapToYamlConfiguration
focal_method.invocations: forEach getTables put getTables getName swapToYamlConfiguration forEach getEncryptors put getEncryptors swapToYamlConfiguration
focal_method.modifiers: @Override public
focal_method.parameters: (final EncryptRuleConfiguration data)
focal_method.return: YamlEncryptRuleConfiguration
focal_method.signature: YamlEncryptRuleConfiguration swapToYamlConfiguration(final EncryptRuleConfiguration data)