X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Forg%2Fonap%2Fclamp%2Fclds%2Fmodel%2Fproperties%2FModelBpmn.java;h=d35eea88cb1b41b801f7e43d2000ab0f5c4fd53e;hb=refs%2Fchanges%2F75%2F82775%2F1;hp=248a52fcb900d39d39b1590fc5d1f0cc71d33e35;hpb=8695c6f7b72e2d0899aa580b6080b885469b9099;p=clamp.git diff --git a/src/main/java/org/onap/clamp/clds/model/properties/ModelBpmn.java b/src/main/java/org/onap/clamp/clds/model/properties/ModelBpmn.java index 248a52fc..d35eea88 100644 --- a/src/main/java/org/onap/clamp/clds/model/properties/ModelBpmn.java +++ b/src/main/java/org/onap/clamp/clds/model/properties/ModelBpmn.java @@ -43,7 +43,6 @@ import org.onap.clamp.clds.util.JsonUtils; /** * Parse Model BPMN properties. - *

* Example json: {"policy" :[{"id":"Policy_0oxeocn", "from":"StartEvent_1"}]} */ public class ModelBpmn { @@ -58,10 +57,10 @@ public class ModelBpmn { private List bpmnElementIds; /** - * Create ModelBpmn and populate maps from json + * Create ModelBpmn and populate maps from json. * - * @param modelBpmnPropText - * @return + * @param modelBpmnPropText The model bpmn properties text + * @return The model bpmn */ public static ModelBpmn create(String modelBpmnPropText) { try { @@ -97,7 +96,7 @@ public class ModelBpmn { /** * Add entry to both maps. * - * @param entry + * @param entry The model bpmn entry. */ private void addEntry(ModelBpmnEntry entry) { addEntry(entriesByType, entry, entry.getType()); @@ -107,9 +106,9 @@ public class ModelBpmn { /** * Add an entry to provided map with provided key. * - * @param map - * @param entry - * @param key + * @param map The map to add the model bpmn entry + * @param entry The model bmpn entry + * @param key The key */ private static void addEntry(Map> map, ModelBpmnEntry entry, String key) { List list = map.computeIfAbsent(key, k -> new ArrayList<>()); @@ -129,6 +128,7 @@ public class ModelBpmn { } /** + * Get the id. * @return the id field given the ModelElement type */ public String getId(String type) { @@ -140,6 +140,7 @@ public class ModelBpmn { } /** + * Get the form id. * @return the fromId field given the ModelElement type */ public String getFromId(String type) { @@ -151,6 +152,7 @@ public class ModelBpmn { } /** + * Get the type. * @return the ModelElement type given the ModelElement id */ public String getType(String id) { @@ -158,6 +160,7 @@ public class ModelBpmn { } /** + * Get the bpmn element ids. * @return list of elementIds from bpmn */ public List getBpmnElementIds() {