Added createSection(String path, Map<String, object> map)

This commit is contained in:
Feildmaster
2011-11-01 22:04:48 -05:00
committed by Nathan Adams
parent fa9a2e158b
commit 95b487d274
4 changed files with 39 additions and 1 deletions

View File

@@ -164,6 +164,17 @@ public interface ConfigurationSection {
* @return Newly created section
*/
public ConfigurationSection createSection(String path);
/**
* Creates a {@link ConfigurationSection} at the specified path, with specified values.
* <p>
* Any value that was previously set at this path will be overwritten. If the
* previous value was itself a {@link ConfigurationSection}, it will be orphaned.
*
* @param path Path to create the section at.
* @return Newly created section
*/
public ConfigurationSection createSection(String path, Map<String, Object> map);
// Primitives
/**