Examples of keys()


Examples of net.sf.agentopia.util.Config.keys()

        final Config conf = getLocalConfig();
        String hostName;
        HostId hostId;

        // (1) Get all the _HOSTS_ from the config file.
        for (String hostKey : conf.keys("host")) {
            if (getExitCount() >= this.maximumExitCount) {
                break;
            }
            hostName = conf.get(hostKey, null);
            if (null != hostName) {
View Full Code Here

Examples of net.sf.json.JSONObject.keys()

    private void initEvent(AjaxEvent event, HttpServletRequest request) {
        String paramsString = request.getParameter(this.jsonParamsParameter);
        if (paramsString != null) {
            Map<String, String> parameters = new HashMap<String, String>();
            JSONObject json = JSONObject.fromString(paramsString);
            Iterator keys = json.keys();
            while (keys.hasNext()) {
                String key = keys.next().toString();
                parameters.put(key, json.opt(key).toString());
            }
            event.setParameters(parameters);
View Full Code Here

Examples of net.tomp2p.message.KeyCollection.keys()

        final boolean isCollection = keys != null && returnNr == null;
              
        if (isCollection) {
          if(sendBackResults) {
            result1 = new HashMap<Number640, Data>(keys.size());
            for (Number640 key : keys.keys()) {
                    Pair<Data,Enum<?>> data = storageLayer.remove(key, publicKey, sendBackResults);
                    notifyRemoveResponsibility(key.locationKey(), data.element1());
                    if(data.element0() != null) {
                      result1.put(key, data.element0());
                    }
View Full Code Here

Examples of net.yacy.cora.document.JSONObject.keys()

            }
            }
            */
            final JSONObject idx = json.getJSONObject("idx");
            // iterate over all references
            final Iterator<String> termIterator = idx.keys();
            String term;
            while (termIterator.hasNext()) {
                term = termIterator.next();
                final JSONArray references = idx.getJSONArray(term);
                // iterate until we get an exception or null
View Full Code Here

Examples of net.yacy.kelondro.index.HandleSet.keys()

      if (!this.domainStacks.isEmpty() && System.currentTimeMillis() - this.lastDomainStackFill < 120000L) return;
      this.domainStacks.clear();
      this.top.clear();
      this.lastDomainStackFill = System.currentTimeMillis();
      final HandleSet handles = this.urlFileIndex.keysFromBuffer(objectIndexBufferSize / 2);
        final CloneableIterator<byte[]> i = handles.keys(true, null);
        byte[] handle;
        String host;
        Request request;
      while (i.hasNext()) {
          handle = i.next();
View Full Code Here

Examples of oracle.toplink.essentials.internal.sessions.AbstractRecord.keys()

     */
   
    public void writeFromAttributeIntoRow(Object attribute, AbstractRecord row, AbstractSession session)
    {
          AbstractRecord targetRow = buildRowFromAggregate(null, attribute, session);
          for (Enumeration stream = targetRow.keys(); stream.hasMoreElements(); ) {
                  DatabaseField field = (DatabaseField) stream.nextElement();
                  Object value = targetRow.get(field);
                  row.put(field, value);
          }
    }
View Full Code Here

Examples of org.amplafi.json.JSONObject.keys()

            a = new JSONArray("[2147483647, 2147483648, 9223372036854775807, 9223372036854775808]");
            System.out.println(a.toString(4));

            System.out.println("\nKeys: ");
            it = j.keys().iterator();
            while (it.hasNext()) {
                s = (String)it.next();
                System.out.println(s + ": " + j.getString(s));
            }
View Full Code Here

Examples of org.apache.cocoon.components.store.Store.keys()

            int size = 0;
            int empty = 0;
            atts.addAttribute(namespace, "name", "name", "CDATA", "cached");
            ch.startElement(namespace, "value", "value", atts);
            // For each element in Store
            Enumeration e = store.keys();
            atts.clear();
            while( e.hasMoreElements() ) {
                size++;
                Object key  = e.nextElement();
                Object val  = store.get( key );
View Full Code Here

Examples of org.apache.commons.collections.ExtendedProperties.keys()

        {
              throw new VelocityException("Error reading properties from '"
                + fileName + "'", e);
        }
       
        Enumeration en = props.keys();
        while (en.hasMoreElements())
        {
            String key = en.nextElement().toString();
            setProperty(key, props.get(key));
        }
View Full Code Here

Examples of org.apache.excalibur.store.Store.keys()

            && type != null
            && type.equals(PortalManager.BUILDTYPE_VALUE_ID) == false) {
            String storePrefix = (String)configuration.get(PortalConstants.CONF_PROFILE_CACHE);
            if (storePrefix != null) {
                Store store = this.getProfileStore();
                Enumeration keys = store.keys();
                String   currentKey;
                String  deleteGlobal = null;
                String  deleteRole = null;
                String  deleteUser = null;
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.