-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #44 from OP-TED/release/1.10.0
Prepare release 1.10.0
- Loading branch information
Showing
42 changed files
with
20,272 additions
and
6,100 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
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
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
2 changes: 1 addition & 1 deletion
2
...ted/eforms/sdk/analysis/domain/Label.java → ...orms/sdk/analysis/domain/label/Label.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
25 changes: 25 additions & 0 deletions
25
src/main/java/eu/europa/ted/eforms/sdk/analysis/domain/label/LanguageFileInfo.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,25 @@ | ||
package eu.europa.ted.eforms.sdk.analysis.domain.label; | ||
|
||
public class LanguageFileInfo { | ||
|
||
private String twoLetterCode; | ||
private String threeLetterCode; | ||
private String assetType; | ||
private String filename; | ||
|
||
public String getTwoLetterCode() { | ||
return twoLetterCode; | ||
} | ||
|
||
public String getThreeLetterCode() { | ||
return threeLetterCode; | ||
} | ||
|
||
public String getAssetType() { | ||
return assetType; | ||
} | ||
|
||
public String getFilename() { | ||
return filename; | ||
} | ||
} |
46 changes: 46 additions & 0 deletions
46
src/main/java/eu/europa/ted/eforms/sdk/analysis/domain/label/TranslationLanguage.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,46 @@ | ||
package eu.europa.ted.eforms.sdk.analysis.domain.label; | ||
|
||
import java.util.Objects; | ||
|
||
public class TranslationLanguage implements Comparable<TranslationLanguage> { | ||
private String twoLetterCode; | ||
private String threeLetterCode; | ||
private String description; | ||
|
||
public String getTwoLetterCode() { | ||
return twoLetterCode; | ||
} | ||
|
||
public String getThreeLetterCode() { | ||
return threeLetterCode; | ||
} | ||
|
||
public String getDescription() { | ||
return description; | ||
} | ||
|
||
@Override | ||
public int compareTo(TranslationLanguage o) { | ||
return this.twoLetterCode.compareTo(o.getTwoLetterCode()); | ||
} | ||
|
||
@Override | ||
public int hashCode() { | ||
return Objects.hash(twoLetterCode); | ||
} | ||
|
||
@Override | ||
public boolean equals(Object obj) { | ||
if (this == obj) { | ||
return true; | ||
} | ||
if (obj == null) { | ||
return false; | ||
} | ||
if (getClass() != obj.getClass()) { | ||
return false; | ||
} | ||
TranslationLanguage other = (TranslationLanguage) obj; | ||
return Objects.equals(twoLetterCode, other.twoLetterCode); | ||
} | ||
} |
21 changes: 21 additions & 0 deletions
21
src/main/java/eu/europa/ted/eforms/sdk/analysis/domain/label/TranslationsIndex.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,21 @@ | ||
package eu.europa.ted.eforms.sdk.analysis.domain.label; | ||
|
||
import java.io.Serializable; | ||
import java.util.ArrayList; | ||
import java.util.List; | ||
import com.fasterxml.jackson.annotation.JsonPropertyOrder; | ||
|
||
@JsonPropertyOrder({"files", "languages"}) | ||
public class TranslationsIndex implements Serializable { | ||
|
||
private final List<LanguageFileInfo> files = new ArrayList<>(); | ||
private final List<TranslationLanguage> languages = new ArrayList<>(); | ||
|
||
public List<LanguageFileInfo> getFiles() { | ||
return files; | ||
} | ||
|
||
public List<TranslationLanguage> getLanguages() { | ||
return languages; | ||
} | ||
} |
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
2 changes: 1 addition & 1 deletion
2
src/main/java/eu/europa/ted/eforms/sdk/analysis/fact/LabelFact.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
Oops, something went wrong.