Codota Logo
MenuItemDescription.setDataMap
Code IndexAdd Codota to your IDE (free)

How to use
setDataMap
method
in
org.jbpm.form.builder.services.model.menu.MenuItemDescription

Best Java code snippets using org.jbpm.form.builder.services.model.menu.MenuItemDescription.setDataMap (Showing top 2 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
BufferedReader b =
  • Codota IconInputStream in;new BufferedReader(new InputStreamReader(in))
  • Codota IconReader in;new BufferedReader(in)
  • Codota IconFile file;new BufferedReader(new FileReader(file))
  • Smart code suggestions by Codota
}
origin: org.jbpm/form-services

@Override
@SuppressWarnings("unchecked")
public Map<String, List<MenuItemDescription>> decodeMenuItemsMap(String json)
    throws FormEncodingException {
  JsonObject jsonObj = new JsonParser().parse(json).getAsJsonObject();
  Map<String, Object> dataMap = asMap(jsonObj);
  Map<String, List<MenuItemDescription>> retval = null;
  if (dataMap != null) {
    retval = new HashMap<String, List<MenuItemDescription>>();
    for (Map.Entry<String, Object> entry : dataMap.entrySet()) {
      List<MenuItemDescription> itemsList = new ArrayList<MenuItemDescription>();
      String key = entry.getKey();
      Object obj = entry.getValue();
      if (obj != null) {
        List<Object> itemsMapList = (List<Object>) obj;
        for (Object itemObj : itemsMapList) {
          Map<String, Object> itemDescMap = (Map<String, Object>) itemObj;
          MenuItemDescription desc = new MenuItemDescription();
          desc.setDataMap(itemDescMap);
          itemsList.add(desc);
        }
      }
      retval.put(key, itemsList);
    }
  }
  return retval;
}
origin: org.jbpm/jbpm-form-services

@Override
@SuppressWarnings("unchecked")
public Map<String, List<MenuItemDescription>> decodeMenuItemsMap(String json)
    throws FormEncodingException {
  JsonObject jsonObj = new JsonParser().parse(json).getAsJsonObject();
  Map<String, Object> dataMap = asMap(jsonObj);
  Map<String, List<MenuItemDescription>> retval = null;
  if (dataMap != null) {
    retval = new HashMap<String, List<MenuItemDescription>>();
    for (Map.Entry<String, Object> entry : dataMap.entrySet()) {
      List<MenuItemDescription> itemsList = new ArrayList<MenuItemDescription>();
      String key = entry.getKey();
      Object obj = entry.getValue();
      if (obj != null) {
        List<Object> itemsMapList = (List<Object>) obj;
        for (Object itemObj : itemsMapList) {
          Map<String, Object> itemDescMap = (Map<String, Object>) itemObj;
          MenuItemDescription desc = new MenuItemDescription();
          desc.setDataMap(itemDescMap);
          itemsList.add(desc);
        }
      }
      retval.put(key, itemsList);
    }
  }
  return retval;
}
org.jbpm.form.builder.services.model.menuMenuItemDescriptionsetDataMap

Popular methods of MenuItemDescription

  • <init>
  • getDataMap
  • getName
  • setAllowedEvents
  • setEffects
  • setIconUrl
  • setItemRepresentationMap
  • setName

Popular in Java

  • Making http requests using okhttp
  • requestLocationUpdates (LocationManager)
  • getApplicationContext (Context)
  • orElseThrow (Optional)
  • Map (java.util)
    A Map is a data structure consisting of a set of keys and values in which each key is mapped to a si
  • SortedSet (java.util)
    A Set that further provides a total ordering on its elements. The elements are ordered using their C
  • Pattern (java.util.regex)
    A compiled representation of a regular expression. A regular expression, specified as a string, must
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
  • JOptionPane (javax.swing)
  • JTextField (javax.swing)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now