Package org.clapper.util.misc

Examples of org.clapper.util.misc.PropertiesMap$KeySetIterator


    {
        super (name, id);

        // Escape any embedded backslashes in variable values.

        Map<String,String> propMap = new PropertiesMap (System.getProperties());
        super.addVariables (escapeEmbeddedBackslashes (propMap));
    }
View Full Code Here


     */
    public MapVariableDereferencer (Properties properties)
    {
        // Use a type-safe wrapper

        map = new PropertiesMap (properties);
    }
View Full Code Here

        }
    }

    private void runTest()
    {
        PropertiesMap map = new PropertiesMap (System.getProperties());
        XStringBuffer buf = new XStringBuffer();

        System.out.println ("---------------------------------------" +
                            "---------------------------------------");
        System.out.println ("*** Looping over properties by key set.");
        System.out.println ("---------------------------------------" +
                            "---------------------------------------");
        for (String key : map.keySet())
        {
            buf.clear();
            buf.append (map.get (key));
            buf.encodeMetacharacters();
            System.out.println (key + "=" + buf.toString());
        }

        System.out.println ("---------------------------------------" +
                            "---------------------------------------");
        System.out.println ("*** Looping over properties by entry set.");
        System.out.println ("---------------------------------------" +
                            "---------------------------------------");
        for (Map.Entry<String, String> entry : map.entrySet())
        {
            buf.clear();
            buf.append (entry.getValue());
            buf.encodeMetacharacters();
            System.out.println (entry.getKey() + "=" + buf.toString());
View Full Code Here

TOP

Related Classes of org.clapper.util.misc.PropertiesMap$KeySetIterator

Copyright © 2018 www.massapicom. 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.