Adds removeProperty(String path) and getEmptyNode()

This commit is contained in:
Simon Rigby
2011-02-12 01:44:03 +00:00
committed by EvilSeph
parent d3cebcfb5a
commit a2c09b07af
2 changed files with 40 additions and 2 deletions

View File

@@ -120,4 +120,13 @@ public class Configuration extends ConfigurationNode {
throw new ConfigurationException("Root document must be an key-value structure");
}
}
/**
* This method returns an empty ConfigurationNode for using as a
* default in methods that select a node from a node list.
* @return
*/
public static ConfigurationNode getEmptyNode() {
return new ConfigurationNode(new HashMap<String, Object>());
}
}