Java 类org.apache.commons.configuration2.BaseHierarchicalConfiguration 实例源码

项目:sponge    文件:CommonsConfiguration.java   
protected CommonsConfiguration[] createConfigurations(List<HierarchicalConfiguration<ImmutableNode>> subs) {
    CommonsConfiguration[] result = new CommonsConfiguration[subs.size()];

    for (int i = 0; i < result.length; i++) {
        result[i] = new CommonsConfiguration((BaseHierarchicalConfiguration) subs.get(i));
    }

    return result;
}
项目:sponge    文件:CommonsConfiguration.java   
public CommonsConfiguration(BaseHierarchicalConfiguration config) {
    this.config = config;
}
项目:sponge    文件:CommonsConfiguration.java   
public BaseHierarchicalConfiguration getInternalConfiguration() {
    return config;
}
项目:sponge    文件:CommonsConfiguration.java   
@Override
public CommonsConfiguration getChildConfiguration(String child) {
    return new CommonsConfiguration(
            hasChildConfiguration(child) ? (BaseHierarchicalConfiguration) config.configurationAt(child) : new CombinedConfiguration());
}