Examples of toJson()


Examples of org.uengine.ui.tree.json.ProcessDefinitionListToJSON.toJSON()

    processDefinitionList = processDefinitionListDAO.findAllProcessDefinitions(loggedUserId);
  } else {
    processDefinitionList = processDefinitionListDAO.findAllAuthorityProcessDefinitions(loggedUserId, loggedUserGlobalCom, AclManager.PERMISSION_EDIT);
  }
  ProcessDefinitionListToJSON makeProcessDefinitionListJson = new ProcessDefinitionListToJSON();
  out.print(makeProcessDefinitionListJson.toJSON(processDefinitionList));

    } catch (Throwable t) {
      if (!(t instanceof SkipPageException)){
        out = _jspx_out;
        if (out != null && out.getBufferSize() != 0)
View Full Code Here

Examples of org.uiautomation.ios.utils.PlistFileUtils.toJSON()

  }

  protected JSONObject getFullPlist() throws Exception {
    File plist = new File(app, "Info.plist");
    PlistFileUtils util = new PlistFileUtils(plist);
    return util.toJSON();
  }

  public String getMetadata(String key) {
    if (!metadata.has(key)) {
      return "";
View Full Code Here

Examples of org.waveprotocol.wave.client.gadget.StateMap.toJson()

  private StateMap attributeToState(String attribute) {
    StateMap result = StateMap.create();
    if ((attribute != null) && !attribute.equals("")) {
      log("Unescaped attribute: ", URL.decodeComponent(attribute));
      result.fromJson(URL.decodeComponent(attribute));
      log("State map: ", result.toJson());
    }
    return result;
  }

  /**
 
View Full Code Here

Examples of org.wicketstuff.select2.json.JsonBuilder.toJson()

        selection.endObject();
      } catch (JSONException e) {
        throw new RuntimeException("Error converting model object to Json", e);
      }
      response.render(OnDomReadyHeaderItem.forScript(JQuery.execute("$('#%s').select2('data', %s);", getJquerySafeMarkupId(),
          selection.toJson())));
    }
  }
}
View Full Code Here

Examples of projectatlast.course.Course.toJSON()

  @Override
  public JSONObject toJSON() throws JSONException {
    JSONObject json = super.toJSON();

    Course course = getCourse();
    json.put("course", course == null ? null : course.toJSON());
    json.put("mood", mood == null ? null : mood.toJSON());
    json.put("social", getSocial());
    json.put("tools", new JSONArray(getTools()));
    return json;
  }
View Full Code Here

Examples of pt.webdetails.cdf.dd.structure.DashboardWcdfDescriptor.toJSON()

    StringBuilder out = new StringBuilder();
    StringBuilder widgetsOut = new StringBuilder();

    // Output WCDF
    out.append( "wcdfSettings = " );
    out.append( wcdf.toJSON().toString( 2 ) );
    out.append( ';' );
    out.append( NEWLINE );
    out.append( NEWLINE );

    boolean isFirstComp = true;
View Full Code Here

Examples of uk.ac.bbsrc.tgac.qc.run.ReportTable.toJSON()

    try {
      rt = reports.getAverageValues(map);
      if (rt == null) {
        return null;
      }
      report.put("runSummary", JSONArray.fromObject(rt.toJSON()));
    }
    catch (SQLException e) {
      e.printStackTrace();
    }
    catch (IOException e) {
View Full Code Here

Examples of uk.ac.osswatch.simal.model.IPerson.toJSON()

            "Unable to get XML representation of project from the repository",
            e);
      }
    } else if (command.isJSON()) {
      try {
        return person.toJSON();
      } catch (SimalRepositoryException e) {
        throw new SimalAPIException(
            "Unable to get XML representation of project from the repository",
            e);
      }
View Full Code Here

Examples of uk.ac.osswatch.simal.model.IProject.toJSON()

   
    try {
      if (command.isXML()) {
        return project.toXML();
      } else if (command.isJSON()) {
        return project.toJSON();
      } else {
        throw new SimalAPIException("Unkown format requested - " + command);
      }
    } catch (SimalRepositoryException e) {
      throw new SimalAPIException("Unable to convert project to the chosen format", e);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.