2  * ============LICENSE_START=======================================================
 
   3  *  Copyright (C) 2019 Ericsson. All rights reserved.
 
   4  * ================================================================================
 
   5  * Licensed under the Apache License, Version 2.0 (the "License");
 
   6  * you may not use this file except in compliance with the License.
 
   7  * You may obtain a copy of the License at
 
   9  *      http://www.apache.org/licenses/LICENSE-2.0
 
  11  * Unless required by applicable law or agreed to in writing, software
 
  12  * distributed under the License is distributed on an "AS IS" BASIS,
 
  13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 
  14  * See the License for the specific language governing permissions and
 
  15  * limitations under the License.
 
  17  * SPDX-License-Identifier: Apache-2.0
 
  18  * ============LICENSE_END=========================================================
 
  20 package org.onap.so.bpmn.infrastructure.adapter.vnfm.tasks.utils;
 
  22 import java.util.Collections;
 
  23 import java.util.List;
 
  25 import org.onap.vnfmadapter.v1.model.ExternalVirtualLink;
 
  28  * @author waqas.ikram@est.tech
 
  30 public class NullInputParameter extends InputParameter {
 
  32     private static final String ERROR =
 
  33             "method should not be called for null object " + NullInputParameter.class.getSimpleName();
 
  35     private static final long serialVersionUID = -7261286746726871696L;
 
  37     public static final NullInputParameter NULL_INSTANCE = new NullInputParameter();
 
  39     private NullInputParameter() {
 
  40         super(Collections.emptyMap(), Collections.emptyList());
 
  44     public void setAdditionalParams(final Map<String, String> additionalParams) {
 
  45         throw new UnsupportedOperationException("setAdditionalParams() " + ERROR);
 
  49     public void setExtVirtualLinks(final List<ExternalVirtualLink> extVirtualLinks) {
 
  50         throw new UnsupportedOperationException("setExtVirtualLinks() " + ERROR);
 
  54     public void addExtVirtualLinks(final List<ExternalVirtualLink> extVirtualLinks) {
 
  55         throw new UnsupportedOperationException("addExtVirtualLinks() " + ERROR);
 
  59     public void putAdditionalParams(final Map<String, String> additionalParams) {
 
  60         throw new UnsupportedOperationException("putAdditionalParams() " + ERROR);