Refactor SOL003 Adapter to organize its modules
[so.git] / bpmn / so-bpmn-tasks / src / main / java / org / onap / so / bpmn / infrastructure / adapter / vnfm / tasks / utils / NullInputParameter.java
1 /*-
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
8  * 
9  *      http://www.apache.org/licenses/LICENSE-2.0
10  * 
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.
16  * 
17  * SPDX-License-Identifier: Apache-2.0
18  * ============LICENSE_END=========================================================
19  */
20 package org.onap.so.bpmn.infrastructure.adapter.vnfm.tasks.utils;
21
22 import java.util.Collections;
23 import java.util.List;
24 import java.util.Map;
25 import org.onap.so.adapters.etsisol003adapter.lcm.v1.model.ExternalVirtualLink;
26
27 /**
28  * @author waqas.ikram@est.tech
29  */
30 public class NullInputParameter extends InputParameter {
31
32     private static final String ERROR =
33             "method should not be called for null object " + NullInputParameter.class.getSimpleName();
34
35     private static final long serialVersionUID = -7261286746726871696L;
36
37     public static final NullInputParameter NULL_INSTANCE = new NullInputParameter();
38
39     private NullInputParameter() {
40         super(Collections.emptyMap(), Collections.emptyList());
41     }
42
43     @Override
44     public void setAdditionalParams(final Map<String, String> additionalParams) {
45         throw new UnsupportedOperationException("setAdditionalParams() " + ERROR);
46     }
47
48     @Override
49     public void setExtVirtualLinks(final List<ExternalVirtualLink> extVirtualLinks) {
50         throw new UnsupportedOperationException("setExtVirtualLinks() " + ERROR);
51     }
52
53     @Override
54     public void addExtVirtualLinks(final List<ExternalVirtualLink> extVirtualLinks) {
55         throw new UnsupportedOperationException("addExtVirtualLinks() " + ERROR);
56     }
57
58     @Override
59     public void putAdditionalParams(final Map<String, String> additionalParams) {
60         throw new UnsupportedOperationException("putAdditionalParams() " + ERROR);
61     }
62 }