* See the License for the specific language governing permissions and
* limitations under the License.
*/
-
package org.onap.sdc.tosca.datatypes.model;
import static org.onap.sdc.tosca.services.DataModelConvertUtil.convertToscaImports;
import java.util.List;
import java.util.Map;
import java.util.Optional;
-
import org.apache.commons.collections4.MapUtils;
import org.onap.sdc.tosca.datatypes.model.heatextend.AnnotationType;
import org.onap.sdc.tosca.error.ToscaRuntimeException;
-
public class ServiceTemplate implements Template {
private String tosca_definitions_version;
if (MapUtils.isEmpty(this.interface_types)) {
this.interface_types = new HashMap<>();
}
-
Optional<Object> toscaInterfaceObj = interfaceType.convertInterfaceTypeToToscaObj();
if (!toscaInterfaceObj.isPresent()) {
throw new ToscaRuntimeException("Illegal Statement");
public void setAnnotation_types(Map<String, AnnotationType> annotationTypes) {
this.annotation_types = annotationTypes;
}
-
-
}