List of usage examples for org.apache.commons.configuration SubnodeConfiguration getProperty
public Object getProperty(String key)
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); } }