diff --git a/backend/src/main/java/de/bund/digitalservice/ris/caselaw/adapter/converter/docx/HyperlinkConverter.java b/backend/src/main/java/de/bund/digitalservice/ris/caselaw/adapter/converter/docx/HyperlinkConverter.java index d9ec2d208a..29c3a6e722 100644 --- a/backend/src/main/java/de/bund/digitalservice/ris/caselaw/adapter/converter/docx/HyperlinkConverter.java +++ b/backend/src/main/java/de/bund/digitalservice/ris/caselaw/adapter/converter/docx/HyperlinkConverter.java @@ -41,13 +41,13 @@ public static void convert( } else if (content instanceof JAXBElement jaxbElement) { unhandledElements.add( new UnhandledElement( - "paragraph", + "hyperlink", jaxbElement.getDeclaredType().toString(), UnhandledElementType.JAXB)); } else { unhandledElements.add( new UnhandledElement( - "paragraph", content.getClass().toString(), UnhandledElementType.OBJECT)); + "hyperlink", content.getClass().toString(), UnhandledElementType.OBJECT)); } }); } diff --git a/backend/src/main/java/de/bund/digitalservice/ris/caselaw/domain/docx/UnhandledElementType.java b/backend/src/main/java/de/bund/digitalservice/ris/caselaw/domain/docx/UnhandledElementType.java index 693895cdd6..c883c10e7e 100644 --- a/backend/src/main/java/de/bund/digitalservice/ris/caselaw/domain/docx/UnhandledElementType.java +++ b/backend/src/main/java/de/bund/digitalservice/ris/caselaw/domain/docx/UnhandledElementType.java @@ -1,5 +1,9 @@ package de.bund.digitalservice.ris.caselaw.domain.docx; +/** + * Element type for unhandled elements to know on xml parsing was used for the xml element. + * Hopefully easier to find for the later implementation of the element. + */ public enum UnhandledElementType { JAXB, OBJECT