Added oparent to sdc main
[sdc.git] / openecomp-be / lib / openecomp-sdc-enrichment-lib / openecomp-sdc-enrichment-impl / src / main / java / org / openecomp / sdc / enrichment / impl / tosca / model / PortMirroringConnectionPointDescription.java
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
21 package org.openecomp.sdc.enrichment.impl.tosca.model;
22
23 import java.util.Objects;
24
25 @SuppressWarnings("CheckStyle")
26 public class PortMirroringConnectionPointDescription {
27   private String nf_type;
28   private String nfc_type;
29   private String nf_naming_code;
30   private String nfc_naming_code;
31
32   //Keeping below attributes as objects to accomodate for tosca functions for property
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)
97         && Objects.isNull(nfc_type)
98         && Objects.isNull(nf_naming_code)
99         && Objects.isNull(nfc_naming_code)
100         && Objects.isNull(network_role)
101         && Objects.isNull(pps_capacity);
102   }
103 }