Examples of propertyNames()


Examples of java.util.Properties.propertyNames()

        public Map<String, Integer> getStats() {
            if (stats == null) {
                Properties p = asProperties("stats");
                stats = new HashMap<String, Integer>();
                for (Enumeration<?> e = p.propertyNames(); e.hasMoreElements();) {
                    String key = (String) e.nextElement();
                    stats.put(key, valueOf(key, p));
                }
            }
            return stats;
View Full Code Here

Examples of org.apache.felix.utils.properties.Properties.propertyNames()

            is.close();
        } catch (Exception e1) {
            // Ignore
        }

        for (Enumeration<?> e = props.propertyNames(); e.hasMoreElements();) {
            String name = (String) e.nextElement();
      if (name.startsWith(OVERRIDE_PREFIX)) {
        String overrideName = name.substring(OVERRIDE_PREFIX.length());
        String value = props.getProperty(name);
        System.setProperty(overrideName, substVars(value, name, null, props));
View Full Code Here

Examples of org.apache.ivy.util.PropertiesFile.propertyNames()

                File file = new File(fileName);
                if (!file.exists()) {
                    throw new SAXException(fileName + " doesn't exists !");
                }
                PropertiesFile props = new PropertiesFile(file, "project properties");
                Enumeration<?> enumeration = props.propertyNames();
                while (enumeration.hasMoreElements()) {
                    String key = (String) enumeration.nextElement();
                    String value = getSettings().substitute(props.getProperty(key));

                    // put this variable on the context
View Full Code Here

Examples of org.apache.ode.bpe.deployment.bpel.BPELAttributes.propertyNames()

        WSDLOperationKey opKey = (WSDLOperationKey) properties.get(ExternalServiceAction.OPERATION_KEY);
        extProps.setProperty(JbiInvokeAction.INTERFACE_NAMESPACE, opKey.getNameSpace());
        extProps.setProperty(JbiInvokeAction.INTERFACE_LOCALNAME, opKey.getPortType());
        extProps.setProperty(JbiInvokeAction.OPERATION_NAMESPACE, opKey.getNameSpace());
        extProps.setProperty(JbiInvokeAction.OPERATION_LOCALNAME, opKey.getOperationName());
        for (Enumeration en = attrs.propertyNames(); en.hasMoreElements();) {
            String qn = (String) en.nextElement();
            String uri = attrs.getURI(qn);
            String val = attrs.getProperty(qn);
            if (SM_NS.equals(uri)) {
                if (qn.indexOf(':') > 0) {
View Full Code Here

Examples of org.apache.tools.ant.gui.xml.DOMAttributes.propertyNames()

        // performance concern (which I doubt it will) it can be optimized
        // later.
       
        DOMAttributes old = (DOMAttributes) getNamedValues();
       
        Enumeration en = old.propertyNames();
        while(en.hasMoreElements()) {
            String name = (String) en.nextElement();
            removeAttribute(name);
        }
       
View Full Code Here

Examples of org.apache.tools.ant.gui.xml.dtd.DOMAttributes.propertyNames()

        // performance concern (which I doubt it will) it can be optimized
        // later.

        DOMAttributes old = (DOMAttributes) getNamedValues();

        Enumeration en = old.propertyNames();
        while(en.hasMoreElements()) {
            String name = (String) en.nextElement();
            removeAttribute(name);
        }
View Full Code Here

Examples of org.eclipse.core.runtime.Preferences.propertyNames()

   */
   private void updatePreferences(IEclipsePreferences preferences) {
    
     Preferences oldPreferences = loadPreferences();
     if (oldPreferences != null) {
       String[] propertyNames = oldPreferences.propertyNames();
      for (int i = 0; i < propertyNames.length; i++){
        String propertyName = propertyNames[i];
          String propertyValue = oldPreferences.getString(propertyName);
          if (!"".equals(propertyValue)) { //$NON-NLS-1$
            preferences.put(propertyName, propertyValue);
View Full Code Here

Examples of org.jetbrains.osgi.jps.util.OrderedProperties.propertyNames()

    Enumeration<Object> keys = props.keys();
    assertThat((String)keys.nextElement(), equalTo("Foo"));
    assertThat((String)keys.nextElement(), equalTo("Bar"));
    assertThat((String)keys.nextElement(), equalTo("Baz"));

    Enumeration<?> propertyNames = props.propertyNames();
    assertThat((String)propertyNames.nextElement(), equalTo("Foo"));
    assertThat((String)propertyNames.nextElement(), equalTo("Bar"));
    assertThat((String)propertyNames.nextElement(), equalTo("Baz"));

    Iterator<String> iterator = props.stringPropertyNames().iterator();
View Full Code Here

Examples of org.joda.beans.Bean.propertyNames()

        // storing target data
        ComputationTarget computationTarget = _computationTargetResolver.resolve(targetSpec, VersionCorrection.LATEST);
        Object targetValue = computationTarget.getValue();
        if (targetValue instanceof Bean) {
          Bean bean = (Bean) targetValue;
          for (String propertyName : bean.propertyNames()) {
            Property<Object> property = bean.property(propertyName);
            final long targetPropertyId = nextId(RSK_SEQUENCE_NAME);
            targetProperties.add(getTargetPropertyArgs(targetPropertyId, computationTargetId, propertyName, property.get() == null ? "NULL" : property.get().toString()));
          }
        }
View Full Code Here

Examples of org.nemesis.forum.Forum.propertyNames()

        fb.setDescription(forum.getDescription());
        fb.setId(forum.getID());
        fb.setModerationType(forum.getModerationType());
        fb.setName(forum.getName());
        String key=null;
        for(Enumeration e= forum.propertyNames();e.hasMoreElements();){
          key=(String)e.nextElement();
          fb.setPropertie(key, forum.getProperty(key));
        }

        PropertyUtils.setProperty(form, "forumBean", fb);
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.