Examples of propertyNames()


Examples of java.util.Properties.propertyNames()

            throw new SemanticsReaderException( "module.uri must be specified" );
        }

        SimpleSemanticModule module = new SimpleSemanticModule( uri.trim( ) );

        for ( Enumeration propNames = props.propertyNames( ); propNames.hasMoreElements( ); )
        {
            String key = (String) propNames.nextElement( );

            if ( key.equals( "module.uri" ) )
            {
View Full Code Here

Examples of java.util.Properties.propertyNames()

        m_url_map = Main.class.getResource("map.png");

        if (m_settings.isDebug())
        {
            Properties props = System.getProperties();
            Enumeration enumProp = props.propertyNames();
            while (enumProp.hasMoreElements())
            {
                String key = (String)enumProp.nextElement();
                String val = System.getProperty(key);
                System.err.println(key + ": " + val);
View Full Code Here

Examples of java.util.Properties.propertyNames()

    // get the preconfigured properties

    Properties headers = new Properties();

    Properties mailProperties = getSelectedProfile().getMailProperties();
    Enumeration keys = mailProperties.propertyNames();

    String fromAddr = null, fromPersonal = null, replyAddr = null, replyPersonal = null;

    // we want to put From and Reply-To first.
    java.util.List otherProps = new ArrayList();
View Full Code Here

Examples of java.util.Properties.propertyNames()

            strBuilder.append("\n" + str);
        }
        if (details >= 3)
        {
            Properties prop = System.getProperties();
            Enumeration keyEnum = prop.propertyNames();
            while (keyEnum.hasMoreElements())
            {
                String key = (String)keyEnum.nextElement();
                strBuilder.append("\n");
                strBuilder.append(key);
View Full Code Here

Examples of java.util.Properties.propertyNames()

    }


    public void init(Properties p) throws Exception {
        Properties properties = new Properties();
        for (Object key : Collections.list(properties.propertyNames())) {
            if (!(key instanceof String)) continue;

            String property = (String) key;
            String value = (String) p.get(property);
View Full Code Here

Examples of java.util.Properties.propertyNames()

            }
            return;
        }

        // Perform variable substitution on specified properties.
        for (Enumeration e = props.propertyNames(); e.hasMoreElements();) {
            String name = (String) e.nextElement();
            String value = System.getProperty(name, props.getProperty(name));
            System.setProperty(name, substVars(value, name, null, null));
        }
    }
View Full Code Here

Examples of java.util.Properties.propertyNames()

            }

            // Put each expected connection attribute in a HashSet.
            HashSet expectedAttrs = new HashSet();
            Properties ca = config.getConnectionAttributes();
            Enumeration e = ca.propertyNames();
            while (e.hasMoreElements()) {
                String key = (String) e.nextElement();
                expectedAttrs.add(key + '=' + ca.getProperty(key));
            }
View Full Code Here

Examples of java.util.Properties.propertyNames()

                }


                namedProtocols = new Hashtable();
                String prefix = PROTOCOL_PROPERTY + ".";
                for (Enumeration e = p.propertyNames(); e.hasMoreElements(); )
                {
                        String key = (String)e.nextElement();
                        if (key.startsWith(prefix)) {
                                String name = key.substring(prefix.length());
                                installProtocol(name.toUpperCase(Locale.ENGLISH), p.getProperty(key));
View Full Code Here

Examples of java.util.Properties.propertyNames()

        // Output properties
        Element propsElement = doc.createElement(PROPERTIES);
        rootElement.appendChild(propsElement);
        Properties props = suite.getProperties();
        if (props != null) {
            Enumeration e = props.propertyNames();
            while (e.hasMoreElements()) {
                String name = (String) e.nextElement();
                Element propElement = doc.createElement(PROPERTY);
                propElement.setAttribute(ATTR_NAME, name);
                propElement.setAttribute(ATTR_VALUE, props.getProperty(name));
View Full Code Here

Examples of java.util.Properties.propertyNames()

        else
        {
            // merge any special properties from testSpecialProps
            if ( !srvProps.isEmpty() )
            {
                for (Enumeration e = srvProps.propertyNames(); e.hasMoreElements();)
                {
                    String key = (String)e.nextElement();
                    String value = srvProps.getProperty(key);
                    if (key.equals("derby.debug.true")) // Add to existing prop
                    {
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.