Examples of keySet()


Examples of javax.xml.ws.handler.MessageContext.keySet()

       
        PersistenceUtils pu = new PersistenceUtils();
        InputStream is = pu.getContextAsInputStream(soapContext);
        assert null != is;       
        MessageContext restored = pu.getContext(is);
        assertEquals(3, restored.keySet().size());
        assertEquals(soapContext.get(ObjectMessageContext.MESSAGE_INPUT),
                     restored.get(ObjectMessageContext.MESSAGE_INPUT));
        Object[] params = (Object[])soapContext.get(ObjectMessageContext.METHOD_PARAMETERS);
        Object[] restoredParams = (Object[])restored.get(ObjectMessageContext.METHOD_PARAMETERS);
        assertEquals(params.length, restoredParams.length);

Examples of javolution.util.FastMap.keySet()

    try {
      if (server != null) {
        // convert request arguments to token
        FastMap<String, String[]> lParms = new FastMap(request.getParameterMap());
        Token lToken = new Token();
        for (String lParm : lParms.keySet()) {
          String[] lValues = lParms.get(lParm);
          if (lValues != null && lValues.length > 0) {
            lToken.put(lParm, lValues[0]);
          }
        }

Examples of kiss.Table.keySet()

                            }
                            list.add(annotation);
                        }

                        // check method overriding
                        for (Method candidate : table.keySet()) {
                            if (candidate.getName().equals(method.getName()) && Arrays.deepEquals(candidate.getParameterTypes(), method.getParameterTypes())) {
                                method = candidate; // detect overriding
                                break;
                            }
                        }

Examples of me.kafeitu.demo.activiti.util.LinkedProperties.keySet()

        try {
            ClassLoader loader = Thread.currentThread().getContextClassLoader();
            inputStream = loader.getResourceAsStream("application-files.properties");
            Properties props = new LinkedProperties();
            props.load(inputStream);
            Set<Object> fileKeySet = props.keySet();
            for (Object obj : fileKeySet) {
                logger.debug("读取文件:key={}, value={}", obj, props.getProperty(obj.toString()));
                sb.append("<span style='color:red;font-weight:bold;'>" + props.getProperty(obj.toString()) + "</span><br/>");
                if (props.getProperty(obj.toString()).startsWith("file:")) {
                    File file = new File(props.getProperty(obj.toString()).split(":")[1]);

Examples of net.minecraftforge.common.config.ConfigCategory.keySet()

    private static void loadRecipeOption() {
        configMain.addCustomCategoryComment(CAT_RECIPES, "You can add or remove various recipes here");

        ConfigCategory cat = configMain.getCategory(CAT_RECIPES);
        Iterator<String> keys = cat.keySet().iterator();
        while (keys.hasNext()) {
            String key = keys.next();
            if (key.startsWith("recipe"))
                keys.remove();
        }

Examples of net.minidev.json.JSONObject.keySet()

          JSONObject object = p.parse(reader, JSONObject.class);
          log.debug("object: {}", object);

          if (object instanceof Map) {
            for (String key : object.keySet()) {

              if (key.equalsIgnoreCase("events")) {

                JSONArray evts = (JSONArray) object.get(key);
                AuditEventMessage[] msgs = new AuditEventMessage[evts

Examples of net.opengis.wps10.OutputDefinitionsType.keySet()

                    OutputDataType output = encodeOutput(key, outputParam, mimeType, odt.isAsReference());
                    processOutputs.getOutput().add(output);
                }
            } else {
                // encode all as inline for the moment
                for (String key : outputs.keySet()) {
                    Parameter<?> outputParam = resultInfo.get(key);
                    OutputDataType output = encodeOutput(key, outputParam, null, false);
                    processOutputs.getOutput().add(output);
                }
            }

Examples of net.openhft.collections.SharedHashMap.keySet()

     * keySet returns a Set containing all the keys
     */
    @Test
    public void testKeySet() throws IOException {
        SharedHashMap map = map5();
        Set s = map.keySet();
        assertEquals(5, s.size());
        assertTrue(s.contains(one));
        assertTrue(s.contains(two));
        assertTrue(s.contains(three));
        assertTrue(s.contains(four));

Examples of net.sf.cglib.beans.BeanMap.keySet()

    public <C extends ApiObject> C copy(C original, AuthorizationContext authorizationContext)
    {
        C copy = (C) createInstance(original.getClass());
        BeanMap beanMap = getBeanMap(copy);
        Set<String> set = beanMap.keySet();
        for (String propertyName : set)
        {
            if(authorizationContext.isReadable(propertyName))
                beanMap.put(copy,propertyName,beanMap.get(original,propertyName));
        }

Examples of net.sf.joafip.java.util.PHashMap.keySet()

  }

  @SuppressWarnings("rawtypes")
  public void testNoProxy() {
    final PHashMap map = PHashMap.newInstance(this);
    assertNotNull("must succeed create an iterator", map.keySet()
        .iterator());
  }

  @SuppressWarnings("rawtypes")
  public void testWithProxy() throws FilePersistenceException,
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.