2 * ============LICENSE_START=======================================================
3 * Copyright (C) 2018 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=========================================================
21 package org.onap.policy.apex.core.engine.executor.context;
23 import java.util.Collection;
27 import org.apache.commons.lang3.NotImplementedException;
28 import org.onap.policy.apex.context.ContextAlbum;
29 import org.onap.policy.apex.context.ContextException;
30 import org.onap.policy.apex.context.SchemaHelper;
31 import org.onap.policy.apex.model.basicmodel.concepts.AxArtifactKey;
32 import org.onap.policy.apex.model.basicmodel.concepts.AxConcept;
33 import org.onap.policy.apex.model.contextmodel.concepts.AxContextAlbum;
36 * Dummy context album for testing.
38 public class DummyContextAlbum implements ContextAlbum {
39 private final AxArtifactKey key;
45 public DummyContextAlbum(AxArtifactKey key) {
55 throw new NotImplementedException("Not implemented on dummy class");
62 public boolean containsKey(Object key) {
63 throw new NotImplementedException("Not implemented on dummy class");
70 public boolean containsValue(Object value) {
71 throw new NotImplementedException("Not implemented on dummy class");
78 public Set<Entry<String, Object>> entrySet() {
79 throw new NotImplementedException("Not implemented on dummy class");
86 public Object get(Object key) {
87 throw new NotImplementedException("Not implemented on dummy class");
94 public boolean isEmpty() {
95 throw new NotImplementedException("Not implemented on dummy class");
102 public Set<String> keySet() {
103 throw new NotImplementedException("Not implemented on dummy class");
110 public Object put(String key, Object value) {
111 throw new NotImplementedException("Not implemented on dummy class");
118 public void putAll(Map<? extends String, ? extends Object> map) {
119 throw new NotImplementedException("Not implemented on dummy class");
126 public Object remove(Object key) {
127 throw new NotImplementedException("Not implemented on dummy class");
135 throw new NotImplementedException("Not implemented on dummy class");
142 public Collection<Object> values() {
143 throw new NotImplementedException("Not implemented on dummy class");
150 public AxArtifactKey getKey() {
158 public String getName() {
159 throw new NotImplementedException("Not implemented on dummy class");
166 public AxContextAlbum getAlbumDefinition() {
167 throw new NotImplementedException("Not implemented on dummy class");
174 public SchemaHelper getSchemaHelper() {
175 throw new NotImplementedException("Not implemented on dummy class");
182 public void lockForReading(String key) throws ContextException {
183 throw new NotImplementedException("Not implemented on dummy class");
190 public void lockForWriting(String key) throws ContextException {
191 throw new NotImplementedException("Not implemented on dummy class");
198 public void unlockForReading(String key) throws ContextException {
199 throw new NotImplementedException("Not implemented on dummy class");
206 public void unlockForWriting(String key) throws ContextException {
207 throw new NotImplementedException("Not implemented on dummy class");
214 public AxConcept[] getUserArtifactStack() {
215 throw new NotImplementedException("Not implemented on dummy class");
222 public void setUserArtifactStack(AxConcept[] userArtifactStack) {
230 public void flush() throws ContextException {
231 throw new NotImplementedException("Not implemented on dummy class");