Configuration
object containing all keys that start with the specified prefix. This implementation will return a HierarchicalConfiguration
object so that the structure of the keys will be saved. The nodes selected by the prefix (it is possible that multiple nodes are selected) are mapped to the root node of the returned configuration, i.e. their children and attributes will become children and attributes of the new root node. However a value of the root node is only set if exactly one of the selected nodes contain a value (if multiple nodes have a value, there is simply no way to decide how these values are merged together). Note that the returned Configuration
object is not connected to its source configuration: updates on the source configuration are not reflected in the subset and vice versa.
@param prefix the prefix of the keys for the subset
@return a new configuration object representing the selected subset
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|