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

com.innovenso.townplan.dsl.views.AbstractViewConfigurer.groovy Maven / Gradle / Ivy

There is a newer version: 2.1.0
Show newest version
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