2809b3d4aecd0fbb1db534457df5295c1c02baa9
[aai/aai-common.git] / aai-schema / src / main / java / org / onap / aai / schema / enums / PropertyMetadata.java
1 /**
2  * ============LICENSE_START=======================================================
3  * org.onap.aai
4  * ================================================================================
5  * Copyright © 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  * ECOMP is a trademark and service mark of AT&T Intellectual Property.
21  */
22 package org.onap.aai.schema.enums;
23
24 public enum PropertyMetadata {
25
26         /**
27          * description of property
28          */
29         DESCRIPTION("description"),
30         /**
31          * default value of property
32          */
33         DEFAULT_VALUE("defaultValue"),
34         /**
35          * sets the property name used when writing to the db
36          */
37         DB_ALIAS("dbAlias"),
38         /**
39          * a URI which describes the location of a value to be
40          * written on a PUT
41          */
42         DATA_COPY("dataCopy"),
43         /**
44          * a URI which describes another object which backs this value
45          */
46         DATA_LINK("dataLink"),
47         /**
48          * controls the visibility of a field based on context
49          */
50         VISIBILITY("visibility"),
51         /**
52          * specifies a field which must be populated to pass validation
53          */
54         REQUIRES("requires"),
55         /**
56          * automatically creates an id for the property if not specified
57          */
58         AUTO_GENERATE_UUID("autoGenerateUuid"),
59         /**
60          * Property is used for VNF searches in AAI UI
61          */
62         SUGGESTIBLE_ON_SEARCH("suggestibleOnSearch"),
63         /**
64          * An identifier that indicates which system is the master of this property data
65          */
66         SOURCE_OF_TRUTH_TYPE("sourceOfTruthType"),
67         /**
68          * makes property read only by version
69          */
70         READ_ONLY("readOnly");
71         
72          private final String name;
73
74           private PropertyMetadata(String name) { 
75             this.name = name;
76           }
77
78           @Override public String toString() {
79             return name; 
80           }
81 }