2 * ============LICENSE_START=======================================================
4 * ================================================================================
5 * Copyright © 2017 AT&T Intellectual Property. All rights reserved.
6 * Copyright © 2017 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 * ECOMP is a trademark and service mark of AT&T Intellectual Property.
23 package org.openecomp.datarouter.entity;
25 import java.util.List;
27 import org.openecomp.datarouter.util.CrossEntityReference;
30 public class OxmEntityDescriptor {
32 private String entityName;
34 private List<String> primaryKeyAttributeName;
36 private List<String> searchableAttributes;
38 private CrossEntityReference crossEntityReference;
40 private List<String> alias;
42 private List<String> suggestableAttributes;
44 boolean isSuggestableEntity;
46 public String getEntityName() {
50 public void setEntityName(String entityName) {
51 this.entityName = entityName;
54 public List<String> getPrimaryKeyAttributeName() {
55 return primaryKeyAttributeName;
58 public void setPrimaryKeyAttributeName(List<String> primaryKeyAttributeName) {
59 this.primaryKeyAttributeName = primaryKeyAttributeName;
62 public List<String> getSearchableAttributes() {
63 return searchableAttributes;
66 public void setSearchableAttributes(List<String> searchableAttributes) {
67 this.searchableAttributes = searchableAttributes;
70 public boolean hasSearchableAttributes() {
72 if ( this.searchableAttributes == null) {
76 if ( this.searchableAttributes.size() > 0 ) {
84 public CrossEntityReference getCrossEntityReference() {
85 return crossEntityReference;
88 public void setCrossEntityReference(CrossEntityReference crossEntityReference) {
89 this.crossEntityReference = crossEntityReference;
92 public List<String> getAlias() {
96 public void setAlias(List<String> alias) {
100 public List<String> getSuggestableAttributes() {
101 return suggestableAttributes;
104 public void setSuggestableAttributes(List<String> suggestableAttributes) {
105 this.suggestableAttributes = suggestableAttributes;
108 public boolean isSuggestableEntity() {
109 return isSuggestableEntity;
112 public void setSuggestableEntity(boolean isSuggestableEntity) {
113 this.isSuggestableEntity = isSuggestableEntity;
117 public String toString() {
118 return "OxmEntityDescriptor [entityName=" + entityName + ", primaryKeyAttributeName="
119 + primaryKeyAttributeName + ", searchableAttributes=" + searchableAttributes
120 + ", crossEntityReference=" + crossEntityReference + ", alias=" + alias
121 + ", suggestableAttributes=" + suggestableAttributes + ", isSuggestableEntity="
122 + isSuggestableEntity + "]";