Changes include Metadata support, Upload tosca policy model and Loop Template
[clamp.git] / src / main / java / org / onap / clamp / clds / tosca / ToscaSchemaConstants.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * ONAP CLAMP
4  * ================================================================================
5  * Copyright (C) 2018 AT&T Intellectual Property. All rights
6  *                             reserved.
7  * ================================================================================
8  * Licensed under the Apache License, Version 2.0 (the "License");
9  * you may not use this file except in compliance with the License.
10  * You may obtain a copy of the License at
11  *
12  * http://www.apache.org/licenses/LICENSE-2.0
13  *
14  * Unless required by applicable law or agreed to in writing, software
15  * distributed under the License is distributed on an "AS IS" BASIS,
16  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17  * See the License for the specific language governing permissions and
18  * limitations under the License.
19  * ============LICENSE_END============================================
20  * ===================================================================
21  *
22  */
23
24 package org.onap.clamp.clds.tosca;
25
26 public class ToscaSchemaConstants {
27
28     // Data types in TOSCA Schema
29     public static final String TYPE_LIST = "list";
30     public static final String TYPE_MAP = "map";
31     public static final String TYPE_STRING = "string";
32     public static final String TYPE_INTEGER = "integer";
33     public static final String TYPE_FLOAT = "float";
34     public static final String TYPE_BOOLEAN = "boolean";
35
36     // Key elements in Tosca
37     public static final String NODE_TYPES = "policy_types";
38     public static final String DATA_TYPES = "data_types";
39     public static final String TYPE = "type";
40     public static final String DESCRIPTION = "description";
41     public static final String DEFAULT = "default";
42     public static final String PROPERTIES = "properties";
43     public static final String REQUIRED = "required";
44     public static final String ENTRY_SCHEMA = "entry_schema";
45     
46     public static final String METADATA = "metadata";
47     public static final String METADATA_POLICY_MODEL_TYPE = "policy_model_type";
48     public static final String METADATA_ACRONYM = "acronym";
49     public static final String METADATA_CLAMP_POSSIBLE_VALUES = "clamp_possible_values";
50
51     // Constraints
52     public static final String CONSTRAINTS = "constraints";
53     public static final String VALID_VALUES = "valid_values";
54     public static final String EQUAL = "equal";
55     public static final String GREATER_THAN = "greater_than";
56     public static final String GREATER_OR_EQUAL = "greater_or_equal";
57     public static final String LESS_THAN = "less_than";
58     public static final String LESS_OR_EQUAL = "less_or_equal";
59     public static final String IN_RANGE = "in_range";
60     public static final String LENGTH = "length";
61     public static final String MIN_LENGTH = "min_length";
62     public static final String MAX_LENGTH = "max_length";
63     public static final String PATTERN = "pattern";
64
65     // Prefix for policy nodes
66     public static final String POLICY_NODE = "onap.policies.";
67
68     // Prefix for data nodes
69     public static final String POLICY_DATA = "onap.datatypes.";
70
71     // Prefix for dictionary elements
72     public static final String DICTIONARY = "Dictionary:";
73
74     // Custom Elements that must exist in the Tosca models
75     public static final String NAME = "name";
76     public static final String CONTEXT = "context";
77
78 }