All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.innovenso.townplan.dsl.concepts.AbstractConceptConfigurer.groovy Maven / Gradle / Ivy

There is a newer version: 2.1.0
Show newest version
package com.innovenso.townplan.dsl.concepts


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 AbstractConceptConfigurer extends AbstractConfigurer implements HasRequiredKey, HasRequiredTitle, HasOptionalDescription {
	AbstractConceptConfigurer(@NonNull TownPlanConfigurer townPlanConfigurer) {
		super(townPlanConfigurer)
	}

	@Override
	String configurerDescription() {
		return "${conceptType()} (${key}, ${title})"
	}

	abstract String conceptType()

	@Override
	List getDefaultKeyComponents() {
		return [conceptType(), title]
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy