RED-9139: move document to module in redaction-service
* add feature version
This commit is contained in:
parent
463a96cac4
commit
63d603a501
@ -8,7 +8,7 @@ plugins {
|
||||
|
||||
group = "com.knecon.fforesight"
|
||||
|
||||
val documentVersion by rootProject.extra { "4.425.0-RED9139.13" }
|
||||
val documentVersion by rootProject.extra { "4.425.0-RED9139.14" }
|
||||
|
||||
java.sourceCompatibility = JavaVersion.VERSION_17
|
||||
java.targetCompatibility = JavaVersion.VERSION_17
|
||||
|
||||
@ -12,6 +12,7 @@ import java.util.LinkedList;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.NoSuchElementException;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
import java.util.Set;
|
||||
import java.util.stream.Collectors;
|
||||
@ -62,7 +63,6 @@ public class DocumentGraphFactory {
|
||||
|
||||
Document documentGraph = new Document();
|
||||
|
||||
|
||||
Context context = new Context(documentGraph);
|
||||
|
||||
document.getPages()
|
||||
@ -123,7 +123,7 @@ public class DocumentGraphFactory {
|
||||
node = Headline.builder().documentTree(context.getDocumentTree()).build();
|
||||
} else if (originalTextBlock.isToDuplicate() && layoutParsingType.equals(LayoutParsingType.REDACT_MANAGER)) {
|
||||
node = DuplicatedParagraph.builder().documentTree(context.getDocumentTree()).build();
|
||||
} else if (originalTextBlock.getClassification().equals(PageBlockType.TABLE_OF_CONTENTS_ITEM)) {
|
||||
} else if (Objects.equals(originalTextBlock.getClassification(), PageBlockType.TABLE_OF_CONTENTS_ITEM)) {
|
||||
node = TableOfContentsItem.builder().documentTree(context.getDocumentTree()).build();
|
||||
} else {
|
||||
node = Paragraph.builder().documentTree(context.getDocumentTree()).build();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user