test_class.declarator: validator = new PidValidator()
test_class.modifier: private static final
test_class.original_string: private static final PidValidator validator = new PidValidator();
test_class.type: PidValidator
test_class.var_name: validator
test_class.file: commons/ihe/xds/src/test/java/org/openehealth/ipf/commons/ihe/xds/core/validate/PidValidatorTest.java
test_class.identifier: PidValidatorTest
test_case.body: @Test
      public void testValidateGoodCases() throws XDSMetaDataException {
          validator.validate("PID-3|");
          validator.validate("PID-3|something");
          validator.validate("PID-44|something");
      }
test_case.class_method_signature: PidValidatorTest.testValidateGoodCases()
test_case.full_signature: @Test public void testValidateGoodCases()
test_case.identifier: testValidateGoodCases
test_case.invocations: validate validate validate
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testValidateGoodCases()
focal_class.declarator: PID_PATTERN = Pattern.compile("\\s*PID-([1-9][0-9]*)\\|(.*)\\s*")
focal_class.modifier: private static final
focal_class.original_string: private static final Pattern PID_PATTERN = Pattern.compile("\\s*PID-([1-9][0-9]*)\\|(.*)\\s*");
focal_class.type: Pattern
focal_class.var_name: PID_PATTERN
focal_class.file: commons/ihe/xds/src/main/java/org/openehealth/ipf/commons/ihe/xds/core/validate/PidValidator.java
focal_class.identifier: PidValidator
focal_class.interfaces: implements ValueValidator
focal_class.class_method_signature: PidValidator.validate(String value)
focal_class.full_signature: @Override public void validate(String value)
focal_class.identifier: validate
focal_class.modifiers: @Override public
focal_class.parameters: (String value)
focal_class.return: void
focal_class.signature: void validate(String value)
focal_method.body: @Override
      public void validate(String value) throws XDSMetaDataException {
          notNull(value, "value cannot be null");
          
          Matcher matcher = PID_PATTERN.matcher(value);
          metaDataAssert(matcher.matches(), INVALID_PID, value);
                  
          int number = Integer.parseInt(matcher.group(1));
          metaDataAssert(number != 2 && number != 4 && number != 12 && number != 19,
                  UNSUPPORTED_PID, value);
      }
focal_method.class_method_signature: PidValidator.validate(String value)
focal_method.full_signature: @Override public void validate(String value)
focal_method.identifier: validate
focal_method.invocations: notNull matcher metaDataAssert matches parseInt group metaDataAssert
focal_method.modifiers: @Override public
focal_method.parameters: (String value)
focal_method.return: void
focal_method.signature: void validate(String value)