2 * ============LICENSE_START=======================================================
4 * ================================================================================
5 * Copyright © 2017 AT&T Intellectual Property.
6 * Copyright © 2017 Amdocs
8 * ================================================================================
9 * Licensed under the Apache License, Version 2.0 (the "License");
10 * you may not use this file except in compliance with the License.
11 * You may obtain a copy of the License at
13 * http://www.apache.org/licenses/LICENSE-2.0
15 * Unless required by applicable law or agreed to in writing, software
16 * distributed under the License is distributed on an "AS IS" BASIS,
17 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18 * See the License for the specific language governing permissions and
19 * limitations under the License.
20 * ============LICENSE_END=========================================================
22 * ECOMP and OpenECOMP are trademarks
23 * and service marks of AT&T Intellectual Property.
25 package org.openecomp.datarouter.entity;
27 import java.util.List;
29 import org.openecomp.datarouter.util.CrossEntityReference;
32 public class OxmEntityDescriptor {
34 private String entityName;
36 private List<String> primaryKeyAttributeName;
38 private List<String> searchableAttributes;
40 private CrossEntityReference crossEntityReference;
42 private List<String> alias;
44 private List<String> suggestableAttributes;
46 boolean isSuggestableEntity;
48 public String getEntityName() {
52 public void setEntityName(String entityName) {
53 this.entityName = entityName;
56 public List<String> getPrimaryKeyAttributeName() {
57 return primaryKeyAttributeName;
60 public void setPrimaryKeyAttributeName(List<String> primaryKeyAttributeName) {
61 this.primaryKeyAttributeName = primaryKeyAttributeName;
64 public List<String> getSearchableAttributes() {
65 return searchableAttributes;
68 public void setSearchableAttributes(List<String> searchableAttributes) {
69 this.searchableAttributes = searchableAttributes;
72 public boolean hasSearchableAttributes() {
74 if ( this.searchableAttributes == null) {
78 if ( this.searchableAttributes.size() > 0 ) {
86 public CrossEntityReference getCrossEntityReference() {
87 return crossEntityReference;
90 public void setCrossEntityReference(CrossEntityReference crossEntityReference) {
91 this.crossEntityReference = crossEntityReference;
94 public List<String> getAlias() {
98 public void setAlias(List<String> alias) {
102 public List<String> getSuggestableAttributes() {
103 return suggestableAttributes;
106 public void setSuggestableAttributes(List<String> suggestableAttributes) {
107 this.suggestableAttributes = suggestableAttributes;
110 public boolean isSuggestableEntity() {
111 return isSuggestableEntity;
114 public void setSuggestableEntity(boolean isSuggestableEntity) {
115 this.isSuggestableEntity = isSuggestableEntity;
119 public String toString() {
120 return "OxmEntityDescriptor [entityName=" + entityName + ", primaryKeyAttributeName="
121 + primaryKeyAttributeName + ", searchableAttributes=" + searchableAttributes
122 + ", crossEntityReference=" + crossEntityReference + ", alias=" + alias
123 + ", suggestableAttributes=" + suggestableAttributes + ", isSuggestableEntity="
124 + isSuggestableEntity + "]";