aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/org/onap/policy/clamp/clds/tosca/ToscaSchemaConstants.java
blob: c2b5d5963ca2781881f214ce4f2565d8eb2c1376 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
/*-
 * ============LICENSE_START=======================================================
 * ONAP CLAMP
 * ================================================================================
 * Copyright (C) 2018 AT&T Intellectual Property. All rights
 *                             reserved.
 * ================================================================================
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 * ============LICENSE_END============================================
 * ===================================================================
 *
 */

package org.onap.policy.clamp.clds.tosca;

public class ToscaSchemaConstants {

    // Data types in TOSCA Schema
    public static final String TYPE_LIST = "list";
    public static final String TYPE_MAP = "map";
    public static final String TYPE_STRING = "string";
    public static final String TYPE_INTEGER = "integer";
    public static final String TYPE_NUMBER = "number";
    public static final String TYPE_DATE_TIME = "datetime";
    public static final String TYPE_FLOAT = "float";
    public static final String TYPE_BOOLEAN = "boolean";
    public static final String TYPE_USER_DEFINED = "userDefined";

    // Key elements in Tosca
    public static final String NODE_TYPES = "policy_types";
    public static final String DATA_TYPES = "data_types";
    public static final String TYPE = "type";
    public static final String DESCRIPTION = "description";
    public static final String DEFAULT = "default";
    public static final String PROPERTIES = "properties";
    public static final String REQUIRED = "required";
    public static final String ENTRY_SCHEMA = "entry_schema";
    
    public static final String METADATA = "metadata";
    public static final String METADATA_POLICY_MODEL_TYPE = "policy_model_type";
    public static final String METADATA_ACRONYM = "acronym";
    public static final String METADATA_ELEMENT_NAME = "element_name";
    public static final String METADATA_HEADER_TEMPLATE = "header_template";
    public static final String METADATA_CLAMP_POSSIBLE_VALUES = "clamp_possible_values";

    // Constraints
    public static final String CONSTRAINTS = "constraints";
    public static final String VALID_VALUES = "valid_values";
    public static final String EQUAL = "equal";
    public static final String GREATER_THAN = "greater_than";
    public static final String GREATER_OR_EQUAL = "greater_or_equal";
    public static final String LESS_THAN = "less_than";
    public static final String LESS_OR_EQUAL = "less_or_equal";
    public static final String IN_RANGE = "in_range";
    public static final String LENGTH = "length";
    public static final String MIN_LENGTH = "min_length";
    public static final String MAX_LENGTH = "max_length";
    public static final String PATTERN = "pattern";

    // Prefix for policy nodes
    public static final String POLICY_NODE = "onap.policies.";

    // Prefix for data nodes
    public static final String POLICY_DATA = "onap.datatypes.";

    // Prefix for dictionary elements
    public static final String DICTIONARY = "Dictionary:";

    // Custom Elements that must exist in the Tosca models
    public static final String NAME = "name";
    public static final String CONTEXT = "context";

}