ca36382b38508badcc73236056d63e9b6e7595a5
[oam/tr069-adapter.git] / common / src / main / java / org / commscope / tr069adapter / common / deviceversion / ProfileDefinition.java
1 /*\r
2  * ============LICENSE_START========================================================================\r
3  * ONAP : tr-069-adapter\r
4  * =================================================================================================\r
5  * Copyright (C) 2020 CommScope Inc Intellectual Property.\r
6  * =================================================================================================\r
7  * This tr-069-adapter software file is distributed by CommScope Inc under the Apache License,\r
8  * Version 2.0 (the "License"); you may not use this file except in compliance with the License. You\r
9  * may obtain a copy of the License at\r
10  *\r
11  * http://www.apache.org/licenses/LICENSE-2.0\r
12  *\r
13  * This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,\r
14  * either express or implied. See the License for the specific language governing permissions and\r
15  * limitations under the License.\r
16  * ===============LICENSE_END=======================================================================\r
17  */\r
18 \r
19 package org.commscope.tr069adapter.common.deviceversion;\r
20 \r
21 import com.fasterxml.jackson.annotation.JsonInclude;\r
22 import com.fasterxml.jackson.annotation.JsonProperty;\r
23 import com.fasterxml.jackson.annotation.JsonPropertyOrder;\r
24 \r
25 @JsonInclude(JsonInclude.Include.NON_NULL)\r
26 @JsonPropertyOrder({"profile-id", "software-version", "hardware-version", "netconf-schema-dir-path",\r
27     "csdm-mapping-dir-path", "extends-from"})\r
28 public class ProfileDefinition {\r
29   @JsonProperty("profile-id")\r
30   private String profileId;\r
31   @JsonProperty("software-version")\r
32   private String softwareVersion;\r
33   @JsonProperty("hardware-version")\r
34   private String hardwareVersion;\r
35   @JsonProperty("netconf-schema-dir-path")\r
36   private String netConfSchemaPath;\r
37   @JsonProperty("csdm-mapping-dir-path")\r
38   private String csdmMappingPath;\r
39   @JsonProperty("extends-from")\r
40   private String parent;\r
41 \r
42   public ProfileDefinition() {}\r
43 \r
44   public ProfileDefinition(String profileId, String software, String hardware, String schemaPath,\r
45       String mappingFile, String parent) {\r
46     super();\r
47     this.profileId = profileId;\r
48     this.softwareVersion = software;\r
49     this.hardwareVersion = hardware;\r
50     this.netConfSchemaPath = schemaPath;\r
51     this.csdmMappingPath = mappingFile;\r
52     this.parent = parent;\r
53   }\r
54 \r
55   public String getProfileId() {\r
56     return profileId;\r
57   }\r
58 \r
59   public void setProfileId(String profileId) {\r
60     this.profileId = profileId;\r
61   }\r
62 \r
63   public String getSoftwareVersion() {\r
64     return softwareVersion;\r
65   }\r
66 \r
67   public void setSoftwareVersion(String softwareVersion) {\r
68     this.softwareVersion = softwareVersion;\r
69   }\r
70 \r
71   public String getHardwareVersion() {\r
72     return hardwareVersion;\r
73   }\r
74 \r
75   public void setHardwareVersion(String hardwareVersion) {\r
76     this.hardwareVersion = hardwareVersion;\r
77   }\r
78 \r
79   public String getNetConfSchemaPath() {\r
80     return netConfSchemaPath;\r
81   }\r
82 \r
83   public void setNetConfSchemaPath(String netConfSchemaPath) {\r
84     this.netConfSchemaPath = netConfSchemaPath;\r
85   }\r
86 \r
87   public String getCsdmMappingPath() {\r
88     return csdmMappingPath;\r
89   }\r
90 \r
91   public void setCsdmMappingPath(String csdmMappingPath) {\r
92     this.csdmMappingPath = csdmMappingPath;\r
93   }\r
94 \r
95   public String getParent() {\r
96     return parent;\r
97   }\r
98 \r
99   public void setParent(String parent) {\r
100     this.parent = parent;\r
101   }\r
102 \r
103 }\r