/** * Appends the name of a property to this key. If necessary, a property * delimiter will be added. Property delimiters in the given string will not * be escaped. * * @param property the name of the property to be added * @return a reference to this object */ public DefaultConfigurationKey append(String property) { return append(property, false); }
/** * Appends this path to the given <code>ConfigurationKey</code>. This * implementation will create a unique key that corresponds to the path * represented. The node names and the indices along the path are appended * to the given configuration key. * * @param key the key (must not be <b>null</b>) * @throws IllegalArgumentException if the key is <b>null</b> */ public void pathToKey(DefaultConfigurationKey key) { if (key == null) { throw new IllegalArgumentException("Key must not be null!"); } for (int i = 0; i < size() - 1; i++) { key.append(getNodeName(i)); key.appendIndex(getNodeIndex(i)); } }
key.append(node.getName(), true);
key.append(node.getName(), true);
/** * Appends the name of a property to this key. If necessary, a property * delimiter will be added. Property delimiters in the given string will not * be escaped. * * @param property the name of the property to be added * @return a reference to this object */ public DefaultConfigurationKey append(String property) { return append(property, false); }