public class ConfigurationDataImpl extends Object implements ConfigurationData
| Modifier | Constructor and Description |
|---|---|
protected |
ConfigurationDataImpl(List<? extends Property<?>> allProperties,
Map<String,List<String>> allComments)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Map<String,List<String>> |
getAllComments()
Returns all comments registered to this configuration data.
|
List<String> |
getCommentsForSection(String path)
Returns the comments associated with the given path.
|
List<Property<?>> |
getProperties()
Returns all known properties.
|
<T> T |
getValue(Property<T> property)
Returns the value associated with the given property.
|
void |
initializeValues(PropertyReader reader)
Initializes the values of all
known properties based on the provided reader. |
<T> void |
setValue(Property<T> property,
T value)
Sets the given value for the given property.
|
public List<Property<?>> getProperties()
ConfigurationDataPropertyListBuilder
for more details).getProperties in interface ConfigurationDatapublic List<String> getCommentsForSection(String path)
ConfigurationDatagetCommentsForSection in interface ConfigurationDatapath - the path for which the comments should be retrievedpublic Map<String,List<String>> getAllComments()
ConfigurationDataConfigurationData.getCommentsForSection(String) if you are not interested
in the entirety of comments.getAllComments in interface ConfigurationDatapublic <T> T getValue(Property<T> property)
ConfigurationDataConfigurationData.getProperties().getValue in interface ConfigurationDataT - property typeproperty - the property to look uppublic <T> void setValue(Property<T> property, T value)
ConfigurationDatasetValue in interface ConfigurationDataT - the property typeproperty - the property to change the value forvalue - the value to setpublic void initializeValues(PropertyReader reader)
ConfigurationDataknown properties based on the provided reader.
Clears any already existing values.initializeValues in interface ConfigurationDatareader - the reader to use to determine the property's valuesCopyright © 2016–2018 The AuthMe Team. All rights reserved.