com.innovenso.townplan.dsl.Zone.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
import lombok.NonNull
import static groovy.lang.Closure.DELEGATE_FIRST
class Zone {
Closure configurer
def concepts(@DelegatesTo(value = ZoneConfigurer, strategy = DELEGATE_FIRST) Closure configurer) {
this.configurer = configurer
}
ZoneConfigurer apply(TownPlanConfigurer townPlanConfigurer) {
if (configurer == null) return
def zoneConfigurer = new ZoneConfigurer(townPlanConfigurer)
configurer.delegate = zoneConfigurer
configurer.resolveStrategy = DELEGATE_FIRST
configurer.run()
zoneConfigurer
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy