From dd13dbd97b0b794ef86434ab9fddb81b39f7b11b Mon Sep 17 00:00:00 2001 From: Matthias Lindinger Date: Thu, 7 Sep 2023 13:36:32 +0200 Subject: [PATCH] Add builder for RenderingHints --- .../digitalcollections/model/view/RenderingHints.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/dc-model/src/main/java/de/digitalcollections/model/view/RenderingHints.java b/dc-model/src/main/java/de/digitalcollections/model/view/RenderingHints.java index 4d6a7faa..9b6fdc2a 100644 --- a/dc-model/src/main/java/de/digitalcollections/model/view/RenderingHints.java +++ b/dc-model/src/main/java/de/digitalcollections/model/view/RenderingHints.java @@ -1,6 +1,9 @@ package de.digitalcollections.model.view; +import lombok.experimental.SuperBuilder; + /** Contains hints for rendering a webpage */ +@SuperBuilder public class RenderingHints { /** Defines if an in-page navigation (a TOC) is rendered */ @@ -9,6 +12,13 @@ public class RenderingHints { /** Defines the name of the template to use for rendering */ private String templateName; + public RenderingHints() {} + + public RenderingHints(boolean showInPageNavigation, String templateName) { + this.showInPageNavigation = showInPageNavigation; + this.templateName = templateName; + } + public String getTemplateName() { return templateName; }