congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
MenuItemDescription.setDataMap
Code IndexAdd Tabnine 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)

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

  • Updating database using SQL prepared statement
  • getSystemService (Context)
  • getExternalFilesDir (Context)
  • compareTo (BigDecimal)
  • IOException (java.io)
    Signals a general, I/O-related error. Error details may be specified when calling the constructor, a
  • SocketTimeoutException (java.net)
    This exception is thrown when a timeout expired on a socket read or accept operation.
  • BlockingQueue (java.util.concurrent)
    A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
  • DataSource (javax.sql)
    An interface for the creation of Connection objects which represent a connection to a database. This
  • JTable (javax.swing)
  • BasicDataSource (org.apache.commons.dbcp)
    Basic implementation of javax.sql.DataSource that is configured via JavaBeans properties. This is no
  • Top plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now