java.lang.Cloneable, Configuration, EventSource, HierarchicalConfiguration<ImmutableNode>, ImmutableConfiguration, ImmutableHierarchicalConfiguration, SynchronizerSupport, InMemoryNodeModelSupport, NodeKeyResolver<ImmutableNode>, NodeModelSupport<ImmutableNode>JSONConfiguration, YAMLConfigurationpublic class AbstractYAMLBasedConfiguration extends BaseHierarchicalConfiguration
A base class for configuration implementations based on YAML structures.
This base class offers functionality related to YAML-like data structures
based on maps. Such a map has strings as keys and arbitrary objects as
values. The class offers methods to transform such a map into a hierarchy
of ImmutableNode objects and vice versa.
BaseHierarchicalConfiguration.BuilderVisitor| Modifier | Constructor | Description |
|---|---|---|
protected |
AbstractYAMLBasedConfiguration() |
Creates a new instance of
AbstractYAMLBasedConfiguration. |
protected |
AbstractYAMLBasedConfiguration(HierarchicalConfiguration<ImmutableNode> c) |
Creates a new instance of
AbstractYAMLBasedConfiguration as a
copy of the specified configuration. |
| Modifier and Type | Method | Description |
|---|---|---|
protected java.util.Map<java.lang.String,java.lang.Object> |
constructMap(ImmutableNode node) |
Constructs a YAML map, i.e.
|
protected void |
load(java.util.Map<java.lang.String,java.lang.Object> map) |
Loads this configuration from the content of the specified map.
|
addErrorLogListener, addProperty, append, beginRead, beginWrite, clear, clearProperty, cloneInterpolator, containsKey, copy, endRead, endWrite, get, get, getArray, getArray, getBigDecimal, getBigDecimal, getBigInteger, getBigInteger, getBoolean, getBoolean, getBoolean, getByte, getByte, getByte, getCollection, getCollection, getConfigurationDecoder, getConversionHandler, getDouble, getDouble, getDouble, getEncodedString, getEncodedString, getFloat, getFloat, getFloat, getInt, getInt, getInteger, getInterpolator, getKeys, getKeys, getList, getList, getList, getList, getListDelimiterHandler, getLogger, getLong, getLong, getLong, getProperties, getProperties, getProperty, getShort, getShort, getShort, getString, getString, getStringArray, getSynchronizer, immutableSubset, initLogger, installInterpolator, interpolate, interpolate, isEmpty, isScalarValue, isThrowExceptionOnMissing, lock, setConfigurationDecoder, setConversionHandler, setDefaultLookups, setInterpolator, setListDelimiterHandler, setLogger, setParentInterpolator, setPrefixLookups, setProperty, setSynchronizer, setThrowExceptionOnMissing, size, unlockaddNodes, addNodesInternal, addPropertyDirect, addPropertyInternal, clearInternal, clearPropertyDirect, clearTree, clearTreeInternal, clone, containsKeyInternal, fetchNodeList, getExpressionEngine, getKeysInternal, getKeysInternal, getMaxIndex, getMaxIndexInternal, getModel, getPropertyInternal, getRootElementName, getRootElementNameInternal, isEmptyInternal, nodeDefined, nodeKey, resolveAddKey, resolveKey, resolveNodeKey, resolveUpdateKey, setExpressionEngine, setPropertyInternal, sizeInternal, toStringaddEventListener, clearErrorListeners, clearEventListeners, copyEventListeners, createErrorEvent, createEvent, fireError, fireEvent, getEventListenerRegistrations, getEventListeners, isDetailEvents, removeEventListener, setDetailEventschildConfigurationsAt, childConfigurationsAt, cloneNodeModel, configurationAt, configurationAt, configurationsAt, configurationsAt, createSubConfigurationForTrackedNode, getNodeModel, getSubConfigurationNodeSelector, getSubConfigurationParentModel, immutableChildConfigurationsAt, immutableConfigurationAt, immutableConfigurationAt, immutableConfigurationsAt, initSubConfigurationForThisParent, interpolatedConfiguration, subnodeConfigurationChanged, subsetaddProperty, clear, clearProperty, getInterpolator, installInterpolator, setInterpolator, setPropertycontainsKey, get, get, getArray, getArray, getBigDecimal, getBigDecimal, getBigInteger, getBigInteger, getBoolean, getBoolean, getBoolean, getByte, getByte, getByte, getCollection, getCollection, getDouble, getDouble, getDouble, getEncodedString, getEncodedString, getFloat, getFloat, getFloat, getInt, getInt, getInteger, getKeys, getKeys, getList, getList, getList, getList, getLong, getLong, getLong, getProperties, getProperty, getShort, getShort, getShort, getString, getString, getStringArray, immutableSubset, isEmpty, sizeequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetSynchronizer, lock, setSynchronizer, unlockprotected AbstractYAMLBasedConfiguration()
AbstractYAMLBasedConfiguration.protected AbstractYAMLBasedConfiguration(HierarchicalConfiguration<ImmutableNode> c)
AbstractYAMLBasedConfiguration as a
copy of the specified configuration.c - the configuration to be copiedprotected void load(java.util.Map<java.lang.String,java.lang.Object> map)
ImmutableNode
objects.map - the map to be processedprotected java.util.Map<java.lang.String,java.lang.Object> constructMap(ImmutableNode node)
node - The configuration node to create a map from.Copyright © 2001–2018. All rights reserved.