Example usage for org.apache.commons.configuration SubnodeConfiguration getProperty

List of usage examples for org.apache.commons.configuration SubnodeConfiguration getProperty

Introduction

In this page you can find the example usage for org.apache.commons.configuration SubnodeConfiguration getProperty.

Prototype

public Object getProperty(String key) 

Source Link

Document

Fetches the specified property.

Usage

From source file:org.porquebox.core.PorqueBoxMetaData.java

public PorqueBoxMetaData(HierarchicalINIConfiguration data) {
        for (String sectionName : data.getSections()) {
            SubnodeConfiguration section = data.getSection(sectionName);
            Map<String, String> sectionData = new HashMap<String, String>();
            for (Iterator<String> keyIter = section.getKeys(); keyIter.hasNext();) {
                String key = keyIter.next();
                String value = (String) section.getProperty(key);
                sectionData.put(key, value);
            }/*from   ww w  .  j a v  a2  s  .c  o  m*/
            this.data.put(sectionName, (Object) sectionData);
        }
    }