From 7f7b1c8e7a8fba8e73786cb158f1ebfa5b11a8c4 Mon Sep 17 00:00:00 2001 From: vasraz Date: Tue, 20 Oct 2020 18:16:28 +0100 Subject: Add substitution_mapping attributes mapping Add support of mapping the outputs to attributes in substitution_mapping Change-Id: Ifbe95a1fdfd476aa7aca17502ee9b30bea906874 Signed-off-by: Vasyl Razinkov Issue-ID: SDC-3320 --- .../java/org/openecomp/sdc/be/model/Component.java | 1 + .../openecomp/sdc/be/model/OutputDefinition.java | 38 ++++++++++++++++++++++ 2 files changed, 39 insertions(+) create mode 100644 catalog-model/src/main/java/org/openecomp/sdc/be/model/OutputDefinition.java (limited to 'catalog-model/src/main/java') diff --git a/catalog-model/src/main/java/org/openecomp/sdc/be/model/Component.java b/catalog-model/src/main/java/org/openecomp/sdc/be/model/Component.java index 8f58a3c4d2..bf9c3275a6 100644 --- a/catalog-model/src/main/java/org/openecomp/sdc/be/model/Component.java +++ b/catalog-model/src/main/java/org/openecomp/sdc/be/model/Component.java @@ -78,6 +78,7 @@ public abstract class Component implements PropertiesOwner { private Map> requirements; private Map> componentInstancesInterfaces; private List inputs; + private List outputs; private List groups; private Map policies; private String derivedFromGenericType; diff --git a/catalog-model/src/main/java/org/openecomp/sdc/be/model/OutputDefinition.java b/catalog-model/src/main/java/org/openecomp/sdc/be/model/OutputDefinition.java new file mode 100644 index 0000000000..fc8cd0f590 --- /dev/null +++ b/catalog-model/src/main/java/org/openecomp/sdc/be/model/OutputDefinition.java @@ -0,0 +1,38 @@ +/* + * ============LICENSE_START======================================================= + * Copyright (C) 2020 Nordix Foundation + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + * SPDX-License-Identifier: Apache-2.0 + * ============LICENSE_END========================================================= + */ + +package org.openecomp.sdc.be.model; + +import org.openecomp.sdc.be.datatypes.elements.PropertyDataDefinition; + +public class OutputDefinition extends PropertyDefinition { + + public OutputDefinition(final PropertyDataDefinition propertyDataDefinition) { + super(propertyDataDefinition); + } + + public OutputDefinition(PropertyDefinition propertyDefinition) { + super(propertyDefinition); + } + + public OutputDefinition(final OutputDefinition outputDefinition) { + super(outputDefinition); + } + +} -- cgit 1.2.3-korg