2 * ============LICENSE_START=======================================================
4 * ================================================================================
5 * Copyright © 2017-2018 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
11 * http://www.apache.org/licenses/LICENSE-2.0
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=========================================================
21 package org.onap.aai.schema.enums;
23 public enum PropertyMetadata {
26 * description of property
28 DESCRIPTION("description"),
30 * default value of property
32 DEFAULT_VALUE("defaultValue"),
34 * sets the property name used when writing to the db
38 * a URI which describes the location of a value to be
41 DATA_COPY("dataCopy"),
43 * a URI which describes another object which backs this value
45 DATA_LINK("dataLink"),
47 * controls the visibility of a field based on context
49 VISIBILITY("visibility"),
51 * specifies a field which must be populated to pass validation
55 * automatically creates an id for the property if not specified
57 AUTO_GENERATE_UUID("autoGenerateUuid"),
59 * Property is used for VNF searches in AAI UI
61 SUGGESTIBLE_ON_SEARCH("suggestibleOnSearch"),
63 * An identifier that indicates which system is the master of this property data
65 SOURCE_OF_TRUTH_TYPE("sourceOfTruthType"),
67 * makes property read only by version
69 READ_ONLY("readOnly"),
71 * Add a private edge between two objects based on the uri provided by user which should provide
72 * the appropriate information from the url similar to dataCopy
74 PRIVATE_EDGE("privateEdge"),
77 * Checks if user's owning entity equals to pnf's owning entity (if it exists)
80 OWNER_CHECK("ownerCheck");
82 private final String name;
84 private PropertyMetadata(String name) {
89 public String toString() {