test_class.declarator: validator
test_class.modifier: private
test_class.original_string: private RetrieveDocumentSetRequestValidator validator;
test_class.type: RetrieveDocumentSetRequestValidator
test_class.var_name: validator
test_class.declarator: request
test_class.modifier: private
test_class.original_string: private RetrieveDocumentSet request;
test_class.type: RetrieveDocumentSet
test_class.var_name: request
test_class.declarator: transformer
test_class.modifier: private
test_class.original_string: private RetrieveDocumentSetRequestTransformer transformer;
test_class.type: RetrieveDocumentSetRequestTransformer
test_class.var_name: transformer
test_class.declarator: profile
test_class.modifier: private
test_class.original_string: private ValidationProfile profile;
test_class.type: ValidationProfile
test_class.var_name: profile
test_class.file: commons/ihe/xds/src/test/java/org/openehealth/ipf/commons/ihe/xds/core/validate/requests/RetrieveDocumentSetRequestValidatorTest.java
test_class.identifier: RetrieveDocumentSetRequestValidatorTest
test_case.body: @Test
      public void testGoodCase() throws XDSMetaDataException {
          validator.validate(transformer.toEbXML(request), profile);
      }
test_case.class_method_signature: RetrieveDocumentSetRequestValidatorTest.testGoodCase()
test_case.full_signature: @Test public void testGoodCase()
test_case.identifier: testGoodCase
test_case.invocations: validate toEbXML
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testGoodCase()
focal_class.declarator: hcValidator = new HomeCommunityIdValidator(true)
focal_class.modifier: private final
focal_class.original_string: private final HomeCommunityIdValidator hcValidator = new HomeCommunityIdValidator(true);
focal_class.type: HomeCommunityIdValidator
focal_class.var_name: hcValidator
focal_class.file: commons/ihe/xds/src/main/java/org/openehealth/ipf/commons/ihe/xds/core/validate/requests/RetrieveDocumentSetRequestValidator.java
focal_class.identifier: RetrieveDocumentSetRequestValidator
focal_class.interfaces: implements Validator<EbXMLRetrieveDocumentSetRequest, ValidationProfile>
focal_class.class_method_signature: RetrieveDocumentSetRequestValidator.validate(EbXMLRetrieveDocumentSetRequest request, ValidationProfile profile)
focal_class.full_signature: @Override public void validate(EbXMLRetrieveDocumentSetRequest request, ValidationProfile profile)
focal_class.identifier: validate
focal_class.modifiers: @Override public
focal_class.parameters: (EbXMLRetrieveDocumentSetRequest request, ValidationProfile profile)
focal_class.return: void
focal_class.signature: void validate(EbXMLRetrieveDocumentSetRequest request, ValidationProfile profile)
focal_method.body: @Override
      public void validate(EbXMLRetrieveDocumentSetRequest request, ValidationProfile profile) {
          notNull(request, "request cannot be null");
          
          for (RetrieveDocument document : request.getDocuments()) {
              String repoId = document.getRepositoryUniqueId();
              metaDataAssert(repoId != null && !repoId.isEmpty(), REPO_ID_MUST_BE_SPECIFIED);
              
              String docId = document.getDocumentUniqueId();
              metaDataAssert(docId != null && !docId.isEmpty(), DOC_ID_MUST_BE_SPECIFIED);
  
              if (profile.getProfile() == ValidationProfile.InteractionProfile.XCA) {
                  hcValidator.validate(document.getHomeCommunityId());
              }
          }
      }
focal_method.class_method_signature: RetrieveDocumentSetRequestValidator.validate(EbXMLRetrieveDocumentSetRequest request, ValidationProfile profile)
focal_method.full_signature: @Override public void validate(EbXMLRetrieveDocumentSetRequest request, ValidationProfile profile)
focal_method.identifier: validate
focal_method.invocations: notNull getDocuments getRepositoryUniqueId metaDataAssert isEmpty getDocumentUniqueId metaDataAssert isEmpty getProfile validate getHomeCommunityId
focal_method.modifiers: @Override public
focal_method.parameters: (EbXMLRetrieveDocumentSetRequest request, ValidationProfile profile)
focal_method.return: void
focal_method.signature: void validate(EbXMLRetrieveDocumentSetRequest request, ValidationProfile profile)