/** * Creates a subnode configuration for the specified node. This method is * called by {@code configurationAt()} and * {@code configurationsAt()}. * * @param node the node, for which a subnode configuration is to be created * @return the configuration for the given node * @since 1.3 */ protected SubnodeConfiguration createSubnodeConfiguration(ConfigurationNode node) { SubnodeConfiguration result = new SubnodeConfiguration(this, node); registerSubnodeConfiguration(result); return result; }
/** * Creates a subnode configuration for the specified node. This method is * called by {@code configurationAt()} and * {@code configurationsAt()}. * * @param node the node, for which a subnode configuration is to be created * @return the configuration for the given node * @since 1.3 */ protected SubnodeConfiguration createSubnodeConfiguration(ConfigurationNode node) { SubnodeConfiguration result = new SubnodeConfiguration(this, node); registerSubnodeConfiguration(result); return result; }
/** * Returns a hierarchical configuration object for the given sub node. * This implementation will ensure that the returned * {@code SubnodeConfiguration} object will have the same parent than * this object. * * @param node the sub node, for which the configuration is to be created * @return a hierarchical configuration for this sub node */ @Override protected SubnodeConfiguration createSubnodeConfiguration(ConfigurationNode node) { SubnodeConfiguration result = new SubnodeConfiguration(getParent(), node); getParent().registerSubnodeConfiguration(result); return result; }
/** * Returns a hierarchical configuration object for the given sub node. * This implementation will ensure that the returned * {@code SubnodeConfiguration} object will have the same parent than * this object. * * @param node the sub node, for which the configuration is to be created * @return a hierarchical configuration for this sub node */ @Override protected SubnodeConfiguration createSubnodeConfiguration(ConfigurationNode node) { SubnodeConfiguration result = new SubnodeConfiguration(getParent(), node); getParent().registerSubnodeConfiguration(result); return result; }
return new SubnodeConfiguration(this, getSectionNode(name));
return new SubnodeConfiguration(this, getSectionNode(name));