Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
70 changes: 48 additions & 22 deletions src/main/java/eu/europa/ted/eforms/sdk/SdkConstants.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,50 +19,76 @@ public class SdkConstants {
public static final String SDK_GROUP_ID = "eu.europa.ted.eforms";
public static final String SDK_ARTIFACT_ID = "eforms-sdk";
public static final String SDK_PACKAGING = "jar";

/**
* Forward folder of SDK2+, it can exist in some folders.
*/
public static final String FWD = "fwd";

private SdkConstants() {}

public enum SdkResource implements PathResource {
CODELISTS(Path.of("codelists")), //
CODELISTS_JSON(Path.of("codelists", "codelists.json")), //
CODELISTS(Path.of("codelists")),
CODELISTS_JSON(Path.of("codelists", "codelists.json")),

EFX_GRAMMAR(Path.of("efx-grammar")),

FIELDS(Path.of("fields")),
FIELDS_JSON(Path.of("fields", "fields.json")),

// FIELDS FWD FOLDER.
BUSINESS_ENTITIES_COMPOSITION(Path.of("fields", FWD, "business-entities-composition.json")),
BUSINESS_ENTITIES_HIERARCHY(Path.of("fields", FWD, "business-entities-hierarchies.json")),
BUSINESS_ENTITIES_PROPERTIES(Path.of("fields", FWD, "business-entities-properties.json")),
BUSINESS_TERMS(Path.of("fields", FWD, "business-terms.json")),
DATA_TYPES(Path.of("fields", FWD, "data-types.json")),
FIELDS_JSON_LIST(Path.of("fields", FWD, "fields.json")),
NODES_JSON_LIST(Path.of("fields", FWD, "nodes.json")),

EFX_GRAMMAR(Path.of("efx-grammar")), //

FIELDS(Path.of("fields")), //
FIELDS_JSON(Path.of("fields", "fields.json")), //
/**
* Related to asset migration.
*/
MIGRATION(Path.of("migration")),
MIGRATION_JSON(Path.of("migration", "migration.json")),

NOTICE_TYPES(Path.of("notice-types")), //
NOTICE_TYPES_JSON(Path.of("notice-types", "notice-types.json")), //
NOTICE_TYPES(Path.of("notice-types")),
NOTICE_TYPES_JSON(Path.of("notice-types", "notice-types.json")),

/**
* XSD files.
* Schema files.
*/
SCHEMAS(Path.of("schemas")), //
SCHEMAS_COMMON(Path.of("schemas", "common")), //
SCHEMAS_MAINDOC(Path.of("schemas", "maindoc")), //
SCHEMAS(Path.of("schemas")),
SCHEMAS_JSON(Path.of("schemas", "schemas.json")),

SCHEMATRONS(Path.of("schematrons")), //
SCHEMATRONS_DYNAMIC(Path.of("schematrons", "dynamic")), //
SCHEMATRONS_STATIC(Path.of("schematrons", "static")), //
SCHEMAS_COMMON(Path.of("schemas", "common")),
SCHEMAS_MAINDOC(Path.of("schemas", "maindoc")),

SCHEMATRONS(Path.of("schematrons")),
SCHEMATRONS_DYNAMIC(Path.of("schematrons", "dynamic")),
SCHEMATRONS_STATIC(Path.of("schematrons", "static")),

/**
* Internal usage, tedweb.
*/
TED(Path.of(".ted")), //
TED_TEDWEB(Path.of(".ted", "tedweb")), //
TED_TEDWEB_REPORT_METADATA(Path.of(".ted", "tedweb", "report-metadata.json")), //
TED_TEDWEB_SEARCH_METADATA(Path.of(".ted", "tedweb", "search-metadata.json")), //
TED(Path.of(".ted")),
TED_TEDWEB(Path.of(".ted", "tedweb")),
TED_TEDWEB_REPORT_METADATA(Path.of(".ted", "tedweb", "report-metadata.json")),
TED_TEDWEB_SEARCH_METADATA(Path.of(".ted", "tedweb", "search-metadata.json")),

/**
* Internationalisation, labels.
*/
TRANSLATIONS(Path.of("translations")), //
TRANSLATIONS(Path.of("translations")),

/**
* The index file for translations, only present in SDK 1.10.0 and later.
*/
TRANSLATIONS_JSON(Path.of("translations", "translations.json")), //
TRANSLATIONS_JSON(Path.of("translations", "translations.json")),

VALIDATION(Path.of("validation")),
VALIDATION_RULES_EFX(Path.of("validation", "rules.efx")),

VIEW_TEMPLATES(Path.of("view-templates")), //
VIEW_TEMPLATES(Path.of("view-templates")),
VIEW_TEMPLATES_JSON(Path.of("view-templates", "view-templates.json"));

private Path path;
Expand Down
Loading