org.archguard.linter.rule.sql.DatamapRuleSlot.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of rule-sql Show documentation
Show all versions of rule-sql Show documentation
ArchGuard is a architecture governance tool which can analysis architecture in container, component, code level, create architecture fitness functions, and anaysis system dependencies..
The newest version!
package org.archguard.linter.rule.sql
import org.archguard.meta.Coin
import org.archguard.meta.Materials
import org.archguard.meta.OutputType
import org.archguard.meta.Slot
import org.archguard.rule.core.Issue
import org.archguard.rule.core.RuleSet
import org.archguard.context.CodeDatabaseRelation
class DatamapRuleSlot() : Slot {
override var material: Materials = listOf()
override var outClass: String = Issue.Companion::class.java.name
override fun ticket(): Coin {
return listOf(CodeDatabaseRelation::class.java.name)
}
override fun prepare(items: List): List {
val ruleSets = listOf(SqlRuleSetProvider().get())
this.material = ruleSets
return ruleSets
}
override fun process(items: List): OutputType {
return DatamapRuleVisitor(items as List).visitor(this.material as Iterable)
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy