test_class.file: org.eclipse.winery.common/src/test/java/org/eclipse/winery/common/version/WineryVersionTest.java
test_class.identifier: WineryVersionTest
test_case.body: @Test
      public void testCompareToWipVersionShouldBeLessThanActualWineryRelease() {
          WineryVersion smaller = new WineryVersion("1.0.0", 6, 6);
          WineryVersion greater = new WineryVersion("1.0.0", 6, 0);
          assertEquals(-1, smaller.compareTo(greater));
          assertEquals(1, greater.compareTo(smaller));
      }
test_case.class_method_signature: WineryVersionTest.testCompareToWipVersionShouldBeLessThanActualWineryRelease()
test_case.full_signature: @Test public void testCompareToWipVersionShouldBeLessThanActualWineryRelease()
test_case.identifier: testCompareToWipVersionShouldBeLessThanActualWineryRelease
test_case.invocations: assertEquals compareTo assertEquals compareTo
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testCompareToWipVersionShouldBeLessThanActualWineryRelease()
focal_class.declarator: WINERY_NAME_FROM_VERSION_SEPARATOR = "_"
focal_class.modifier: public static
focal_class.original_string: public static String WINERY_NAME_FROM_VERSION_SEPARATOR = "_";
focal_class.type: String
focal_class.var_name: WINERY_NAME_FROM_VERSION_SEPARATOR
focal_class.declarator: WINERY_VERSION_SEPARATOR = "-"
focal_class.modifier: public static
focal_class.original_string: public static String WINERY_VERSION_SEPARATOR = "-";
focal_class.type: String
focal_class.var_name: WINERY_VERSION_SEPARATOR
focal_class.declarator: WINERY_VERSION_PREFIX = "w"
focal_class.modifier: public static
focal_class.original_string: public static String WINERY_VERSION_PREFIX = "w";
focal_class.type: String
focal_class.var_name: WINERY_VERSION_PREFIX
focal_class.declarator: WINERY_WIP_VERSION_PREFIX = "wip"
focal_class.modifier: public static
focal_class.original_string: public static String WINERY_WIP_VERSION_PREFIX = "wip";
focal_class.type: String
focal_class.var_name: WINERY_WIP_VERSION_PREFIX
focal_class.declarator: componentVersion
focal_class.modifier: private
focal_class.original_string: private String componentVersion;
focal_class.type: String
focal_class.var_name: componentVersion
focal_class.declarator: wineryVersion
focal_class.modifier: private
focal_class.original_string: private int wineryVersion;
focal_class.type: int
focal_class.var_name: wineryVersion
focal_class.declarator: workInProgressVersion
focal_class.modifier: private
focal_class.original_string: private int workInProgressVersion;
focal_class.type: int
focal_class.var_name: workInProgressVersion
focal_class.declarator: currentVersion
focal_class.modifier: private
focal_class.original_string: private boolean currentVersion;
focal_class.type: boolean
focal_class.var_name: currentVersion
focal_class.declarator: latestVersion
focal_class.modifier: private
focal_class.original_string: private boolean latestVersion;
focal_class.type: boolean
focal_class.var_name: latestVersion
focal_class.declarator: releasable
focal_class.modifier: private
focal_class.original_string: private boolean releasable;
focal_class.type: boolean
focal_class.var_name: releasable
focal_class.declarator: editable
focal_class.modifier: private
focal_class.original_string: private boolean editable;
focal_class.type: boolean
focal_class.var_name: editable
focal_class.file: org.eclipse.winery.common/src/main/java/org/eclipse/winery/common/version/WineryVersion.java
focal_class.identifier: WineryVersion
focal_class.interfaces: implements Comparable<WineryVersion>
focal_class.class_method_signature: WineryVersion.WineryVersion()
focal_class.full_signature: public  WineryVersion()
focal_class.identifier: WineryVersion
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.signature:  WineryVersion()
focal_class.class_method_signature: WineryVersion.WineryVersion(String componentVersion, int wineryVersion, int workInProgressVersion)
focal_class.full_signature: public  WineryVersion(String componentVersion, int wineryVersion, int workInProgressVersion)
focal_class.identifier: WineryVersion
focal_class.modifiers: public
focal_class.parameters: (String componentVersion, int wineryVersion, int workInProgressVersion)
focal_class.signature:  WineryVersion(String componentVersion, int wineryVersion, int workInProgressVersion)
focal_class.class_method_signature: WineryVersion.getComponentVersion()
focal_class.full_signature: public String getComponentVersion()
focal_class.identifier: getComponentVersion
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getComponentVersion()
focal_class.class_method_signature: WineryVersion.setComponentVersion(String componentVersion)
focal_class.full_signature: public void setComponentVersion(String componentVersion)
focal_class.identifier: setComponentVersion
focal_class.modifiers: public
focal_class.parameters: (String componentVersion)
focal_class.return: void
focal_class.signature: void setComponentVersion(String componentVersion)
focal_class.class_method_signature: WineryVersion.getWineryVersion()
focal_class.full_signature: public int getWineryVersion()
focal_class.identifier: getWineryVersion
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int getWineryVersion()
focal_class.class_method_signature: WineryVersion.setWineryVersion(int wineryVersion)
focal_class.full_signature: public void setWineryVersion(int wineryVersion)
focal_class.identifier: setWineryVersion
focal_class.modifiers: public
focal_class.parameters: (int wineryVersion)
focal_class.return: void
focal_class.signature: void setWineryVersion(int wineryVersion)
focal_class.class_method_signature: WineryVersion.getWorkInProgressVersion()
focal_class.full_signature: public int getWorkInProgressVersion()
focal_class.identifier: getWorkInProgressVersion
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int getWorkInProgressVersion()
focal_class.class_method_signature: WineryVersion.setWorkInProgressVersion(int workInProgressVersion)
focal_class.full_signature: public void setWorkInProgressVersion(int workInProgressVersion)
focal_class.identifier: setWorkInProgressVersion
focal_class.modifiers: public
focal_class.parameters: (int workInProgressVersion)
focal_class.return: void
focal_class.signature: void setWorkInProgressVersion(int workInProgressVersion)
focal_class.class_method_signature: WineryVersion.isCurrentVersion()
focal_class.full_signature: public boolean isCurrentVersion()
focal_class.identifier: isCurrentVersion
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean isCurrentVersion()
focal_class.class_method_signature: WineryVersion.setCurrentVersion(boolean currentVersion)
focal_class.full_signature: public void setCurrentVersion(boolean currentVersion)
focal_class.identifier: setCurrentVersion
focal_class.modifiers: public
focal_class.parameters: (boolean currentVersion)
focal_class.return: void
focal_class.signature: void setCurrentVersion(boolean currentVersion)
focal_class.class_method_signature: WineryVersion.isLatestVersion()
focal_class.full_signature: public boolean isLatestVersion()
focal_class.identifier: isLatestVersion
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean isLatestVersion()
focal_class.class_method_signature: WineryVersion.setLatestVersion(boolean latestVersion)
focal_class.full_signature: public void setLatestVersion(boolean latestVersion)
focal_class.identifier: setLatestVersion
focal_class.modifiers: public
focal_class.parameters: (boolean latestVersion)
focal_class.return: void
focal_class.signature: void setLatestVersion(boolean latestVersion)
focal_class.class_method_signature: WineryVersion.isEditable()
focal_class.full_signature: public boolean isEditable()
focal_class.identifier: isEditable
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean isEditable()
focal_class.class_method_signature: WineryVersion.setEditable(boolean editable)
focal_class.full_signature: public void setEditable(boolean editable)
focal_class.identifier: setEditable
focal_class.modifiers: public
focal_class.parameters: (boolean editable)
focal_class.return: void
focal_class.signature: void setEditable(boolean editable)
focal_class.class_method_signature: WineryVersion.isReleasable()
focal_class.full_signature: public boolean isReleasable()
focal_class.identifier: isReleasable
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean isReleasable()
focal_class.class_method_signature: WineryVersion.setReleasable(boolean releasable)
focal_class.full_signature: public void setReleasable(boolean releasable)
focal_class.identifier: setReleasable
focal_class.modifiers: public
focal_class.parameters: (boolean releasable)
focal_class.return: void
focal_class.signature: void setReleasable(boolean releasable)
focal_class.class_method_signature: WineryVersion.isVersionedInWinery()
focal_class.full_signature: @JsonIgnore public boolean isVersionedInWinery()
focal_class.identifier: isVersionedInWinery
focal_class.modifiers: @JsonIgnore public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean isVersionedInWinery()
focal_class.class_method_signature: WineryVersion.compareTo(WineryVersion o)
focal_class.full_signature: @Override @ADR(19) public int compareTo(WineryVersion o)
focal_class.identifier: compareTo
focal_class.modifiers: @Override @ADR(19) public
focal_class.parameters: (WineryVersion o)
focal_class.return: int
focal_class.signature: int compareTo(WineryVersion o)
focal_class.class_method_signature: WineryVersion.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_method.body: @Override
      @ADR(19)
      public int compareTo(WineryVersion o) {
          if (Objects.isNull(o)) {
              return 1;
          }
  
          int cVersion = this.componentVersion.compareToIgnoreCase(o.componentVersion);
          if (cVersion < 0) {
              return -1;
          } else if (cVersion > 0) {
              return 1;
          }
  
          if (this.wineryVersion < o.wineryVersion) {
              return -1;
          } else if (this.wineryVersion > o.wineryVersion) {
              return 1;
          }
  
          if (this.wineryVersion > 0 && this.workInProgressVersion == 0) {
              return 1;
          } else if (o.wineryVersion > 0 && o.workInProgressVersion == 0) {
              return -1;
          }
  
          if (this.workInProgressVersion < o.workInProgressVersion) {
              return -1;
          } else if (this.workInProgressVersion > o.workInProgressVersion) {
              return 1;
          }
  
          return 0;
      }
focal_method.class_method_signature: WineryVersion.compareTo(WineryVersion o)
focal_method.full_signature: @Override @ADR(19) public int compareTo(WineryVersion o)
focal_method.identifier: compareTo
focal_method.invocations: isNull compareToIgnoreCase
focal_method.modifiers: @Override @ADR(19) public
focal_method.parameters: (WineryVersion o)
focal_method.return: int
focal_method.signature: int compareTo(WineryVersion o)