Skip to content

Commit

Permalink
Remove mod class
Browse files Browse the repository at this point in the history
RISDEV-6812
  • Loading branch information
malte-laukoetter committed Feb 27, 2025
1 parent d61282a commit 6a99e0a
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 948 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

import de.bund.digitalservice.ris.norms.domain.entity.eli.DokumentExpressionEli;
import de.bund.digitalservice.ris.norms.utils.NodeParser;
import java.util.List;
import java.util.Optional;
import java.util.UUID;
import lombok.AllArgsConstructor;
Expand Down Expand Up @@ -105,19 +104,6 @@ public Optional<String> getRefersTo() {
return NodeParser.getValueFromExpression("./@refersTo", this.element);
}

/**
* Extracts the {@link Mod} for this article.
*
* @return the {@link Mod}
*/
public List<Mod> getMods() {
return NodeParser
.getElementsFromExpression("./*//mod", this.element)
.stream()
.map(Mod::new)
.toList();
}

/**
* Checks weather the {@link Article} refers to a Geltungszeitregel (which would define when a law e.g. enters
* into force)
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,4 @@ public List<Article> getArticles() {
.map(Article::new)
.toList();
}

/**
* Extracts a list of {@link Mod}s from the getDocument().
*
* @return a list of {@link Mod}s
*/
public List<Mod> getMods() {
return getElementsFromExpression("//body//mod", getDocument()).stream().map(Mod::new).toList();
}
}
Loading

0 comments on commit 6a99e0a

Please sign in to comment.