Examples of keys()


Examples of org.osgi.service.prefs.Preferences.keys()

                        wktText.setText(wkt);
                        Preferences node = findNode(matcher.group(1));
                        if( node!=null ){
                            Preferences kn = node.node(ALIASES_ID);
                            try {
                                String[] keywords=kn.keys();
                                if( keywords.length>0 ){
                                    StringBuffer buffer=new StringBuffer();
                                    for( String string : keywords ) {
                                        buffer.append(", "); //$NON-NLS-1$
                                        buffer.append(string);
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.util.ReportProperties.keys()

        // we don't test whether our demo models are serializable :)
        report.setDataFactory(new TableDataFactory
            ("default", new DefaultTableModel()));
        // clear all report properties, which may cause trouble ...
        final ReportProperties p = report.getProperties();
        final Iterator keys = p.keys();
        while (keys.hasNext())
        {
          String key = (String) keys.next();
          if (p.get(key) instanceof Serializable == false)
          {
View Full Code Here

Examples of org.pentaho.reporting.libraries.base.util.LinkedMap.keys()

      staticDataFactory.setQuery(queryName, className + '#' + methodName);
    }
    else
    {
      String query = className + '#' + methodName + '(';
      final Object[] objects = map.keys();
      for (int i = 0; i < objects.length; i++)
      {
        if (i != 0)
        {
          query += ",";
View Full Code Here

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

      // previous deltas prior to submission
      // we don't care about the property names, just the values, which
      // we'll process in turn
      JSONObject obj = new JSONObject(jsonData);
      @SuppressWarnings("unchecked")
      Iterator<String> keys = obj.keys();
      while (keys.hasNext()) {
        final String key = keys.next();
        // data comes in: [row, col, oldValue, newValue]
        JSONArray update = obj.getJSONArray(key);
        final int row = update.getInt(0);
View Full Code Here

Examples of org.python.core.PyDictionary.keys()

            throws ScriptException {
   
        PyDictionary outputs = (PyDictionary) process(engine).__getattr__("outputs");
        Map<String,Parameter<?>> map = new TreeMap<String, Parameter<?>>();

        for (String name : (List<String>)outputs.keys()) {
          PyTuple output = (PyTuple) outputs.get(name);

            Object type = output.__getitem__(0);
            Object desc = output.__getitem__(1);
View Full Code Here

Examples of org.python.core.PyStringMap.keys()

                }*/

            }
            if (mLocals instanceof PyStringMap) {
                PyStringMap locals = (PyStringMap) mLocals;
                PyList keys = locals.keys();
                Iterator<?> localIt = keys.iterator();
                while (localIt.hasNext()) {
                    Object oMap = localIt.next();
                    if (oMap instanceof String) {
                        String localKey = (String) oMap;
View Full Code Here

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

        Map.Entry entry = (Map.Entry) iterator.next();

        if (entry.getValue() != null) {
          JSONObject object = (JSONObject) entry.getValue();

          for (Iterator keys = object.keys(); keys.hasNext(); ) {
            String key = (String) keys.next();

            merged.put(key, object.get(key));
          }
        }
View Full Code Here

Examples of org.rosuda.JRI.RList.keys()

          System.out.println(e.nextElement());
        }
      }
      // for compatibility with Rserve we allow casting of vectors to lists
      RList vl = x.asList();
      String[] k = vl.keys();
      if (k!=null) {
        System.out.println("and once again from the list:");
        int i=0; while (i<k.length) System.out.println(k[i++]);
      }     
View Full Code Here

Examples of org.rosuda.REngine.RList.keys()

  private static boolean isDataFrame(REXP result, SimpleEvaluationObject obj) {
    TableDisplay table;
    try {
      RList list = result.asList().at(0).asList();
      int cols = list.size();
      String[] names = list.keys();
      if (null == names) {
        return false;
      }
      String[][] array = new String[cols][];
      List<List> values = new ArrayList<>();
View Full Code Here

Examples of org.w3c.util.ArrayDictionary.keys()

     * @return The number of bytes needed to pickle that value.
     */

    public final int getPickleLength(Object value) {
  ArrayDictionary a = (ArrayDictionary) value;
  Enumeration     e = a.keys();
  int             s = 4;
  while ( e.hasMoreElements() ) {
      String key = (String) e.nextElement();
      s += getPickleLength(key);
      s += getPickleLength((String) a.get(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.