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
11 * http://www.apache.org/licenses/LICENSE-2.0
\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
19 package org.commscope.tr069adapter.common.deviceversion;
\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
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
42 public ProfileDefinition() {}
\r
44 public ProfileDefinition(String profileId, String software, String hardware, String schemaPath,
\r
45 String mappingFile, String parent) {
\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
55 public String getProfileId() {
\r
59 public void setProfileId(String profileId) {
\r
60 this.profileId = profileId;
\r
63 public String getSoftwareVersion() {
\r
64 return softwareVersion;
\r
67 public void setSoftwareVersion(String softwareVersion) {
\r
68 this.softwareVersion = softwareVersion;
\r
71 public String getHardwareVersion() {
\r
72 return hardwareVersion;
\r
75 public void setHardwareVersion(String hardwareVersion) {
\r
76 this.hardwareVersion = hardwareVersion;
\r
79 public String getNetConfSchemaPath() {
\r
80 return netConfSchemaPath;
\r
83 public void setNetConfSchemaPath(String netConfSchemaPath) {
\r
84 this.netConfSchemaPath = netConfSchemaPath;
\r
87 public String getCsdmMappingPath() {
\r
88 return csdmMappingPath;
\r
91 public void setCsdmMappingPath(String csdmMappingPath) {
\r
92 this.csdmMappingPath = csdmMappingPath;
\r
95 public String getParent() {
\r
99 public void setParent(String parent) {
\r
100 this.parent = parent;
\r