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 }