Examples of keys()


Examples of org.apache.forrest.conf.AntProperties.keys()

    public Iterator getAttributeNames(Configuration modeConf, Map objectModel)
            throws ConfigurationException {
        AntProperties properties = getProperties(objectModel);
        SortedSet matchset = new TreeSet();
        Enumeration enumeration = properties.keys();
        while (enumeration.hasMoreElements()) {
            String key = (String) enumeration.nextElement();
            matchset.add(key);
        }
        Iterator iterator = super.getAttributeNames(modeConf, objectModel);
View Full Code Here

Examples of org.apache.jena.atlas.json.JsonObject.keys()

            BindingMap b = BindingFactory.create() ;
            JsonValue v = iter.next() ;
            if ( ! v.isObject() )
                throw new ResultSetException("Entry in 'bindings' array must be an object {}";
            JsonObject x = v.getAsObject() ;
            Set<String> varNames = x.keys() ;
            for ( String vn : varNames )
            {
                //if ( ! vars.contains(vn) ) {}
                JsonValue vt = x.get(vn) ;
                if ( ! vt.isObject() )
View Full Code Here

Examples of org.apache.mahout.math.set.OpenIntHashSet.keys()

        itemSet.add(fMap.get(item));
      }
    }

    IntArrayList itemArr = new IntArrayList(itemSet.size());
    itemSet.keys(itemArr);
    itemArr.sort();

    OpenIntHashSet groups = new OpenIntHashSet();
    for (int j = itemArr.size() - 1; j >= 0; j--) {
      // generate group dependent shards
View Full Code Here

Examples of org.apache.myfaces.trinidadinternal.ui.collection.ContextMap.keys()

  {
    ContextMap childMap = getNamedChildMap(false);

    if (childMap != null)
    {
      return childMap.keys(context);
    }
    else
    {
      return null;
    }
View Full Code Here

Examples of org.apache.qpid.framing.FieldTable.keys()

    @Override
    public Collection<String> getHeaderNames()
    {
        FieldTable ft = getProperties().getHeaders();
        return ft.keys();
    }

    public boolean containsHeader(String name)
    {
        FieldTable ft = getProperties().getHeaders();
View Full Code Here

Examples of org.apache.slider.core.registry.docstore.PublishedConfigSet.keys()

    RegistryRetriever retriever = new RegistryRetriever(instance);
    PublishedConfigSet configurations =
        retriever.getConfigurations(!registryArgs.internal);

    for (String configName : configurations.keys()) {
      if (!registryArgs.verbose) {
        log.info("{}", configName);
      } else {
        PublishedConfiguration published =
            configurations.get(configName);
View Full Code Here

Examples of org.apache.sling.commons.json.JSONObject.keys()

                while (files.hasMoreElements()) {
                    final InputStream stream = files.nextElement().openStream();
                    final String contents = IOUtils.toString(stream);
                    IOUtils.closeQuietly(stream);
                    final JSONObject obj = new JSONObject(contents);
                    for (final Iterator<String> adaptableNames = obj.keys(); adaptableNames.hasNext();) {
                        final String adaptableName = adaptableNames.next();
                        final JSONObject adaptable = obj.getJSONObject(adaptableName);
                        for (final Iterator<String> conditions = adaptable.keys(); conditions.hasNext();) {
                            final String condition = conditions.next();
                            String[] adapters;
View Full Code Here

Examples of org.apache.tapestry.json.JSONObject.keys()

        JSONObject validations = support.getValidations();

        // Tip-toe around the fact that the order of the keys is JDK specific.

        assertEquals(CollectionFactory.newSet(validations.keys()), CollectionFactory.newSet("fred", "barney"));

        assertEquals(validations.get("fred").toString(), "[[\"maxlength\",\"Up to 10 characters\",10]]");
        assertEquals(validations.get("barney").toString(),
                     "[[\"required\",\"Who can live without Barney?\"],[\"email\",\"You know, an e-mail address.\"]]");
View Full Code Here

Examples of org.apache.tomcat.util.json.JSONObject.keys()

        subscription = jsReq.optString(Bayeux.SUBSCRIPTION_FIELD);
        data = jsReq.optString(Bayeux.DATA_FIELD);
        reconnectInterval = tb.getReconnectInterval();
        if (jsReq.has(Bayeux.EXT_FIELD)) {
            JSONObject jext = jsReq.getJSONObject(Bayeux.EXT_FIELD);
            for (Iterator<String> i = jext.keys(); i.hasNext(); ) {
                String key = i.next();
                ext.put(key, jext.get(key));
            }//for
        }//end if
       
View Full Code Here

Examples of org.apache.turbine.util.ParameterParser.keys()

        ParameterParser pp = data.getParameters();

        String button = pp.convert(BUTTON);

        // Loop through and find the button.
        for (Enumeration e = pp.keys() ; e.hasMoreElements() ;)
        {
            String key = (String) e.nextElement();
            if (key.startsWith(button))
            {
                theButton = formatString(key);
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.