Fixing Blueprint Typo's and docs
[ccsdk/cds.git] / ms / blueprintsprocessor / modules / blueprints / blueprint-validation / src / test / kotlin / org / onap / ccsdk / cds / controllerblueprints / validation / MockBlueprintTypeValidatorService.kt
1 /*
2  * Copyright © 2017-2018 AT&T Intellectual Property.
3  * Modifications Copyright © 2018 IBM.
4  *
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
8  *
9  *     http://www.apache.org/licenses/LICENSE-2.0
10  *
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.
16  */
17
18 package org.onap.ccsdk.cds.controllerblueprints.validation
19
20 import org.onap.ccsdk.cds.controllerblueprints.core.interfaces.BlueprintArtifactDefinitionValidator
21 import org.onap.ccsdk.cds.controllerblueprints.core.interfaces.BlueprintArtifactTypeValidator
22 import org.onap.ccsdk.cds.controllerblueprints.core.interfaces.BlueprintAttributeDefinitionValidator
23 import org.onap.ccsdk.cds.controllerblueprints.core.interfaces.BlueprintDataTypeValidator
24 import org.onap.ccsdk.cds.controllerblueprints.core.interfaces.BlueprintNodeTemplateValidator
25 import org.onap.ccsdk.cds.controllerblueprints.core.interfaces.BlueprintNodeTypeValidator
26 import org.onap.ccsdk.cds.controllerblueprints.core.interfaces.BlueprintPropertyDefinitionValidator
27 import org.onap.ccsdk.cds.controllerblueprints.core.interfaces.BlueprintServiceTemplateValidator
28 import org.onap.ccsdk.cds.controllerblueprints.core.interfaces.BlueprintTopologyTemplateValidator
29 import org.onap.ccsdk.cds.controllerblueprints.core.interfaces.BlueprintTypeValidatorService
30 import org.onap.ccsdk.cds.controllerblueprints.core.interfaces.BlueprintValidator
31 import org.onap.ccsdk.cds.controllerblueprints.core.interfaces.BlueprintWorkflowValidator
32
33 class MockBlueprintTypeValidatorService : BlueprintTypeValidatorService {
34
35     override fun <T : BlueprintValidator<*>> bluePrintValidator(referenceName: String, classType: Class<T>): T? {
36         return null
37     }
38
39     override fun <T : BlueprintValidator<*>> bluePrintValidators(referenceNamePrefix: String, classType: Class<T>): List<T>? {
40         return null
41     }
42
43     override fun <T : BlueprintValidator<*>> bluePrintValidators(classType: Class<T>): List<T>? {
44         return null
45     }
46
47     override fun getServiceTemplateValidators(): List<BlueprintServiceTemplateValidator> {
48         return listOf(BlueprintServiceTemplateValidatorImpl(this))
49     }
50
51     override fun getDataTypeValidators(): List<BlueprintDataTypeValidator> {
52         return listOf(BlueprintDataTypeValidatorImpl(this))
53     }
54
55     override fun getArtifactTypeValidators(): List<BlueprintArtifactTypeValidator> {
56         return listOf(BlueprintArtifactTypeValidatorImpl(this))
57     }
58
59     override fun getArtifactDefinitionsValidators(): List<BlueprintArtifactDefinitionValidator> {
60         return listOf(BlueprintArtifactDefinitionValidatorImpl(this))
61     }
62
63     override fun getNodeTypeValidators(): List<BlueprintNodeTypeValidator> {
64         return listOf(BlueprintNodeTypeValidatorImpl(this))
65     }
66
67     override fun getTopologyTemplateValidators(): List<BlueprintTopologyTemplateValidator> {
68         return listOf(BlueprintTopologyTemplateValidatorImpl(this))
69     }
70
71     override fun getNodeTemplateValidators(): List<BlueprintNodeTemplateValidator> {
72         return listOf(BlueprintNodeTemplateValidatorImpl(this))
73     }
74
75     override fun getWorkflowValidators(): List<BlueprintWorkflowValidator> {
76         return listOf(BlueprintWorkflowValidatorImpl(this))
77     }
78
79     override fun getPropertyDefinitionValidators(): List<BlueprintPropertyDefinitionValidator> {
80         return listOf(BlueprintPropertyDefinitionValidatorImpl(this))
81     }
82
83     override fun getAttributeDefinitionValidators(): List<BlueprintAttributeDefinitionValidator> {
84         return listOf(BlueprintAttributeDefinitionValidatorImpl(this))
85     }
86 }