com.innovenso.townplan.dsl.views.AbstractViewConfigurer.groovy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of innovenso-townplanner-dsl Show documentation
Show all versions of innovenso-townplanner-dsl Show documentation
Domain Specific Language for the Innovenso Townplanner
package com.innovenso.townplan.dsl.views
import com.innovenso.townplan.dsl.AbstractConfigurer
import com.innovenso.townplan.dsl.TownPlanConfigurer
import com.innovenso.townplan.dsl.traits.HasOptionalDescription
import com.innovenso.townplan.dsl.traits.HasRequiredKey
import com.innovenso.townplan.dsl.traits.HasRequiredTitle
import lombok.NonNull
abstract class AbstractViewConfigurer extends AbstractConfigurer implements HasRequiredKey, HasRequiredTitle, HasOptionalDescription {
AbstractViewConfigurer(@NonNull TownPlanConfigurer townPlanConfigurer) {
super(townPlanConfigurer)
}
@Override
String configurerDescription() {
return "${viewType()} (${key}, ${title})"
}
abstract String viewType()
@Override
List getDefaultKeyComponents() {
return [viewType(), title]
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy