/** * Creates a new node. This task is delegated to the parent. * * @param name the node's name * @return the new node */ @Override protected Node createNode(String name) { return getParent().createNode(name); }
/** * Creates a new node. This task is delegated to the parent. * * @param name the node's name * @return the new node */ @Override protected Node createNode(String name) { return getParent().createNode(name); }
/** * 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; }
/** * Performs interpolation for the specified value. This implementation will * interpolate against the current subnode configuration's parent. If sub * classes need a different interpolation mechanism, they should override * this method. * * @param value the value that is to be interpolated * @return the interpolated value */ protected Object interpolate(Object value) { return PropertyConverter.interpolate(value, getConfiguration() .getParent()); }
/** * Performs interpolation for the specified value. This implementation will * interpolate against the current subnode configuration's parent. If sub * classes need a different interpolation mechanism, they should override * this method. * * @param value the value that is to be interpolated * @return the interpolated value */ protected Object interpolate(Object value) { return PropertyConverter.interpolate(value, getConfiguration() .getParent()); }
/** * Creates a ConfigurationInterpolator with a chain to the parent's * interpolator. * * @return the new interpolator */ @Override protected ConfigurationInterpolator createInterpolator() { ConfigurationInterpolator interpolator = super.createInterpolator(); interpolator.setParentInterpolator(getParent().getInterpolator()); return interpolator; } }
/** * Creates a ConfigurationInterpolator with a chain to the parent's * interpolator. * * @return the new interpolator */ @Override protected ConfigurationInterpolator createInterpolator() { ConfigurationInterpolator interpolator = super.createInterpolator(); interpolator.setParentInterpolator(getParent().getInterpolator()); return interpolator; } }
for (ConfigurationNode pathNode : lstPathToRoot) key = getParent().getExpressionEngine().nodeKey(pathNode, key);
for (ConfigurationNode pathNode : lstPathToRoot) key = getParent().getExpressionEngine().nodeKey(pathNode, key);
List<ConfigurationNode> nodes = getParent().fetchNodeList(getSubnodeKey()); if (nodes.size() != 1)
List<ConfigurationNode> nodes = getParent().fetchNodeList(getSubnodeKey()); if (nodes.size() != 1)