1 package org.openecomp.sdc.asdctool.enums;
3 import static org.openecomp.sdc.asdctool.enums.SchemaZipFileEnum.SchemaZipConstants.*;
5 public enum SchemaZipFileEnum {
7 DATA("data", "data-types", "dataTypes", "data_types", EMPTY_IMPORT_LIST),
8 GROUPS("groups", "group-types", "groupTypes", "group_types", DATA_IMPORT_LIST),
9 POLICIES("policies", "policy-types", "policyTypes", "policy_types", DATA_IMPORT_LIST),
10 ANNOTATIONS("annotations", "annotation-types", "annotationTypes", "annotation_types", DATA_IMPORT_LIST),
11 RELATIONSHIPS("relationships", "relationship-types", "relationshipTypes", "relationship_types", RELATIONSHIPS_TYPES_IMPORT_LIST),
12 ARTIFACTS("artifacts", "artifact-types", "artifactTypes", "artifact_types", DATA_IMPORT_LIST),
13 CAPABILITIES("capabilities", "capability-types", "capabilityTypes", "capability_types", DATA_IMPORT_LIST),
14 INTERFACES("interfaces", "interface-lifecycle-types", "interfaceLifecycleTypes", "interface_types", DATA_IMPORT_LIST);
16 private String fileName;
17 private String sourceFolderName;
18 private String sourceFileName;
19 private String collectionTitle;
20 private String[] importFileList;
22 SchemaZipFileEnum(String fileName, String sourceFolderName, String sourceFileName, String collectionTitle,
23 String[] importFileList) {
24 this.fileName = fileName;
25 this.sourceFolderName = sourceFolderName;
26 this.sourceFileName = sourceFileName;
27 this.collectionTitle = collectionTitle;
28 this.importFileList = importFileList;
31 public String getFileName() {
35 public String getSourceFolderName() {
36 return sourceFolderName;
39 public String getSourceFileName() {
40 return sourceFileName;
43 public String getCollectionTitle() {
44 return collectionTitle;
47 public String[] getImportFileList() {
48 return importFileList;
51 static class SchemaZipConstants {
52 static final String [] EMPTY_IMPORT_LIST = new String[]{};
53 static final String [] DATA_IMPORT_LIST = new String[]{"data.yml"};
54 static final String [] RELATIONSHIPS_TYPES_IMPORT_LIST = new String[]{"capabilities.yml", "data.yml", "interfaces.yml"};