revert image name change

This commit is contained in:
Kilian Schuettler 2024-03-05 16:07:29 +01:00
parent 58fb062a79
commit 620c315867
2 changed files with 3 additions and 15 deletions

View File

@ -98,14 +98,14 @@ public class Image implements GenericSemanticNode, IEntity {
public String type() {
return getManualOverwrite().getType()
.orElse(imageType.toString());
.orElse(imageType.toString().toLowerCase(Locale.ENGLISH));
}
@Override
public String toString() {
return treeId + ": " + NodeType.IMAGE + ": " + imageType.toString() + " " + position;
return treeId + ": " + getValue() + " " + position;
}

View File

@ -6,22 +6,10 @@ public enum ImageType {
LOGO,
FORMULA,
SIGNATURE,
OTHER {
@Override
public String toString() {
return "image";
}
},
OTHER,
OCR;
public String toString() {
return name().toLowerCase(Locale.ENGLISH);
}
public static ImageType fromString(String imageType) {
return switch (imageType.toLowerCase(Locale.ROOT)) {