2 * ============LICENSE_START=======================================================
4 * ================================================================================
5 * Copyright (C) 2017 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.onap.policy.api;
23 import com.fasterxml.jackson.annotation.JsonCreator;
25 public enum DictionaryType{
27 * Indicates Common Dictionaries.
31 * Indicates Action Policy Dictionaries
35 * Indicates ClosedLoop Policy Dictionaries.
37 ClosedLoop("ClosedLoop"),
39 * Indicates Firewall Config Policy Dictionaries.
43 * Indicates Decision Policy Dictionaries.
47 * Indicates BRMS Policy Dictionaries.
51 * Indicates DCAE Micro Service Policy Dictionaries.
53 MicroService("MicroService"),
55 * Indicates Descriptive Scope Dictionaries
57 DescriptiveScope("DescriptiveScope"),
59 * Indicates Policy Scope Dictionaries
61 PolicyScope("PolicyScope"),
63 * Indicates Enforcer Dictionaries
67 * Indicates SafePolicy Dictionaries
69 SafePolicy("SafePolicy"),
71 * Enum support entry to extend dictionary
78 private DictionaryType(String typeName){
83 * Returns the <code>String</code> format of Type for this <code>PolicyClass</code>
84 * @return the <code>String</code> of the Type for this <code>PolicyClass</code>
87 public String toString() {
92 public static DictionaryType create (String value) {
93 for(DictionaryType type: values()){
94 if(type.toString().equals(value) || type.equals(DictionaryType.valueOf(value))){
98 throw new IllegalArgumentException();