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;
26 import org.apache.commons.lang3.NotImplementedException;
27 import org.onap.policy.apex.context.ContextAlbum;
28 import org.onap.policy.apex.context.ContextException;
29 import org.onap.policy.apex.context.SchemaHelper;
30 import org.onap.policy.apex.model.basicmodel.concepts.AxArtifactKey;
31 import org.onap.policy.apex.model.basicmodel.concepts.AxConcept;
32 import org.onap.policy.apex.model.contextmodel.concepts.AxContextAlbum;
35 * Dummy context album for testing.
37 public class DummyContextAlbum implements ContextAlbum {
38 private final AxArtifactKey key;
44 public DummyContextAlbum(AxArtifactKey key) {
54 throw new NotImplementedException("Not implemented on dummy class");
61 public boolean containsKey(Object key) {
62 throw new NotImplementedException("Not implemented on dummy class");
69 public boolean containsValue(Object value) {
70 throw new NotImplementedException("Not implemented on dummy class");
77 public Set<Entry<String, Object>> entrySet() {
78 throw new NotImplementedException("Not implemented on dummy class");
85 public Object get(Object key) {
86 throw new NotImplementedException("Not implemented on dummy class");
93 public boolean isEmpty() {
94 throw new NotImplementedException("Not implemented on dummy class");
101 public Set<String> keySet() {
102 throw new NotImplementedException("Not implemented on dummy class");
109 public Object put(String key, Object value) {
110 throw new NotImplementedException("Not implemented on dummy class");
117 public void putAll(Map<? extends String, ? extends Object> map) {
118 throw new NotImplementedException("Not implemented on dummy class");
125 public Object remove(Object key) {
126 throw new NotImplementedException("Not implemented on dummy class");
134 throw new NotImplementedException("Not implemented on dummy class");
141 public Collection<Object> values() {
142 throw new NotImplementedException("Not implemented on dummy class");
149 public AxArtifactKey getKey() {
157 public String getName() {
158 throw new NotImplementedException("Not implemented on dummy class");
165 public AxContextAlbum getAlbumDefinition() {
166 throw new NotImplementedException("Not implemented on dummy class");
173 public SchemaHelper getSchemaHelper() {
174 throw new NotImplementedException("Not implemented on dummy class");
181 public void lockForReading(String key) throws ContextException {
182 throw new NotImplementedException("Not implemented on dummy class");
189 public void lockForWriting(String key) throws ContextException {
190 throw new NotImplementedException("Not implemented on dummy class");
197 public void unlockForReading(String key) throws ContextException {
198 throw new NotImplementedException("Not implemented on dummy class");
205 public void unlockForWriting(String key) throws ContextException {
206 throw new NotImplementedException("Not implemented on dummy class");
213 public AxConcept[] getUserArtifactStack() {
214 throw new NotImplementedException("Not implemented on dummy class");
221 public void setUserArtifactStack(AxConcept[] userArtifactStack) {
229 public void flush() throws ContextException {
230 throw new NotImplementedException("Not implemented on dummy class");