test_class.declarator: validator = new RecipientListValidator()
test_class.modifier: private static final
test_class.original_string: private static final RecipientListValidator validator = new RecipientListValidator();
test_class.type: RecipientListValidator
test_class.var_name: validator
test_class.file: commons/ihe/xds/src/test/java/org/openehealth/ipf/commons/ihe/xds/core/validate/RecipientListValidatorTest.java
test_class.identifier: RecipientListValidatorTest
test_case.body: @Test
      public void testValidateGoodCases() throws XDSMetaDataException {
          validator.validate(Arrays.asList("Some Hospital|^Welby"));
          validator.validate(Arrays.asList("|^Welby"));
          validator.validate(Arrays.asList("|ONLYID"));
          validator.validate(Arrays.asList("Some Hospital"));
          validator.validate(Arrays.asList("Some Hospital", "|^Welby"));
      }
test_case.class_method_signature: RecipientListValidatorTest.testValidateGoodCases()
test_case.full_signature: @Test public void testValidateGoodCases()
test_case.identifier: testValidateGoodCases
test_case.invocations: validate asList validate asList validate asList validate asList validate asList
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testValidateGoodCases()
focal_class.declarator: xcnValidator = new XCNValidator()
focal_class.modifier: private final
focal_class.original_string: private final XCNValidator xcnValidator = new XCNValidator();
focal_class.type: XCNValidator
focal_class.var_name: xcnValidator
focal_class.declarator: xonValidator = new XONValidator()
focal_class.modifier: private final
focal_class.original_string: private final XONValidator xonValidator = new XONValidator();
focal_class.type: XONValidator
focal_class.var_name: xonValidator
focal_class.file: commons/ihe/xds/src/main/java/org/openehealth/ipf/commons/ihe/xds/core/validate/RecipientListValidator.java
focal_class.identifier: RecipientListValidator
focal_class.interfaces: implements ValueListValidator
focal_class.class_method_signature: RecipientListValidator.validate(List<String> values)
focal_class.full_signature: @Override public void validate(List<String> values)
focal_class.identifier: validate
focal_class.modifiers: @Override public
focal_class.parameters: (List<String> values)
focal_class.return: void
focal_class.signature: void validate(List<String> values)
focal_method.body: @Override
      public void validate(List<String> values) throws XDSMetaDataException {
          noNullElements(values, "values cannot contain null elements");
  //        This check is disabled for compatibility with older versions.
  //        metaDataAssert(!values.isEmpty(), RECIPIENT_LIST_EMPTY);
          
          for (String value : values) {
              metaDataAssert(!value.isEmpty(), RECIPIENT_EMPTY);
  
              String[] parts = value.split("\\|", 4);
              metaDataAssert((parts.length > 0) && (parts.length <= 3), INVALID_RECIPIENT, value);
  
              if (! parts[0].isEmpty()) {
                  xonValidator.validate(parts[0]);
              }
  
              if ((parts.length > 1) && (! parts[1].isEmpty())) {
                  xcnValidator.validate(parts[1]);
              }
          }
      }
focal_method.class_method_signature: RecipientListValidator.validate(List<String> values)
focal_method.full_signature: @Override public void validate(List<String> values)
focal_method.identifier: validate
focal_method.invocations: noNullElements metaDataAssert isEmpty split metaDataAssert isEmpty validate isEmpty validate
focal_method.modifiers: @Override public
focal_method.parameters: (List<String> values)
focal_method.return: void
focal_method.signature: void validate(List<String> values)