Skip to content

Commit

Permalink
Revert "Add some more builder methods"
Browse files Browse the repository at this point in the history
This reverts commit b92519b.
  • Loading branch information
morpheus-87 committed Sep 5, 2023
1 parent 9a73747 commit 402564f
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 48 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,9 @@

import de.digitalcollections.model.identifiable.entity.agent.Agent;
import de.digitalcollections.model.text.LocalizedStructuredContent;
import de.digitalcollections.model.text.StructuredContent;
import java.time.LocalDate;
import java.util.ArrayList;
import java.util.List;
import java.util.Locale;
import lombok.experimental.SuperBuilder;
import org.wikidata.wdtk.datamodel.interfaces.TimeValue;

Expand Down Expand Up @@ -72,13 +70,5 @@ public C build() {
c.init();
return c;
}

public B text(Locale locale, StructuredContent content) {
if (text == null) {
text = new LocalizedStructuredContent();
}
text.put(locale, content);
return self();
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,9 @@
import de.digitalcollections.model.identifiable.INode;
import de.digitalcollections.model.identifiable.Node;
import de.digitalcollections.model.text.LocalizedStructuredContent;
import de.digitalcollections.model.text.StructuredContent;
import java.time.LocalDate;
import java.util.ArrayList;
import java.util.List;
import java.util.Locale;
import java.util.Objects;
import lombok.experimental.SuperBuilder;

Expand Down Expand Up @@ -197,13 +195,5 @@ public B publicationStart(String publicationStart) {
this.publicationStart = LocalDate.parse(publicationStart);
return self();
}

public B text(Locale locale, StructuredContent content) {
if (text == null) {
text = new LocalizedStructuredContent();
}
text.put(locale, content);
return self();
}
}
}
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
package de.digitalcollections.model.identifiable.entity;

import de.digitalcollections.model.text.LocalizedStructuredContent;
import de.digitalcollections.model.text.StructuredContent;
import java.time.LocalDate;
import java.util.Locale;
import lombok.experimental.SuperBuilder;

/**
Expand Down Expand Up @@ -78,13 +76,5 @@ public C build() {
setInternalReferences(c);
return c;
}

public B text(Locale locale, StructuredContent content) {
if (text == null) {
text = new LocalizedStructuredContent();
}
text.put(locale, content);
return self();
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -155,14 +155,6 @@ public B homepageUrl(URL homepageUrl) {
return self();
}

public B text(Locale locale, StructuredContent content) {
if (text == null) {
text = new LocalizedStructuredContent();
}
text.put(locale, content);
return self();
}

public B text(Locale locale, String text) {
if (this.text == null) {
this.text = new LocalizedStructuredContent();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,9 @@
import de.digitalcollections.model.identifiable.Node;
import de.digitalcollections.model.text.LocalizedStructuredContent;
import de.digitalcollections.model.text.LocalizedText;
import de.digitalcollections.model.text.StructuredContent;
import de.digitalcollections.model.view.RenderingHints;
import java.time.LocalDate;
import java.util.List;
import java.util.Locale;
import lombok.experimental.SuperBuilder;

/** A Webpage of a Website. */
Expand Down Expand Up @@ -181,13 +179,5 @@ public B templateName(String templateName) {
renderingHints.setTemplateName(templateName);
return self();
}

public B text(Locale locale, StructuredContent content) {
if (text == null) {
text = new LocalizedStructuredContent();
}
text.put(locale, content);
return self();
}
}
}

0 comments on commit 402564f

Please sign in to comment.