2 * ============LICENSE_START=======================================================
4 * ================================================================================
5 * Copyright © 2017-2018 AT&T Intellectual Property. All rights reserved.
6 * Copyright © 2017-2018 Amdocs
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=========================================================
21 package org.onap.aai.datarouter.entity;
23 import java.util.List;
25 import org.onap.aai.datarouter.util.CrossEntityReference;
28 public class OxmEntityDescriptor {
30 private String entityName;
32 private List<String> primaryKeyAttributeName;
34 private List<String> searchableAttributes;
36 private CrossEntityReference crossEntityReference;
38 private List<String> alias;
40 private List<String> suggestableAttributes;
42 boolean isSuggestableEntity;
44 public String getEntityName() {
48 public void setEntityName(String entityName) {
49 this.entityName = entityName;
52 public List<String> getPrimaryKeyAttributeName() {
53 return primaryKeyAttributeName;
56 public void setPrimaryKeyAttributeName(List<String> primaryKeyAttributeName) {
57 this.primaryKeyAttributeName = primaryKeyAttributeName;
60 public List<String> getSearchableAttributes() {
61 return searchableAttributes;
64 public void setSearchableAttributes(List<String> searchableAttributes) {
65 this.searchableAttributes = searchableAttributes;
68 public boolean hasSearchableAttributes() {
70 if ( this.searchableAttributes == null) {
74 if ( !this.searchableAttributes.isEmpty() ) {
82 public CrossEntityReference getCrossEntityReference() {
83 return crossEntityReference;
86 public void setCrossEntityReference(CrossEntityReference crossEntityReference) {
87 this.crossEntityReference = crossEntityReference;
90 public List<String> getAlias() {
94 public void setAlias(List<String> alias) {
98 public List<String> getSuggestableAttributes() {
99 return suggestableAttributes;
102 public void setSuggestableAttributes(List<String> suggestableAttributes) {
103 this.suggestableAttributes = suggestableAttributes;
106 public boolean isSuggestableEntity() {
107 return isSuggestableEntity;
110 public void setSuggestableEntity(boolean isSuggestableEntity) {
111 this.isSuggestableEntity = isSuggestableEntity;
115 public String toString() {
116 return "OxmEntityDescriptor [entityName=" + entityName + ", primaryKeyAttributeName="
117 + primaryKeyAttributeName + ", searchableAttributes=" + searchableAttributes
118 + ", crossEntityReference=" + crossEntityReference + ", alias=" + alias
119 + ", suggestableAttributes=" + suggestableAttributes + ", isSuggestableEntity="
120 + isSuggestableEntity + "]";