| Package | Description |
|---|---|
| ch.jalu.configme | |
| ch.jalu.configme.configurationdata | |
| ch.jalu.configme.migration | |
| ch.jalu.configme.properties |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
SettingsManager.getProperty(Property<T> property)
Gets the given property from the configuration.
|
<T> T |
SettingsManagerImpl.getProperty(Property<T> property)
Gets the given property from the configuration.
|
<T> void |
SettingsManager.setProperty(Property<T> property,
T value)
Sets a new value for the given property.
|
<T> void |
SettingsManagerImpl.setProperty(Property<T> property,
T value)
Sets a new value for the given property.
|
| Modifier and Type | Method and Description |
|---|---|
protected Property<?> |
ConfigurationDataBuilder.getPropertyField(Field field)
Returns the given field's value if it is a static
Property. |
| Modifier and Type | Method and Description |
|---|---|
List<Property<?>> |
PropertyListBuilder.create()
Creates a list of properties that have been added, by insertion order but grouped by path parents
(see class JavaDoc).
|
List<Property<?>> |
ConfigurationData.getProperties()
Returns all known properties.
|
List<Property<?>> |
ConfigurationDataImpl.getProperties() |
| Modifier and Type | Method and Description |
|---|---|
void |
PropertyListBuilder.add(Property<?> property)
Adds the property to the list builder.
|
<T> T |
ConfigurationData.getValue(Property<T> property)
Returns the value associated with the given property.
|
<T> T |
ConfigurationDataImpl.getValue(Property<T> property) |
<T> void |
ConfigurationData.setValue(Property<T> property,
T value)
Sets the given value for the given property.
|
<T> void |
ConfigurationDataImpl.setValue(Property<T> property,
T value) |
| Modifier and Type | Method and Description |
|---|---|
static ConfigurationData |
ConfigurationDataBuilder.createConfiguration(List<? extends Property<?>> properties) |
static ConfigurationData |
ConfigurationDataBuilder.createConfiguration(List<? extends Property<?>> properties,
CommentsConfiguration commentsConfiguration) |
| Constructor and Description |
|---|
ConfigurationDataImpl(List<? extends Property<?>> allProperties,
Map<String,List<String>> allComments)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected static <T> boolean |
PlainMigrationService.moveProperty(Property<T> oldProperty,
Property<T> newProperty,
PropertyReader reader,
ConfigurationData configurationData)
Utility method: moves the value of an old property to a new property.
|
protected static <T> boolean |
PlainMigrationService.moveProperty(Property<T> oldProperty,
Property<T> newProperty,
PropertyReader reader,
ConfigurationData configurationData)
Utility method: moves the value of an old property to a new property.
|
| Modifier and Type | Class and Description |
|---|---|
class |
BaseProperty<T>
Base implementation of
Property. |
class |
BeanProperty<T> |
class |
BooleanProperty |
class |
DoubleProperty |
class |
EnumProperty<E extends Enum<E>> |
class |
IntegerProperty |
class |
LowercaseStringSetProperty
Property whose value is a String set all in lowercase.
|
class |
OptionalProperty<T>
Property which may be empty.
|
class |
StringListProperty
String list property.
|
class |
StringProperty
String property.
|
| Modifier and Type | Method and Description |
|---|---|
static <B> Property<B> |
PropertyInitializer.newBeanProperty(Class<B> beanClass,
String path,
B defaultValue)
Creates a new bean property.
|
static Property<List<String>> |
PropertyInitializer.newListProperty(String path,
String... defaultValues)
Creates a new String list property.
|
static Property<Set<String>> |
PropertyInitializer.newLowercaseStringSetProperty(String path,
String... defaultValues)
Creates a new String set property where all values are lowercase.
|
static <E extends Enum<E>> |
PropertyInitializer.newProperty(Class<E> clazz,
String path,
E defaultValue)
Creates a new enum property.
|
static Property<Boolean> |
PropertyInitializer.newProperty(String path,
boolean defaultValue)
Creates a new boolean property.
|
static Property<Double> |
PropertyInitializer.newProperty(String path,
double defaultValue)
Creates a new double property.
|
static Property<Integer> |
PropertyInitializer.newProperty(String path,
int defaultValue)
Creates a new integer property.
|
static Property<String> |
PropertyInitializer.newProperty(String path,
String defaultValue)
Creates a new String property.
|
static Property<Optional<Boolean>> |
PropertyInitializer.optionalBooleanProperty(String path) |
static <E extends Enum<E>> |
PropertyInitializer.optionalEnumProperty(Class<E> clazz,
String path) |
static Property<Optional<Integer>> |
PropertyInitializer.optionalIntegerProperty(String path) |
static Property<Optional<String>> |
PropertyInitializer.optionalStringProperty(String path) |
| Constructor and Description |
|---|
OptionalProperty(Property<T> baseProperty) |
OptionalProperty(Property<T> baseProperty,
T defaultValue) |
Copyright © 2016–2018 The AuthMe Team. All rights reserved.