Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 564328 API revision | conditions | rethink key interfaces
>> related to 561540 - API for a version representation (lic.api/lic.internal.api.version) is introduced Signed-off-by: elena.parovyshnaya <elena.parovyshnaya@gmail.com>
- Loading branch information
1 parent
e7389ab
commit 2d84315
Showing
6 changed files
with
70 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
...pse.passage.lic.api/src/org/eclipse/passage/lic/internal/api/version/SemanticVersion.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
/******************************************************************************* | ||
* Copyright (c) 2020 ArSysOp | ||
* | ||
* This program and the accompanying materials are made available under the | ||
* terms of the Eclipse Public License 2.0 which is available at | ||
* https://www.eclipse.org/legal/epl-2.0/. | ||
* | ||
* SPDX-License-Identifier: EPL-2.0 | ||
* | ||
* Contributors: | ||
* ArSysOp - initial API and implementation | ||
*******************************************************************************/ | ||
package org.eclipse.passage.lic.internal.api.version; | ||
|
||
/** | ||
* Well structured representation of a version. | ||
*/ | ||
public interface SemanticVersion { | ||
|
||
int major(); | ||
|
||
int minor(); | ||
|
||
int service(); | ||
|
||
boolean hasQualifier(); | ||
|
||
String qualifier(); | ||
|
||
} |
31 changes: 31 additions & 0 deletions
31
...org.eclipse.passage.lic.api/src/org/eclipse/passage/lic/internal/api/version/Version.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
/******************************************************************************* | ||
* Copyright (c) 2020 ArSysOp | ||
* | ||
* This program and the accompanying materials are made available under the | ||
* terms of the Eclipse Public License 2.0 which is available at | ||
* https://www.eclipse.org/legal/epl-2.0/. | ||
* | ||
* SPDX-License-Identifier: EPL-2.0 | ||
* | ||
* Contributors: | ||
* ArSysOp - initial API and implementation | ||
*******************************************************************************/ | ||
package org.eclipse.passage.lic.internal.api.version; | ||
|
||
/** | ||
* <p> | ||
* Raw notion of a version constructed and parsed for an arbitrary source | ||
* supplies a valid string representation or a structured equivalent. | ||
* </p> | ||
* <p> | ||
* Instance of this interface that survived the construction must always be | ||
* valid. That means eager parsing. | ||
* </p> | ||
*/ | ||
public interface Version { | ||
|
||
String value(); | ||
|
||
SemanticVersion semantic(); | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -61,7 +61,6 @@ public void matchingIsIdempotant() { | |
assertTrue(first == second); | ||
} | ||
|
||
|
||
protected abstract MatchingRule create(); | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters