595b1805e845111cf228419cd313eea54dc8e90e
[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     // Constraints
47     public static final String CONSTRAINTS = "constraints";
48     public static final String VALID_VALUES = "valid_values";
49     public static final String EQUAL = "equal";
50     public static final String GREATER_THAN = "greater_than";
51     public static final String GREATER_OR_EQUAL = "greater_or_equal";
52     public static final String LESS_THAN = "less_than";
53     public static final String LESS_OR_EQUAL = "less_or_equal";
54     public static final String IN_RANGE = "in_range";
55     public static final String LENGTH = "length";
56     public static final String MIN_LENGTH = "min_length";
57     public static final String MAX_LENGTH = "max_length";
58     public static final String PATTERN = "pattern";
59
60     // Prefix for policy nodes
61     public static final String POLICY_NODE = "onap.policies.";
62
63     // Prefix for data nodes
64     public static final String POLICY_DATA = "onap.datatypes.";
65
66     // Prefix for dictionary elements
67     public static final String DICTIONARY = "Dictionary:";
68
69     // Custom Elements that must exist in the Tosca models
70     public static final String NAME = "name";
71     public static final String CONTEXT = "context";
72
73 }