Examples of keySet()


Examples of org.apache.isis.applib.services.memento.MementoService.Memento.keySet()

        public void pageParametersToHints(final PageParameters pageParameters, Map<String,String> hints) {
            String hintsStr = PageParameterNames.ANCHOR.getStringFrom(pageParameters);
            if(hintsStr != null) {
                try {
                    Memento memento = new MementoServiceDefault().parse(hintsStr);
                    Set<String> keys = memento.keySet();
                    for (String safeKey : keys) {
                        String value = memento.get(safeKey, String.class);
                        String key = safeKey.replace('_', ':');
                        hints.put(key, value);
                    }

Examples of org.apache.jackrabbit.oak.plugins.document.NodeDocument.keySet()

        StringBuilder buff = new StringBuilder();
        buff.append("Nodes:\n");
        for (String p : nodes.keySet()) {
            buff.append("Path: ").append(p).append('\n');
            NodeDocument doc = nodes.get(p);
            for (String prop : doc.keySet()) {
                buff.append(prop).append('=').append(doc.get(prop)).append('\n');
            }
            buff.append("\n");
        }
        return buff.toString();

Examples of org.apache.karaf.util.Properties.keySet()

                p.put((String) key, (String) props.get(key));
            }
        }
        // remove "removed" properties from the file
        ArrayList<String> propertiesToRemove = new ArrayList<String>();
        for (Object key : p.keySet()) {
            if (props.get(key) == null
                    && !Constants.SERVICE_PID.equals(key)
                    && !ConfigurationAdmin.SERVICE_FACTORYPID.equals(key)
                    && !FILEINSTALL_FILE_NAME.equals(key)) {
                propertiesToRemove.add(key.toString());

Examples of org.apache.ldap.common.util.MultiMap.keySet()

                map.clear();
            }

            public Set keySet()
            {
                return map.keySet();
            }

            public Set entrySet()
            {
                return map.entrySet();

Examples of org.apache.lucene.dependencies.InterpolatedProperties.keySet()

         Reader reader = new InputStreamReader(inputStream, StandardCharsets.UTF_8)) {
      properties.load(reader);
    } catch (IOException e) {
      throw new BuildException("Exception reading " + ignoreConflictsFile + ": " + e.toString(), e);
    }
    for (Object obj : properties.keySet()) {
      String coordinate = (String)obj;
      if (COORDINATE_KEY_PATTERN.matcher(coordinate).matches()) {
        if ( ! directDependencies.containsKey(coordinate)) {
          orphansFound = true;
          log("ORPHAN coordinate key '" + coordinate + "' in " + ignoreConflictsFile.getName()

Examples of org.apache.nutch.crawl.MapWritable.keySet()

      map.remove(key);
      assertEquals(i, map.size());
      map.put(key, value);
      assertEquals(value, map.get(key));
      assertFalse(map.isEmpty());
      assertTrue(map.keySet().contains(key));
      assertEquals(i + 1, map.values().size());
      assertTrue(map.values().contains(value));
    }
    testWritable(map);
    MapWritable map2 = new MapWritable();

Examples of org.apache.openejb.util.SuperProperties.keySet()

        SuperProperties properties = (SuperProperties) provider.getProperties();
        if (properties.size() > 0) {
            out.println("Supports the following properties");
            out.println("    || Property Name || Description ||");

            for (Object key : properties.keySet()) {
                if (key instanceof String) {
                    String name = (String) key;

                    Map<String, String> attributes = properties.getAttributes(name);
                    if (!attributes.containsKey("hidden")) {

Examples of org.apache.openjpa.lib.util.Options.keySet()

        if (obj instanceof GenericConfigurable)
            ((GenericConfigurable) obj).setInto(invalidEntries);

    if (!invalidEntries.isEmpty() && configurationName != null) {
      Localizer.Message msg = null;
      String first = (String) invalidEntries.keySet().iterator().next();
      if (invalidEntries.keySet().size() == 1 &&
        first.indexOf('.') == -1) {
        // if there's just one misspelling and this is not a
        // path traversal, check for near misses.
        Collection options = findOptionsFor(obj.getClass());

Examples of org.apache.pdfbox.cos.COSDictionary.keySet()

            retval = entry;
        }
        else if( parent instanceof COSDictionary )
        {
            COSDictionary dict = ((COSDictionary)parent);
            List<COSName> keys = new ArrayList<COSName>(dict.keySet());
            Collections.sort( keys );
            Object key = keys.get( index );
            Object value = dict.getDictionaryObject( (COSName)key );
            MapEntry entry = new MapEntry();
            entry.setKey( key );

Examples of org.apache.poi.hpsf.CustomProperties.keySet()

    text.append( getPropertiesText(dsi) );
   
    // Now custom ones
    CustomProperties cps = dsi.getCustomProperties();
    if(cps != null) {
      Iterator keys = cps.keySet().iterator();
      while(keys.hasNext()) {
        String key = (String)keys.next();
        String val = getPropertyValueText( cps.get(key) );
        text.append(key + " = " + val + "\n");
      }
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.