Examples of entrySet()


Examples of org.apache.shiro.config.Ini.Section.entrySet()

    Section usersSection = ini.getSection(PolicyFileConstants.USERS);
    if (usersSection == null) {
      LOGGER.warn("No section " + PolicyFileConstants.USERS + " in the " + resourcePath);
      return;
    }
    for (Entry<String, String> userEntry : usersSection.entrySet()) {
      String userName = Strings.nullToEmpty(userEntry.getKey()).trim();
      String groupNames = Strings.nullToEmpty(userEntry.getValue()).trim();
      if (userName.isEmpty()) {
        LOGGER.error("Invalid user name in the " + resourcePath);
        continue;
View Full Code Here

Examples of org.apache.sling.api.request.RequestParameterMap.entrySet()

        // in a component dialog
        //widget.put("width", WIDGET_WIDTH);
        //widget.put("height", WIDGET_HEIGHT);

        RequestParameterMap map = request.getRequestParameterMap();
        for (Map.Entry<String, RequestParameter[]> entry : map.entrySet()) {
            String key = entry.getKey();
            RequestParameter[] params = entry.getValue();
            if (params != null) {
                if (params.length > 1) {
                    JSONArray arr = new JSONArray();
View Full Code Here

Examples of org.apache.sling.api.resource.ValueMap.entrySet()

            return new StringBuilder("non-existing resource: "+resource+" ("+re.getMessage()+")");
        }
        if (valueMap==null) {
            return new StringBuilder("non-existing resource: "+resource+" (no ValueMap)");
        }
        final Set<Entry<String, Object>> entrySet = valueMap.entrySet();
        final StringBuilder sb = new StringBuilder();
        for (Iterator<Entry<String, Object>> it = entrySet.iterator(); it
                .hasNext();) {
            Entry<String, Object> entry = it.next();
            sb.append(" ");
View Full Code Here

Examples of org.apache.solr.common.SolrDocument.entrySet()

     
      // perform updates
      for (int i = 0; i < RECORD_COUNT; i++) {
          SolrDocument doc = resultDocs.get(i);
          SolrInputDocument update = new SolrInputDocument();
          for (Map.Entry<String, Object> entry : doc.entrySet()) {
              update.setField(entry.getKey(), entry.getValue());
          }
          update.setField("user_screen_name", "Nadja" + i);
          update.removeField("_version_");
          cloudClient.add(update);
View Full Code Here

Examples of org.apache.solr.common.SolrInputDocument.entrySet()

               
                Map fields = parsedObject.getFields();
                addFieldsToDocument(doc, fields);
               
                List<String> syntheticField = new ArrayList<String>();
                for (Map.Entry<String, SolrInputField> entry : doc.entrySet())
                {
                    SolrInputField field = entry.getValue();
                    Object value = field.getFirstValue();
                   
                    if (value != null)
View Full Code Here

Examples of org.apache.uima.aae.monitor.statistics.Statistics.entrySet()

   *
   */
  protected void clearStats() {
    LongNumericStatistic statistic;
    Statistics stats = getMonitor().getStatistics("");
    Set set = stats.entrySet();
    for (Iterator it = set.iterator(); it.hasNext();) {
      Map.Entry entry = (Map.Entry) it.next();
      if (entry != null && entry.getValue() != null
              && entry.getValue() instanceof LongNumericStatistic) {
        ((LongNumericStatistic) entry.getValue()).reset();
View Full Code Here

Examples of org.apache.uima.ducc.transport.event.common.IDuccReservationMap.entrySet()

              }
              break;
            case hot:
              if(jdHostClass.equals(reservation.getSchedulingInfo().getSchedulingClass())) {
                IDuccReservationMap map = reservation.getReservationMap();
                Iterator<Entry<DuccId, IDuccReservation>> entries = map.entrySet().iterator();
                while(entries.hasNext()) {
                  Entry<DuccId, IDuccReservation> entry = entries.next();
                  NodeIdentity node = entry.getValue().getNodeIdentity();
                  hostManager.addNode(node);
                }
View Full Code Here

Examples of org.apache.uima.ducc.transport.event.jd.PerformanceMetricsSummaryMap.entrySet()

    String stars = "********************";
    duccOut.info(location, jobid, stars);
    String sep = " / ";
    duccOut.info(location, jobid, "PerformanceMetricsSummaryMapSize:"+map.size());
    duccOut.info(location, jobid, "uniqueName"+sep+"name"+sep+"numProcessed"+sep+"analysisTime"+sep+"Avg"+sep+"Min"+sep+"Max");
    Set<Entry<String, PerformanceMetricsSummaryItem>> tset = map.entrySet();
    for (Entry<String, PerformanceMetricsSummaryItem> entry : tset) {
      String uniqueName = entry.getKey();
      PerformanceMetricsSummaryItem value = entry.getValue();
      String name = value.getName();
      long analysisTime = value.getAnalysisTime();
View Full Code Here

Examples of org.apache.wicket.util.value.IValueMap.entrySet()

          if (openTag == null)
          {
            IValueMap attributeMap = xmlTag.getAttributes();

            for (Map.Entry<String, Object> entry : attributeMap.entrySet())
            {
              String attr = entry.getKey();
              if (attr.equals(attribute) && value.equals(entry.getValue()))
              {
                if (xmlTag.isOpen())
View Full Code Here

Examples of org.asynchttpclient.FluentCaseInsensitiveStringsMap.entrySet()

    private void addGeneralHeaders(final Request request, final HttpRequestPacket requestPacket) {

        if (isNonEmpty(request.getHeaders())) {
            final FluentCaseInsensitiveStringsMap map = request.getHeaders();
            for (final Map.Entry<String, List<String>> entry : map.entrySet()) {
                final String headerName = entry.getKey();
                final List<String> headerValues = entry.getValue();
                if (isNonEmpty(headerValues)) {
                    for (int i = 0, len = headerValues.size(); i < len; i++) {
                        requestPacket.addHeader(headerName, headerValues.get(i));
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.