test_class.file: modules/cda/oht/src/test/java/org/openehealth/ipf/modules/cda/support/DateTimeUtilsTest.java
test_class.identifier: DateTimeUtilsTest
test_case.body: @Test
      public void testIsValidDateTimeExactPrecision() {
          assertTrue(isValidDateTime("2009", YEAR_PRECISION, YEAR_PRECISION));
          assertTrue(isValidDateTime("200902", YEAR_PRECISION, MONTH_PRECISION));
          assertTrue(isValidDateTime("20090228", YEAR_PRECISION, DATE_PRECISION));
          assertTrue(isValidDateTime("200902281205", DATE_PRECISION,
                  DATETIME_MINUTE_PRECISION));
          assertTrue(isValidDateTime("200902281205+0001", DATE_PRECISION,
                  DATETIME_MINUTE_PRECISION));
          assertTrue(isValidDateTime("20090228120556", DATETIME_SECOND_PRECISION,
                  DATETIME_SECOND_PRECISION));
          assertFalse(isValidDateTime("2009", DATE_PRECISION, DATE_PRECISION));
          assertFalse(isValidDateTime("20090230", YEAR_PRECISION, YEAR_PRECISION));
      }
test_case.class_method_signature: DateTimeUtilsTest.testIsValidDateTimeExactPrecision()
test_case.full_signature: @Test public void testIsValidDateTimeExactPrecision()
test_case.identifier: testIsValidDateTimeExactPrecision
test_case.invocations: assertTrue isValidDateTime assertTrue isValidDateTime assertTrue isValidDateTime assertTrue isValidDateTime assertTrue isValidDateTime assertTrue isValidDateTime assertFalse isValidDateTime assertFalse isValidDateTime
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testIsValidDateTimeExactPrecision()
focal_class.declarator: YEAR_FORMAT = new DateTimeFormatterBuilder()
              .appendYear(4, 4).toFormatter()
focal_class.modifier: private static final
focal_class.original_string: private static final DateTimeFormatter YEAR_FORMAT = new DateTimeFormatterBuilder()
              .appendYear(4, 4).toFormatter();
focal_class.type: DateTimeFormatter
focal_class.var_name: YEAR_FORMAT
focal_class.declarator: YEAR_MONTH_FORMAT = new DateTimeFormatterBuilder()
              .appendYear(4, 4).appendMonthOfYear(2).toFormatter()
focal_class.modifier: private static final
focal_class.original_string: private static final DateTimeFormatter YEAR_MONTH_FORMAT = new DateTimeFormatterBuilder()
              .appendYear(4, 4).appendMonthOfYear(2).toFormatter();
focal_class.type: DateTimeFormatter
focal_class.var_name: YEAR_MONTH_FORMAT
focal_class.declarator: DATE_FORMAT = DateTimeFormat
              .forPattern("yyyyMMdd")
focal_class.modifier: private static final
focal_class.original_string: private static final DateTimeFormatter DATE_FORMAT = DateTimeFormat
              .forPattern("yyyyMMdd");
focal_class.type: DateTimeFormatter
focal_class.var_name: DATE_FORMAT
focal_class.declarator: DATETIME_MINUTE_FORMAT = DateTimeFormat
              .forPattern("yyyyMMddHHmm")
focal_class.modifier: private static final
focal_class.original_string: private static final DateTimeFormatter DATETIME_MINUTE_FORMAT = DateTimeFormat
              .forPattern("yyyyMMddHHmm");
focal_class.type: DateTimeFormatter
focal_class.var_name: DATETIME_MINUTE_FORMAT
focal_class.declarator: DATETIME_MINUTE_TZ_FORMAT = DateTimeFormat
              .forPattern("yyyyMMddHHmmZ")
focal_class.modifier: private static final
focal_class.original_string: private static final DateTimeFormatter DATETIME_MINUTE_TZ_FORMAT = DateTimeFormat
              .forPattern("yyyyMMddHHmmZ");
focal_class.type: DateTimeFormatter
focal_class.var_name: DATETIME_MINUTE_TZ_FORMAT
focal_class.declarator: DATETIME_SECOND_FORMAT = DateTimeFormat
              .forPattern("yyyyMMddHHmmss")
focal_class.modifier: private static final
focal_class.original_string: private static final DateTimeFormatter DATETIME_SECOND_FORMAT = DateTimeFormat
              .forPattern("yyyyMMddHHmmss");
focal_class.type: DateTimeFormatter
focal_class.var_name: DATETIME_SECOND_FORMAT
focal_class.declarator: DATETIME_SECOND_TZ_FORMAT = DateTimeFormat
              .forPattern("yyyyMMddHHmmssZ")
focal_class.modifier: private static final
focal_class.original_string: private static final DateTimeFormatter DATETIME_SECOND_TZ_FORMAT = DateTimeFormat
              .forPattern("yyyyMMddHHmmssZ");
focal_class.type: DateTimeFormatter
focal_class.var_name: DATETIME_SECOND_TZ_FORMAT
focal_class.declarator: DATETIME_MILLISECOND_FORMAT = DateTimeFormat
              .forPattern("yyyyMMddHHmmss.SSS")
focal_class.modifier: private static final
focal_class.original_string: private static final DateTimeFormatter DATETIME_MILLISECOND_FORMAT = DateTimeFormat
              .forPattern("yyyyMMddHHmmss.SSS");
focal_class.type: DateTimeFormatter
focal_class.var_name: DATETIME_MILLISECOND_FORMAT
focal_class.declarator: DATETIME_MILLISECOND_TZ_FORMAT = DateTimeFormat
              .forPattern("yyyyMMddHHmmss.SSSZ")
focal_class.modifier: private static final
focal_class.original_string: private static final DateTimeFormatter DATETIME_MILLISECOND_TZ_FORMAT = DateTimeFormat
              .forPattern("yyyyMMddHHmmss.SSSZ");
focal_class.type: DateTimeFormatter
focal_class.var_name: DATETIME_MILLISECOND_TZ_FORMAT
focal_class.declarator: formats = new DateTimeFormatter[][] {
              new DateTimeFormatter[] { YEAR_FORMAT },
              new DateTimeFormatter[] { YEAR_MONTH_FORMAT },
              new DateTimeFormatter[] { DATE_FORMAT },
              new DateTimeFormatter[] { DATETIME_MINUTE_FORMAT,
                      DATETIME_MINUTE_TZ_FORMAT },
              new DateTimeFormatter[] { DATETIME_SECOND_FORMAT,
                      DATETIME_SECOND_TZ_FORMAT },
              new DateTimeFormatter[] { DATETIME_MILLISECOND_FORMAT,
                      DATETIME_MILLISECOND_TZ_FORMAT } }
focal_class.modifier: private static final
focal_class.original_string: private static final DateTimeFormatter[][] formats = new DateTimeFormatter[][] {
              new DateTimeFormatter[] { YEAR_FORMAT },
              new DateTimeFormatter[] { YEAR_MONTH_FORMAT },
              new DateTimeFormatter[] { DATE_FORMAT },
              new DateTimeFormatter[] { DATETIME_MINUTE_FORMAT,
                      DATETIME_MINUTE_TZ_FORMAT },
              new DateTimeFormatter[] { DATETIME_SECOND_FORMAT,
                      DATETIME_SECOND_TZ_FORMAT },
              new DateTimeFormatter[] { DATETIME_MILLISECOND_FORMAT,
                      DATETIME_MILLISECOND_TZ_FORMAT } };
focal_class.type: DateTimeFormatter[][]
focal_class.var_name: formats
focal_class.declarator: YEAR_PRECISION = 0
focal_class.modifier: public static final
focal_class.original_string: public static final int YEAR_PRECISION = 0;
focal_class.type: int
focal_class.var_name: YEAR_PRECISION
focal_class.declarator: MONTH_PRECISION = 1
focal_class.modifier: public static final
focal_class.original_string: public static final int MONTH_PRECISION = 1;
focal_class.type: int
focal_class.var_name: MONTH_PRECISION
focal_class.declarator: DATE_PRECISION = 2
focal_class.modifier: public static final
focal_class.original_string: public static final int DATE_PRECISION = 2;
focal_class.type: int
focal_class.var_name: DATE_PRECISION
focal_class.declarator: DATETIME_MINUTE_PRECISION = 3
focal_class.modifier: public static final
focal_class.original_string: public static final int DATETIME_MINUTE_PRECISION = 3;
focal_class.type: int
focal_class.var_name: DATETIME_MINUTE_PRECISION
focal_class.declarator: DATETIME_SECOND_PRECISION = 4
focal_class.modifier: public static final
focal_class.original_string: public static final int DATETIME_SECOND_PRECISION = 4;
focal_class.type: int
focal_class.var_name: DATETIME_SECOND_PRECISION
focal_class.declarator: DATETIME_MILLISECOND_PRECISION = 5
focal_class.modifier: public static final
focal_class.original_string: public static final int DATETIME_MILLISECOND_PRECISION = 5;
focal_class.type: int
focal_class.var_name: DATETIME_MILLISECOND_PRECISION
focal_class.file: modules/cda/oht/src/main/java/org/openehealth/ipf/modules/cda/support/DateTimeUtils.java
focal_class.identifier: DateTimeUtils
focal_class.class_method_signature: DateTimeUtils.isValidDateTime(String s)
focal_class.full_signature: public static boolean isValidDateTime(String s)
focal_class.identifier: isValidDateTime
focal_class.modifiers: public static
focal_class.parameters: (String s)
focal_class.return: boolean
focal_class.signature: boolean isValidDateTime(String s)
focal_class.class_method_signature: DateTimeUtils.isValidDateTime(String s, int minimumPrecision)
focal_class.full_signature: public static boolean isValidDateTime(String s, int minimumPrecision)
focal_class.identifier: isValidDateTime
focal_class.modifiers: public static
focal_class.parameters: (String s, int minimumPrecision)
focal_class.return: boolean
focal_class.signature: boolean isValidDateTime(String s, int minimumPrecision)
focal_class.class_method_signature: DateTimeUtils.isValidDateTime(String s, int minimumPrecision,
              int maximumPrecision)
focal_class.full_signature: public static boolean isValidDateTime(String s, int minimumPrecision,
              int maximumPrecision)
focal_class.identifier: isValidDateTime
focal_class.modifiers: public static
focal_class.parameters: (String s, int minimumPrecision,
              int maximumPrecision)
focal_class.return: boolean
focal_class.signature: boolean isValidDateTime(String s, int minimumPrecision,
              int maximumPrecision)
focal_method.body: public static boolean isValidDateTime(String s) {
          return isValidDateTime(s, 0, formats.length - 1);
      }
focal_method.class_method_signature: DateTimeUtils.isValidDateTime(String s)
focal_method.full_signature: public static boolean isValidDateTime(String s)
focal_method.identifier: isValidDateTime
focal_method.invocations: isValidDateTime
focal_method.modifiers: public static
focal_method.parameters: (String s)
focal_method.return: boolean
focal_method.signature: boolean isValidDateTime(String s)