java.lang.Cloneable, Configuration, EventSource, FileBasedConfiguration, HierarchicalConfiguration<ImmutableNode>, ImmutableConfiguration, ImmutableHierarchicalConfiguration, FileBased, SynchronizerSupport, InMemoryNodeModelSupport, NodeKeyResolver<ImmutableNode>, NodeModelSupport<ImmutableNode>public class PropertyListConfiguration extends BaseHierarchicalConfiguration implements FileBasedConfiguration
References:
Example:
{
foo = "bar";
array = ( value1, value2, value3 );
data = <4f3e0145ab>;
date = <*D2007-05-05 20:05:00 +0100>;
nested =
{
key1 = value1;
key2 = value;
nested =
{
foo = bar
}
}
}
BaseHierarchicalConfiguration.BuilderVisitor| Constructor | Description |
|---|---|
PropertyListConfiguration() |
Creates an empty PropertyListConfiguration object which can be
used to synthesize a new plist file by adding values and
then saving().
|
PropertyListConfiguration(HierarchicalConfiguration<ImmutableNode> c) |
Creates a new instance of
PropertyListConfiguration and
copies the content of the specified configuration into this object. |
| Modifier and Type | Method | Description |
|---|---|---|
protected void |
addPropertyInternal(java.lang.String key,
java.lang.Object value) |
Adds the property with the specified key.
|
void |
read(java.io.Reader in) |
Reads the content of this object from the given reader.
|
protected void |
setPropertyInternal(java.lang.String key,
java.lang.Object value) |
Sets the value of the specified property.
|
void |
write(java.io.Writer out) |
Writes the content of this object to the given writer.
|
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, clearInternal, clearPropertyDirect, clearTree, clearTreeInternal, clone, containsKeyInternal, fetchNodeList, getExpressionEngine, getKeysInternal, getKeysInternal, getMaxIndex, getMaxIndexInternal, getModel, getPropertyInternal, getRootElementName, getRootElementNameInternal, isEmptyInternal, nodeDefined, nodeKey, resolveAddKey, resolveKey, resolveNodeKey, resolveUpdateKey, setExpressionEngine, 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, setProperty, subsetcontainsKey, 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, unlockpublic PropertyListConfiguration()
public PropertyListConfiguration(HierarchicalConfiguration<ImmutableNode> c)
PropertyListConfiguration and
copies the content of the specified configuration into this object.c - the configuration to copyprotected void setPropertyInternal(java.lang.String key,
java.lang.Object value)
AbstractHierarchicalConfigurationsetPropertyInternal in class AbstractHierarchicalConfiguration<ImmutableNode>key - the key of the property to setvalue - the new value of this propertyprotected void addPropertyInternal(java.lang.String key,
java.lang.Object value)
AbstractHierarchicalConfigurationExpressionEngine, so the passed in key
must match the requirements of this implementation.addPropertyInternal in class AbstractHierarchicalConfiguration<ImmutableNode>key - the key of the new propertyvalue - the value of the new propertypublic void read(java.io.Reader in)
throws ConfigurationException
FileBasedFileHandler for reading data.read in interface FileBasedin - the readerConfigurationException - if a non-I/O related problem occurs, e.g.
the data read does not have the expected formatpublic void write(java.io.Writer out)
throws ConfigurationException
FileBasedFileHandler for writing data.write in interface FileBasedout - the writerConfigurationException - if a non-I/O related problem occurs, e.g.
the data read does not have the expected formatCopyright © 2001–2018. All rights reserved.