2 * ============LICENSE_START=======================================================
4 * ================================================================================
5 * Copyright (C) 2018 AT&T Intellectual Property. All rights
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
12 * http://www.apache.org/licenses/LICENSE-2.0
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 * ===================================================================
24 package org.onap.clamp.clds.tosca;
26 public class ToscaSchemaConstants {
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_NUMBER = "number";
34 public static final String TYPE_DATE_TIME = "datetime";
35 public static final String TYPE_FLOAT = "float";
36 public static final String TYPE_BOOLEAN = "boolean";
37 public static final String TYPE_USER_DEFINED = "userDefined";
39 // Key elements in Tosca
40 public static final String NODE_TYPES = "policy_types";
41 public static final String DATA_TYPES = "data_types";
42 public static final String TYPE = "type";
43 public static final String DESCRIPTION = "description";
44 public static final String DEFAULT = "default";
45 public static final String PROPERTIES = "properties";
46 public static final String REQUIRED = "required";
47 public static final String ENTRY_SCHEMA = "entry_schema";
49 public static final String METADATA = "metadata";
50 public static final String METADATA_POLICY_MODEL_TYPE = "policy_model_type";
51 public static final String METADATA_ACRONYM = "acronym";
52 public static final String METADATA_ELEMENT_NAME = "element_name";
53 public static final String METADATA_HEADER_TEMPLATE = "header_template";
54 public static final String METADATA_CLAMP_POSSIBLE_VALUES = "clamp_possible_values";
57 public static final String CONSTRAINTS = "constraints";
58 public static final String VALID_VALUES = "valid_values";
59 public static final String EQUAL = "equal";
60 public static final String GREATER_THAN = "greater_than";
61 public static final String GREATER_OR_EQUAL = "greater_or_equal";
62 public static final String LESS_THAN = "less_than";
63 public static final String LESS_OR_EQUAL = "less_or_equal";
64 public static final String IN_RANGE = "in_range";
65 public static final String LENGTH = "length";
66 public static final String MIN_LENGTH = "min_length";
67 public static final String MAX_LENGTH = "max_length";
68 public static final String PATTERN = "pattern";
70 // Prefix for policy nodes
71 public static final String POLICY_NODE = "onap.policies.";
73 // Prefix for data nodes
74 public static final String POLICY_DATA = "onap.datatypes.";
76 // Prefix for dictionary elements
77 public static final String DICTIONARY = "Dictionary:";
79 // Custom Elements that must exist in the Tosca models
80 public static final String NAME = "name";
81 public static final String CONTEXT = "context";