2 * ============LICENSE_START=======================================================
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
11 * http://www.apache.org/licenses/LICENSE-2.0
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=========================================================
21 package org.openecomp.sdc.enrichment.impl.tosca.model;
23 import java.util.Objects;
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;
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;
37 public PortMirroringConnectionPointDescription() {
38 //Populating empty strings as default values to be populated in tosca
47 public String getNf_type() {
51 public void setNf_type(String nf_type) {
52 this.nf_type = nf_type;
55 public String getNfc_type() {
59 public void setNfc_type(String nfc_type) {
60 this.nfc_type = nfc_type;
63 public String getNf_naming_code() {
64 return nf_naming_code;
67 public void setNf_naming_code(String nf_naming_code) {
68 this.nf_naming_code = nf_naming_code;
71 public String getNfc_naming_code() {
72 return nfc_naming_code;
75 public void setNfc_naming_code(String nfc_naming_code) {
76 this.nfc_naming_code = nfc_naming_code;
79 public Object getNetwork_role() {
83 public void setNetwork_role(Object network_role) {
84 this.network_role = network_role;
87 public Object getPps_capacity() {
91 public void setPps_capacity(String pps_capacity) {
92 this.pps_capacity = pps_capacity;
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);