64d90262dacd232e3be70af8b593b7f7d15a9a58
[sdc.git] /
1 /*-
2  * ============LICENSE_START=======================================================
3  * SDC
4  * ================================================================================
5  * Copyright (C) 2019 AT&T Intellectual Property. All rights reserved.
6  * ================================================================================
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  *
11  *      http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  * ============LICENSE_END=========================================================
19  */
20 package org.openecomp.sdc.enrichment.impl.tosca.model;
21
22 import java.util.Objects;
23
24 @SuppressWarnings("CheckStyle")
25 public class PortMirroringConnectionPointDescription {
26
27     private String nf_type;
28     private String nfc_type;
29     private String nf_naming_code;
30     private String nfc_naming_code;
31     //Keeping below attributes as objects to accomodate for tosca functions for property
32
33     // values like get_input, get_attribute
34     private Object network_role;
35     private Object pps_capacity;
36
37     public PortMirroringConnectionPointDescription() {
38         //Populating empty strings as default values to be populated in tosca
39         nf_type = "";
40         nfc_type = "";
41         nf_naming_code = "";
42         nfc_naming_code = "";
43         network_role = "";
44         pps_capacity = "";
45     }
46
47     public String getNf_type() {
48         return nf_type;
49     }
50
51     public void setNf_type(String nf_type) {
52         this.nf_type = nf_type;
53     }
54
55     public String getNfc_type() {
56         return nfc_type;
57     }
58
59     public void setNfc_type(String nfc_type) {
60         this.nfc_type = nfc_type;
61     }
62
63     public String getNf_naming_code() {
64         return nf_naming_code;
65     }
66
67     public void setNf_naming_code(String nf_naming_code) {
68         this.nf_naming_code = nf_naming_code;
69     }
70
71     public String getNfc_naming_code() {
72         return nfc_naming_code;
73     }
74
75     public void setNfc_naming_code(String nfc_naming_code) {
76         this.nfc_naming_code = nfc_naming_code;
77     }
78
79     public Object getNetwork_role() {
80         return network_role;
81     }
82
83     public void setNetwork_role(Object network_role) {
84         this.network_role = network_role;
85     }
86
87     public Object getPps_capacity() {
88         return pps_capacity;
89     }
90
91     public void setPps_capacity(String pps_capacity) {
92         this.pps_capacity = pps_capacity;
93     }
94
95     public boolean isEmpty() {
96         return Objects.isNull(nf_type) && Objects.isNull(nfc_type) && Objects.isNull(nf_naming_code) && Objects.isNull(nfc_naming_code) && Objects
97             .isNull(network_role) && Objects.isNull(pps_capacity);
98     }
99 }