2 * ============LICENSE_START=======================================================
4 * ================================================================================
5 * Copyright (C) 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
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.openecomp.sdc.translator.datatypes.heattotosca;
23 public class AttachedResourceId {
24 private Object translatedId;
25 private Object entityId;
26 private ResourceReferenceType resourceReferenceType;
29 * Instantiates a new Attached resource id.
31 * @param translatedId the translated id
32 * @param entityId the entity id
33 * @param resourceReferenceType the resource reference type
35 public AttachedResourceId(Object translatedId, Object entityId,
36 ResourceReferenceType resourceReferenceType) {
37 this.translatedId = translatedId;
38 this.resourceReferenceType = resourceReferenceType;
39 this.entityId = entityId;
42 public Object getEntityId() {
46 public Object getTranslatedId() {
50 public ResourceReferenceType getResourceReferenceType() {
51 return resourceReferenceType;
54 public boolean isGetResource() {
55 return resourceReferenceType == ResourceReferenceType.GET_RESOURCE;
58 public boolean isGetParam() {
59 return resourceReferenceType == ResourceReferenceType.GET_PARAM;
62 public boolean isGetAttr() {
63 return resourceReferenceType == ResourceReferenceType.GET_ATTR;