Package org.json.simple

Examples of org.json.simple.JSONObject.containsKey()


      statsDao.updateField(JdoStatsDao.Field.COUNTRIES_SORTED_BY_NUM_EVENTS,
          countries);
    } else {
      for (Event event : events) {
        long eventCount = 0;
        if (eventsGrouped.containsKey(event.getChapterId().toString())) {
          eventCount = (Long) eventsGrouped.get(event.getChapterId().toString());
        }
        eventsGrouped.put(""+event.getChapterId(), ++eventCount);
      }
View Full Code Here


        topics.put(Topic.OPENSOCIAL, event.getTopics().contains(Topic.OPENSOCIAL));

        for (Map.Entry<String, Boolean> topicEntry : topics.entrySet()) {
          if (topicEntry.getValue() != null && topicEntry.getValue()) {
            long count = 0;
            if (eventsGrouped.containsKey(topicEntry.getKey())) {
              count = (Long) eventsGrouped.get(topicEntry.getKey());
            }
            eventsGrouped.put(topicEntry.getKey(), ++count);
          }
        }
View Full Code Here

      // Propagate form ID
      mInput.setPersistenceId((Long)input.get(ID));

      // Propagate form optional value
      if(input.containsKey(FORM_INPUT_VALUE)) {
        switch (type) {
        case MAP:
          try {
            mInput.setValue((Map<String, String>)input.get(FORM_INPUT_VALUE));
          } catch (ClassCastException e) {
View Full Code Here

      submission.setJobId((Long) object.get(JOB));
      submission.setStatus(SubmissionStatus.valueOf((String) object.get(STATUS)));
      submission.setProgress((Double) object.get(PROGRESS));

      if(object.containsKey(CREATION_USER)) {
        submission.setCreationUser((String) object.get(CREATION_USER));
      }
      if(object.containsKey(CREATION_DATE)) {
        submission.setCreationDate(new Date((Long) object.get(CREATION_DATE)));
      }
View Full Code Here

      submission.setProgress((Double) object.get(PROGRESS));

      if(object.containsKey(CREATION_USER)) {
        submission.setCreationUser((String) object.get(CREATION_USER));
      }
      if(object.containsKey(CREATION_DATE)) {
        submission.setCreationDate(new Date((Long) object.get(CREATION_DATE)));
      }
      if(object.containsKey(LAST_UPDATE_USER)) {
        submission.setLastUpdateUser((String) object.get(LAST_UPDATE_USER));
      }
View Full Code Here

        submission.setCreationUser((String) object.get(CREATION_USER));
      }
      if(object.containsKey(CREATION_DATE)) {
        submission.setCreationDate(new Date((Long) object.get(CREATION_DATE)));
      }
      if(object.containsKey(LAST_UPDATE_USER)) {
        submission.setLastUpdateUser((String) object.get(LAST_UPDATE_USER));
      }
      if(object.containsKey(LAST_UPDATE_DATE)) {
        submission.setLastUpdateDate(new Date((Long) object.get(LAST_UPDATE_DATE)));
      }
View Full Code Here

        submission.setCreationDate(new Date((Long) object.get(CREATION_DATE)));
      }
      if(object.containsKey(LAST_UPDATE_USER)) {
        submission.setLastUpdateUser((String) object.get(LAST_UPDATE_USER));
      }
      if(object.containsKey(LAST_UPDATE_DATE)) {
        submission.setLastUpdateDate(new Date((Long) object.get(LAST_UPDATE_DATE)));
      }
      if(object.containsKey(EXTERNAL_ID)) {
        submission.setExternalId((String) object.get(EXTERNAL_ID));
      }
View Full Code Here

        submission.setLastUpdateUser((String) object.get(LAST_UPDATE_USER));
      }
      if(object.containsKey(LAST_UPDATE_DATE)) {
        submission.setLastUpdateDate(new Date((Long) object.get(LAST_UPDATE_DATE)));
      }
      if(object.containsKey(EXTERNAL_ID)) {
        submission.setExternalId((String) object.get(EXTERNAL_ID));
      }
      if(object.containsKey(EXTERNAL_LINK)) {
        submission.setExternalLink((String) object.get(EXTERNAL_LINK));
      }
View Full Code Here

        submission.setLastUpdateDate(new Date((Long) object.get(LAST_UPDATE_DATE)));
      }
      if(object.containsKey(EXTERNAL_ID)) {
        submission.setExternalId((String) object.get(EXTERNAL_ID));
      }
      if(object.containsKey(EXTERNAL_LINK)) {
        submission.setExternalLink((String) object.get(EXTERNAL_LINK));
      }
      if(object.containsKey(EXCEPTION)) {
        submission.setExceptionInfo((String) object.get(EXCEPTION));
      }
View Full Code Here

        submission.setExternalId((String) object.get(EXTERNAL_ID));
      }
      if(object.containsKey(EXTERNAL_LINK)) {
        submission.setExternalLink((String) object.get(EXTERNAL_LINK));
      }
      if(object.containsKey(EXCEPTION)) {
        submission.setExceptionInfo((String) object.get(EXCEPTION));
      }
      if(object.containsKey(EXCEPTION_TRACE)) {
        submission.setExceptionStackTrace((String) object.get(EXCEPTION_TRACE));
      }
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.