-
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.
Now the cdes are dynamicly loaded from Exareme2
- Loading branch information
1 parent
954d538
commit 033ffb6
Showing
9 changed files
with
189 additions
and
46 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
20 changes: 20 additions & 0 deletions
20
src/main/java/eu/hbp/mip/models/DTOs/MIPEngineAttributesDTO.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,20 @@ | ||
package eu.hbp.mip.models.DTOs; | ||
|
||
import com.google.gson.annotations.SerializedName; | ||
import eu.hbp.mip.models.DTOs.MetadataHierarchyDTO; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Data; | ||
|
||
import java.util.List; | ||
import java.util.Map; | ||
|
||
@Data | ||
@AllArgsConstructor | ||
public class MIPEngineAttributesDTO { | ||
@SerializedName("properties") | ||
private Map<String, List<MetadataHierarchyDTO>> properties; | ||
|
||
@SerializedName("tags") | ||
private Object tags; | ||
|
||
} |
57 changes: 57 additions & 0 deletions
57
src/main/java/eu/hbp/mip/models/DTOs/MetadataHierarchyDTO.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,57 @@ | ||
package eu.hbp.mip.models.DTOs; | ||
|
||
import com.google.gson.annotations.SerializedName; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Data; | ||
|
||
import java.util.Hashtable; | ||
import java.util.List; | ||
import java.util.Optional; | ||
|
||
@Data | ||
@AllArgsConstructor | ||
public class MetadataHierarchyDTO { | ||
|
||
@SerializedName("variables") | ||
private List<CommonDataElement> variables; | ||
|
||
@SerializedName("code") | ||
private String code; | ||
|
||
@SerializedName("groups") | ||
private Object groups; | ||
|
||
@SerializedName("label") | ||
private String label; | ||
@Data | ||
@AllArgsConstructor | ||
public static class CommonDataElement { | ||
@SerializedName("isCategorical") | ||
private Boolean isCategorical; | ||
|
||
@SerializedName("code") | ||
private String code; | ||
|
||
@SerializedName("sql_type") | ||
private String sql_type; | ||
|
||
@SerializedName("description") | ||
private String description; | ||
|
||
@SerializedName("enumerations") | ||
private Object enumerations; | ||
|
||
@SerializedName("label") | ||
private String label; | ||
|
||
@SerializedName("units") | ||
private String units; | ||
|
||
@SerializedName("type") | ||
private String type; | ||
|
||
@SerializedName("methodology") | ||
private String methodology; | ||
|
||
} | ||
} |
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
Oops, something went wrong.