public interface ConfigurationData
ConfigurationDataBuilder.| Modifier and Type | Method and Description |
|---|---|
boolean |
areAllValuesValidInResource()
Returns if the last call of
initializeValues(ch.jalu.configme.resource.PropertyReader) had fully valid values in the resource
for all known properties. |
@NotNull Map<String,List<String>> |
getAllComments()
Returns all comments registered to this configuration data.
|
@NotNull List<String> |
getCommentsForSection(String path)
Returns the comments associated with the given path.
|
@NotNull List<Property<?>> |
getProperties()
Returns all known properties.
|
<T> T |
getValue(@NotNull Property<T> property)
Returns the value associated with the given property.
|
void |
initializeValues(@NotNull PropertyReader propertyReader)
Initializes the values of all
known properties based on the provided reader. |
<T> void |
setValue(@NotNull Property<T> property,
T value)
Sets the given value for the given property.
|
@NotNull @NotNull List<Property<?>> getProperties()
PropertyListBuilder
for more details).@NotNull @NotNull List<String> getCommentsForSection(String path)
path - the path for which the comments should be retrieved@NotNull @NotNull Map<String,List<String>> getAllComments()
getCommentsForSection(String) if you are not interested
in the entirety of the comments.void initializeValues(@NotNull
@NotNull PropertyReader propertyReader)
known properties based on the provided reader.
Clears any already existing values.propertyReader - the reader to use to determine the property's values@NotNull
<T> T getValue(@NotNull
@NotNull Property<T> property)
getProperties(). Throws an exception if the property is unknown.T - property typeproperty - the property to look up<T> void setValue(@NotNull
@NotNull Property<T> property,
@NotNull
T value)
T - the property typeproperty - the property to change the value forvalue - the value to setboolean areAllValuesValidInResource()
initializeValues(ch.jalu.configme.resource.PropertyReader) had fully valid values in the resource
for all known properties. If false, at least one property was either not present in the resource, or the data
under its path was not fully acceptable for the property type. Returns false if the properties have not yet
been loaded.PropertyValue.isValidInResource()Copyright © 2016–2023 The AuthMe Team. All rights reserved.