protected void doEndElement()

in paimon-filesystems/paimon-s3-impl/src/main/java/com/amazonaws/services/s3/model/transform/XmlResponsesSaxParser.java [2066:2127]


        protected void doEndElement(String uri, String name, String qName) {
            if (in(REPLICATION_CONFIG)) {
                if (name.equals(RULE)) {
                    bucketReplicationConfiguration.addRule(currentRuleId, currentRule);
                    currentRule = null;
                    currentRuleId = null;
                    destinationConfig = null;
                    sseKmsEncryptedObjects = null;
                    accessControlTranslation = null;
                    encryptionConfiguration = null;
                } else if (name.equals(ROLE)) {
                    bucketReplicationConfiguration.setRoleARN(getText());
                }
            } else if (in(REPLICATION_CONFIG, RULE)) {
                if (name.equals(ID)) {
                    currentRuleId = getText();
                } else if (name.equals(PREFIX)) {
                    currentRule.setPrefix(getText());
                } else if (name.equals(SOURCE_SELECTION_CRITERIA)) {
                    currentRule.setSourceSelectionCriteria(sourceSelectionCriteria);
                } else {
                    if (name.equals(STATUS)) {
                        currentRule.setStatus(getText());

                    } else if (name.equals(DESTINATION)) {
                        currentRule.setDestinationConfig(destinationConfig);
                    }
                }
            } else if (in(REPLICATION_CONFIG, RULE, SOURCE_SELECTION_CRITERIA)) {
                if (name.equals(SSE_KMS_ENCRYPTED_OBJECTS)) {
                    sourceSelectionCriteria.setSseKmsEncryptedObjects(sseKmsEncryptedObjects);
                }
            } else if (in(
                    REPLICATION_CONFIG,
                    RULE,
                    SOURCE_SELECTION_CRITERIA,
                    SSE_KMS_ENCRYPTED_OBJECTS)) {
                if (name.equals(STATUS)) {
                    sseKmsEncryptedObjects.setStatus(getText());
                }
            } else if (in(REPLICATION_CONFIG, RULE, DESTINATION)) {
                if (name.equals(BUCKET)) {
                    destinationConfig.setBucketARN(getText());
                } else if (name.equals(STORAGECLASS)) {
                    destinationConfig.setStorageClass(getText());
                } else if (name.equals(ACCOUNT)) {
                    destinationConfig.setAccount(getText());
                } else if (name.equals(ACCESS_CONTROL_TRANSLATION)) {
                    destinationConfig.setAccessControlTranslation(accessControlTranslation);
                } else if (name.equals(ENCRYPTION_CONFIGURATION)) {
                    destinationConfig.setEncryptionConfiguration(encryptionConfiguration);
                }
            } else if (in(REPLICATION_CONFIG, RULE, DESTINATION, ACCESS_CONTROL_TRANSLATION)) {
                if (name.equals(OWNER)) {
                    accessControlTranslation.setOwner(getText());
                }
            } else if (in(REPLICATION_CONFIG, RULE, DESTINATION, ENCRYPTION_CONFIGURATION)) {
                if (name.equals(REPLICA_KMS_KEY_ID)) {
                    encryptionConfiguration.setReplicaKmsKeyID(getText());
                }
            }
        }