Package java.util

Examples of java.util.Dictionary.keys()


     * is selected.
     * @param converter A converter that contains the properties for the detail pane
     */
    private void updateDetailPane(Converter converter) {
        Dictionary converterProperties = converter.getProperties();
        Enumeration converterPropertiesKeys = converterProperties.keys();

        detailPane.setText("");

        while (converterPropertiesKeys.hasMoreElements()) {
            Object key = converterPropertiesKeys.nextElement();
View Full Code Here


        MetaTypeService mts = (MetaTypeService)ctxt.locateService("MTS");
        provider = mts.getMetaTypeInformation(ctxt.getBundleContext().getBundle());
       
        Dictionary properties = ctxt.getProperties();
       
        Enumeration propertiesKeys = properties.keys();
   
    while (propertiesKeys.hasMoreElements()) {
      String propertiesKey = (String) propertiesKeys.nextElement();
     
      Object propertiesValue = properties.get(propertiesKey);
View Full Code Here

      String namespace = globalPrefConf.getPid();
     
      Dictionary globalPrefDict = globalPrefConf.getProperties();
     
      //the keys of each dictionary are the ids of global preference OCDs.
      Enumeration ids = globalPrefDict.keys();
      while (ids.hasMoreElements()) {
        String id = (String) ids.nextElement();
        String value = (String) globalPrefDict.get(id);
     
        String keyForConfiguration = namespace + "." + id;
View Full Code Here

        return detailPane;
    }

    private void updateDetailPane(Converter converter) {
        Dictionary converterProperties = converter.getProperties();
        Enumeration converterPropertiesKeys = converterProperties.keys();

        detailPane.setText("");

        while (converterPropertiesKeys.hasMoreElements()) {
            Object key = converterPropertiesKeys.nextElement();
View Full Code Here

        MetaTypeService mts = (MetaTypeService)ctxt.locateService("MTS");
        provider = mts.getMetaTypeInformation(ctxt.getBundleContext().getBundle());      
       
  Dictionary properties = ctxt.getProperties();
       
        Enumeration propertiesKeys = properties.keys();
   
    while (propertiesKeys.hasMoreElements()) {
      String propertiesKey = (String) propertiesKeys.nextElement();
     
      Object propertiesValue = properties.get(propertiesKey);
View Full Code Here

        event.addProperty("id", e.getID());
        event.addProperty("time", format.format(new Date(e.getTime())));
        event.addProperty("type", toAuditEventType(e.getType()));
        JsonObject eventProperties = new JsonObject();
        Dictionary p = e.getProperties();
        Enumeration keyEnumeration = p.keys();
        while (keyEnumeration.hasMoreElements()) {
            Object key = keyEnumeration.nextElement();
            eventProperties.addProperty(key.toString(), p.get(key).toString());
        }
        event.add("properties", eventProperties);
View Full Code Here

        String title = Util.getBundleName(bundle);
        System.out.println("\n" + title);
        System.out.println(Util.getUnderlineString(title));
        if (indent == 0) {
            Dictionary dict = bundle.getHeaders();
            Enumeration keys = dict.keys();
            while (keys.hasMoreElements()) {
                Object k = keys.nextElement();
                Object v = dict.get(k);
                System.out.println(k + " = " + Util.getValueString(v));
            }
View Full Code Here

            while ( current != null ) {
                Dictionary namespaces = current.getNamespaces();

                if ( namespaces != null ) {
                    Enumeration keys = namespaces.keys();
                   
                    while ( keys.hasMoreElements() ) {
                       
                        String prefix = (String)keys.nextElement();
                        if ( !nsMap.containsKey(prefix) ) {
View Full Code Here

            throw new MarshallException("Could not put data" + e.getMessage(), e);
        }
        Object key = null;

        try {
            Enumeration en = ht.keys();
            while (en.hasMoreElements()) {
                key = en.nextElement();
                String keyString = key.toString()// only support String keys

                Object json = _ser.marshall(state, mapdata, ht.get(key), keyString);
View Full Code Here

    protected int getWidthOfWidestLabel() {
        Dictionary table = slider.getLabelTable();
        if (table == null) {
            return 0;
        }
        Enumeration keys = table.keys();
        int result = ((Component)table.get(keys.nextElement())).getWidth();
        while (keys.hasMoreElements()) {
            Component label = ((Component)table.get(keys.nextElement()));
            if (label.getWidth() > result) {
                result = label.getWidth();
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.