Initial OpenECOMP policy/engine commit
[policy/engine.git] / PolicyEngineAPI / src / main / java / org / openecomp / policy / api / AttributeType.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * PolicyEngineAPI
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
10  * 
11  *      http://www.apache.org/licenses/LICENSE-2.0
12  * 
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=========================================================
19  */
20
21 package org.openecomp.policy.api;
22
23 /**
24  * Enumeration of the Attribute Types that is used as a part of
25  * {@link org.openecomp.policy.api.PolicyParameters}.
26  * 
27  * @version 0.1
28  */
29 public enum AttributeType {
30         /**
31          * Indicates Attributes required to Match the Policy. 
32          */
33         MATCHING("matching"),
34         /**
35          * Indicates Attributes required to create DRL based Rules. 
36          */
37         RULE("rule"),
38         /**
39          * Indicates Attributes required to create MicroService policy. 
40          */
41         MICROSERVICE("microService"),
42         /**
43          * Indicates Attributes required to create settings for Decision Policy.
44          */
45         SETTINGS("settings"),
46         /**
47          * Indicates Attributes required to create dictionary fields for creating Dictionary Items
48          */
49         DICTIONARY("dictionary")
50         ;
51         
52         
53         private String name;
54         
55         private AttributeType(String typeName){
56                 this.name = typeName;
57         }
58         
59         /**
60          * Returns the <code>String</code> format of Type for this <code>AttributeType</code>
61          * @return the <code>String</code> of the Type for this <code>AttributeType</code>
62          */
63         public String toString() {
64                 return this.name;
65         }
66 }