com.innovenso.townplan.dsl.traits.HasRequiredEnterpriseKey.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.traits
import com.innovenso.townplan.dsl.concepts.enterprise.EnterpriseConfigurer
import jakarta.validation.constraints.NotBlank
import lombok.NonNull
trait HasRequiredEnterpriseKey {
@NotBlank
String enterprise
void enterprise(@NonNull String enterprise) {
this.enterprise = enterprise
}
void enterprise(@NonNull EnterpriseConfigurer enterpriseConfigurer) {
this.enterprise = enterpriseConfigurer.key
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy