diff --git a/li.strolch.model/src/main/java/li/strolch/model/json/FromFlatJsonVisitor.java b/li.strolch.model/src/main/java/li/strolch/model/json/FromFlatJsonVisitor.java index 03a970108..3d02707f1 100644 --- a/li.strolch.model/src/main/java/li/strolch/model/json/FromFlatJsonVisitor.java +++ b/li.strolch.model/src/main/java/li/strolch/model/json/FromFlatJsonVisitor.java @@ -15,23 +15,23 @@ import li.strolch.utils.collections.MapOfSets; /** *
* Maps a given {@link JsonObject} to a {@link StrolchRootElement}. All {@link Parameter Parameters} on the element are - * iterated expected to be found as a member on the {@link JsonObject}. + * iterated and expected to be found as a member on the {@link JsonObject}. *
* *- * To not map a {@link Parameter} add it to the {@link MapOfSets}, to ignore a whole {@link ParameterBag} then add an - * empty set with the bag id. + * To ignore {@link Parameter Parameters} or {@link ParameterBag ParameterBags} use the + * {@link #ignoreParameter(String, String)} and {@link #ignoreBag(String)} methods *
* *- * Optional values are handled similar, but only a parameter can be optional, not a whole bag + * {@link Parameter} can be made optional by using the {@link #optionalParameter(String, String)} method *
* * @author Robert von Burg* Maps a given {@link StrolchRootElement} to a {@link JsonObject}. All {@link Parameter Parameters} are mapped to a - * member of the {@link JsonObject}. + * member of the {@link JsonObject}, {@link ParameterBag ParameterBags} are thus removed *
* *- * To not map a {@link Parameter} add it to the {@link MapOfSets}, to ignore a whole {@link ParameterBag} then add an - * empty set with the bag id. + * To ignore {@link Parameter Parameters} or {@link ParameterBag ParameterBags} use the + * {@link #ignoreParameter(String, String)} and {@link #ignoreBag(String)} methods *
* + *+ * The mapping can be extended by setting hook: + *
+ * + *+ * visitor.setHook((element, jsonObject) -> { + * // do work + * }); + *+ * * @author Robert von Burg