From 6dea686eca8f474b395ff1d610705c2297a8b90d Mon Sep 17 00:00:00 2001 From: "francesco.mangiacrapa" Date: Thu, 16 May 2024 10:34:46 +0200 Subject: [PATCH] added comments. Fixed toString --- .../mpformbuilder/shared/metadata/CategoryWrapper.java | 5 +++++ .../mpformbuilder/shared/metadata/MetadataFieldWrapper.java | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/gcube/portlets/widgets/mpformbuilder/shared/metadata/CategoryWrapper.java b/src/main/java/org/gcube/portlets/widgets/mpformbuilder/shared/metadata/CategoryWrapper.java index a5d1e69..4760ac9 100644 --- a/src/main/java/org/gcube/portlets/widgets/mpformbuilder/shared/metadata/CategoryWrapper.java +++ b/src/main/java/org/gcube/portlets/widgets/mpformbuilder/shared/metadata/CategoryWrapper.java @@ -51,6 +51,11 @@ public class CategoryWrapper implements Serializable{ this.description = description; } + /** + * NB!!! DOES NOT USE THIS IN UPTATE/EDIT MODE. + * + * @return the fields for this category + */ public List getFieldsForThisCategory() { return fieldsForThisCategory; } diff --git a/src/main/java/org/gcube/portlets/widgets/mpformbuilder/shared/metadata/MetadataFieldWrapper.java b/src/main/java/org/gcube/portlets/widgets/mpformbuilder/shared/metadata/MetadataFieldWrapper.java index 152348b..9fe1a9b 100644 --- a/src/main/java/org/gcube/portlets/widgets/mpformbuilder/shared/metadata/MetadataFieldWrapper.java +++ b/src/main/java/org/gcube/portlets/widgets/mpformbuilder/shared/metadata/MetadataFieldWrapper.java @@ -400,7 +400,7 @@ public class MetadataFieldWrapper implements UpdatableField, Serializable { builder.append(", maxOccurs="); builder.append(maxOccurs); builder.append(", currentValues="); - builder.append("currentValues"); + builder.append(getCurrentValues()); builder.append("]"); return builder.toString(); }