2 * Copyright © 2017-2018 AT&T Intellectual Property.
3 * Modifications Copyright © 2018 IBM.
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
9 * http://www.apache.org/licenses/LICENSE-2.0
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
18 package org.onap.ccsdk.apps.controllerblueprints.validation
20 import org.onap.ccsdk.apps.controllerblueprints.core.interfaces.*
22 class MockBluePrintTypeValidatorService : BluePrintTypeValidatorService {
24 override fun <T : BluePrintValidator<*>> bluePrintValidator(referenceName: String, classType: Class<T>): T? {
28 override fun <T : BluePrintValidator<*>> bluePrintValidators(referenceNamePrefix: String, classType: Class<T>): List<T>? {
32 override fun <T : BluePrintValidator<*>> bluePrintValidators(classType: Class<T>): List<T>? {
36 override fun getServiceTemplateValidators(): List<BluePrintServiceTemplateValidator> {
37 return listOf(BluePrintServiceTemplateValidatorImpl(this))
40 override fun getDataTypeValidators(): List<BluePrintDataTypeValidator> {
41 return listOf(BluePrintDataTypeValidatorImpl(this))
44 override fun getArtifactTypeValidators(): List<BluePrintArtifactTypeValidator> {
45 return listOf(BluePrintArtifactTypeValidatorImpl(this))
48 override fun getArtifactDefinitionsValidators(): List<BluePrintArtifactDefinitionValidator> {
49 return listOf(BluePrintArtifactDefinitionValidatorImpl(this))
52 override fun getNodeTypeValidators(): List<BluePrintNodeTypeValidator> {
53 return listOf(BluePrintNodeTypeValidatorImpl(this))
56 override fun getTopologyTemplateValidators(): List<BluePrintTopologyTemplateValidator> {
57 return listOf(BluePrintTopologyTemplateValidatorImpl(this))
60 override fun getNodeTemplateValidators(): List<BluePrintNodeTemplateValidator> {
61 return listOf(BluePrintNodeTemplateValidatorImpl(this))
64 override fun getWorkflowValidators(): List<BluePrintWorkflowValidator> {
65 return listOf(BluePrintWorkflowValidatorImpl(this))
68 override fun getPropertyDefinitionValidators(): List<BluePrintPropertyDefinitionValidator> {
69 return listOf(BluePrintPropertyDefinitionValidatorImpl(this))
72 override fun getAttributeDefinitionValidators(): List<BluePrintAttributeDefinitionValidator> {
73 return listOf(BluePrintAttributeDefinitionValidatorImpl(this))