test_class.file: nuxeo-java-client/src/test/java/org/nuxeo/client/TestNuxeoVersion.java
test_class.identifier: TestNuxeoVersion
test_case.body: @Test
      public void testParseVersion() {
          assertVersion(NuxeoVersion.parse("7.10"), 7, 10, -1, 0, false);
          assertVersion(NuxeoVersion.parse("7.10-HF05"), 7, 10, -1, 5, false);
          assertVersion(NuxeoVersion.parse("7.10-HF05-SNAPSHOT"), 7, 10, -1, 5, true);
          assertVersion(NuxeoVersion.parse("7.10-SNAPSHOT"), 7, 10, -1, 0, true);
          assertVersion(NuxeoVersion.parse("7.10-I20170818_1955"), 7, 10, -1, 0, false);
          assertVersion(NuxeoVersion.parse("11.2.2"), 11, 2, 2, 0, false);
      }
test_case.class_method_signature: TestNuxeoVersion.testParseVersion()
test_case.full_signature: @Test public void testParseVersion()
test_case.identifier: testParseVersion
test_case.invocations: assertVersion parse assertVersion parse assertVersion parse assertVersion parse assertVersion parse assertVersion parse
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testParseVersion()
focal_class.declarator: LTS_7_10 = new NuxeoVersion(7, 10, -1, 0, false)
focal_class.modifier: public static final
focal_class.original_string: public static final NuxeoVersion LTS_7_10 = new NuxeoVersion(7, 10, -1, 0, false);
focal_class.type: NuxeoVersion
focal_class.var_name: LTS_7_10
focal_class.declarator: LTS_8_10 = new NuxeoVersion(8, 10, -1, 0, false)
focal_class.modifier: public static final
focal_class.original_string: public static final NuxeoVersion LTS_8_10 = new NuxeoVersion(8, 10, -1, 0, false);
focal_class.type: NuxeoVersion
focal_class.var_name: LTS_8_10
focal_class.declarator: LTS_9_10 = new NuxeoVersion(9, 10, -1, 0, false)
focal_class.modifier: public static final
focal_class.original_string: public static final NuxeoVersion LTS_9_10 = new NuxeoVersion(9, 10, -1, 0, false);
focal_class.type: NuxeoVersion
focal_class.var_name: LTS_9_10
focal_class.declarator: LTS_10_10 = new NuxeoVersion(10, 10, -1, 0, false)
focal_class.modifier: public static final
focal_class.original_string: public static final NuxeoVersion LTS_10_10 = new NuxeoVersion(10, 10, -1, 0, false);
focal_class.type: NuxeoVersion
focal_class.var_name: LTS_10_10
focal_class.declarator: NUXEO_VERSION_PATTERN = Pattern.compile(
              "(\\d+)\\.(\\d+)(?:\\.(\\d+))?(?:-HF(\\d+))?(-SNAPSHOT)?(-I\\d{8}_\\d{4})?")
focal_class.modifier: private static final
focal_class.original_string: private static final Pattern NUXEO_VERSION_PATTERN = Pattern.compile(
              "(\\d+)\\.(\\d+)(?:\\.(\\d+))?(?:-HF(\\d+))?(-SNAPSHOT)?(-I\\d{8}_\\d{4})?");
focal_class.type: Pattern
focal_class.var_name: NUXEO_VERSION_PATTERN
focal_class.declarator: majorVersion
focal_class.modifier: private final
focal_class.original_string: private final int majorVersion;
focal_class.type: int
focal_class.var_name: majorVersion
focal_class.declarator: minorVersion
focal_class.modifier: private final
focal_class.original_string: private final int minorVersion;
focal_class.type: int
focal_class.var_name: minorVersion
focal_class.declarator: buildVersion
focal_class.modifier: private final
focal_class.original_string: private final int buildVersion;
focal_class.type: int
focal_class.var_name: buildVersion
focal_class.declarator: hotfix
focal_class.modifier: private final
focal_class.original_string: private final int hotfix;
focal_class.type: int
focal_class.var_name: hotfix
focal_class.declarator: snapshot
focal_class.modifier: private final
focal_class.original_string: private final boolean snapshot;
focal_class.type: boolean
focal_class.var_name: snapshot
focal_class.file: nuxeo-java-client/src/main/java/org/nuxeo/client/NuxeoVersion.java
focal_class.identifier: NuxeoVersion
focal_class.class_method_signature: NuxeoVersion.NuxeoVersion(int majorVersion, int minorVersion, int buildVersion, int hotfix, boolean snapshot)
focal_class.full_signature: protected  NuxeoVersion(int majorVersion, int minorVersion, int buildVersion, int hotfix, boolean snapshot)
focal_class.identifier: NuxeoVersion
focal_class.modifiers: protected
focal_class.parameters: (int majorVersion, int minorVersion, int buildVersion, int hotfix, boolean snapshot)
focal_class.signature:  NuxeoVersion(int majorVersion, int minorVersion, int buildVersion, int hotfix, boolean snapshot)
focal_class.class_method_signature: NuxeoVersion.version()
focal_class.full_signature: public String version()
focal_class.identifier: version
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String version()
focal_class.class_method_signature: NuxeoVersion.majorVersion()
focal_class.full_signature: public int majorVersion()
focal_class.identifier: majorVersion
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int majorVersion()
focal_class.class_method_signature: NuxeoVersion.minorVersion()
focal_class.full_signature: public int minorVersion()
focal_class.identifier: minorVersion
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int minorVersion()
focal_class.class_method_signature: NuxeoVersion.buildVersion()
focal_class.full_signature: public int buildVersion()
focal_class.identifier: buildVersion
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int buildVersion()
focal_class.class_method_signature: NuxeoVersion.hotfix()
focal_class.full_signature: public int hotfix()
focal_class.identifier: hotfix
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int hotfix()
focal_class.class_method_signature: NuxeoVersion.snapshot()
focal_class.full_signature: public boolean snapshot()
focal_class.identifier: snapshot
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean snapshot()
focal_class.class_method_signature: NuxeoVersion.equals(String version)
focal_class.full_signature: public boolean equals(String version)
focal_class.identifier: equals
focal_class.modifiers: public
focal_class.parameters: (String version)
focal_class.return: boolean
focal_class.signature: boolean equals(String version)
focal_class.class_method_signature: NuxeoVersion.equals(NuxeoVersion version)
focal_class.full_signature: public boolean equals(NuxeoVersion version)
focal_class.identifier: equals
focal_class.modifiers: public
focal_class.parameters: (NuxeoVersion version)
focal_class.return: boolean
focal_class.signature: boolean equals(NuxeoVersion version)
focal_class.class_method_signature: NuxeoVersion.hashCode()
focal_class.full_signature: @Override public int hashCode()
focal_class.identifier: hashCode
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int hashCode()
focal_class.class_method_signature: NuxeoVersion.equals(Object version)
focal_class.full_signature: @Override public boolean equals(Object version)
focal_class.identifier: equals
focal_class.modifiers: @Override public
focal_class.parameters: (Object version)
focal_class.return: boolean
focal_class.signature: boolean equals(Object version)
focal_class.class_method_signature: NuxeoVersion.toString()
focal_class.full_signature: @Override public String toString()
focal_class.identifier: toString
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String toString()
focal_class.class_method_signature: NuxeoVersion.hotfix(int hotfix)
focal_class.full_signature: public NuxeoVersion hotfix(int hotfix)
focal_class.identifier: hotfix
focal_class.modifiers: public
focal_class.parameters: (int hotfix)
focal_class.return: NuxeoVersion
focal_class.signature: NuxeoVersion hotfix(int hotfix)
focal_class.class_method_signature: NuxeoVersion.isGreaterThan(String version)
focal_class.full_signature: public boolean isGreaterThan(String version)
focal_class.identifier: isGreaterThan
focal_class.modifiers: public
focal_class.parameters: (String version)
focal_class.return: boolean
focal_class.signature: boolean isGreaterThan(String version)
focal_class.class_method_signature: NuxeoVersion.isGreaterThan(NuxeoVersion version)
focal_class.full_signature: public boolean isGreaterThan(NuxeoVersion version)
focal_class.identifier: isGreaterThan
focal_class.modifiers: public
focal_class.parameters: (NuxeoVersion version)
focal_class.return: boolean
focal_class.signature: boolean isGreaterThan(NuxeoVersion version)
focal_class.class_method_signature: NuxeoVersion.parse(String version)
focal_class.full_signature: public static NuxeoVersion parse(String version)
focal_class.identifier: parse
focal_class.modifiers: public static
focal_class.parameters: (String version)
focal_class.return: NuxeoVersion
focal_class.signature: NuxeoVersion parse(String version)
focal_method.body: public static NuxeoVersion parse(String version) {
          Matcher matcher = NUXEO_VERSION_PATTERN.matcher(version);
          if (!matcher.matches()) {
              throw new NuxeoClientException(
                      "Input version=" + version + " doesn't represent a valid Nuxeo server version");
          }
          int majorVersion = Integer.parseInt(matcher.group(1));
          int minorVersion = Integer.parseInt(matcher.group(2));
          int buildVersion = -1;
          if (matcher.group(3) != null) {
              buildVersion = Integer.parseInt(matcher.group(3));
          }
          int hotfix = 0;
          if (matcher.group(4) != null) {
              hotfix = Integer.parseInt(matcher.group(4));
          }
          boolean snaphot = matcher.group(5) != null;
          return new NuxeoVersion(majorVersion, minorVersion, buildVersion, hotfix, snaphot);
      }
focal_method.class_method_signature: NuxeoVersion.parse(String version)
focal_method.full_signature: public static NuxeoVersion parse(String version)
focal_method.identifier: parse
focal_method.invocations: matcher matches parseInt group parseInt group group parseInt group group parseInt group group
focal_method.modifiers: public static
focal_method.parameters: (String version)
focal_method.return: NuxeoVersion
focal_method.signature: NuxeoVersion parse(String version)