- ch.jalu.configme - package ch.jalu.configme
-
- ch.jalu.configme.beanmapper - package ch.jalu.configme.beanmapper
-
- ch.jalu.configme.beanmapper.leafvaluehandler - package ch.jalu.configme.beanmapper.leafvaluehandler
-
- ch.jalu.configme.beanmapper.propertydescription - package ch.jalu.configme.beanmapper.propertydescription
-
- ch.jalu.configme.configurationdata - package ch.jalu.configme.configurationdata
-
- ch.jalu.configme.exception - package ch.jalu.configme.exception
-
- ch.jalu.configme.migration - package ch.jalu.configme.migration
-
- ch.jalu.configme.properties - package ch.jalu.configme.properties
-
- ch.jalu.configme.resource - package ch.jalu.configme.resource
-
- ch.jalu.configme.utils - package ch.jalu.configme.utils
-
- checkAndMigrate(PropertyReader, ConfigurationData) - Method in interface ch.jalu.configme.migration.MigrationService
-
Performs the migration, returning whether a migration has been performed or not.
- checkAndMigrate(PropertyReader, ConfigurationData) - Method in class ch.jalu.configme.migration.PlainMigrationService
-
- collectAllProperties(Class<?>) - Method in class ch.jalu.configme.beanmapper.propertydescription.BeanDescriptionFactoryImpl
-
Collects all properties available on the given class.
- collectData(Iterable<Class<? extends SettingsHolder>>) - Method in class ch.jalu.configme.configurationdata.ConfigurationDataBuilder
-
Collects property data and comment info from the given class and creates a configuration data
instance with it.
- CollectionUtils - Class in ch.jalu.configme.utils
-
Collection utils.
- collectProperties(Class<?>) - Method in class ch.jalu.configme.configurationdata.ConfigurationDataBuilder
-
Registers all property fields of the given class to this instance's property list builder.
- collectSectionComments(Class<? extends SettingsHolder>) - Method in class ch.jalu.configme.configurationdata.ConfigurationDataBuilder
-
- CombiningLeafValueHandler - Class in ch.jalu.configme.beanmapper.leafvaluehandler
-
Implementation of
LeafValueHandler which takes various implementations thereof and
returns the first non-null result of the underlying leaf value handlers.
- CombiningLeafValueHandler(LeafValueHandler...) - Constructor for class ch.jalu.configme.beanmapper.leafvaluehandler.CombiningLeafValueHandler
-
Constructor.
- CombiningLeafValueHandler(Collection<LeafValueHandler>) - Constructor for class ch.jalu.configme.beanmapper.leafvaluehandler.CombiningLeafValueHandler
-
Constructor.
- Comment - Annotation Type in ch.jalu.configme
-
Comment for properties which are also included in the YAML file upon saving.
- CommentsConfiguration - Class in ch.jalu.configme.configurationdata
-
- CommentsConfiguration() - Constructor for class ch.jalu.configme.configurationdata.CommentsConfiguration
-
Constructor.
- CommentsConfiguration(Map<String, List<String>>) - Constructor for class ch.jalu.configme.configurationdata.CommentsConfiguration
-
Constructor.
- commentsConfiguration - Variable in class ch.jalu.configme.configurationdata.ConfigurationDataBuilder
-
- ConfigMeException - Exception in ch.jalu.configme.exception
-
ConfigMe exception.
- ConfigMeException(String) - Constructor for exception ch.jalu.configme.exception.ConfigMeException
-
- ConfigMeException(String, Throwable) - Constructor for exception ch.jalu.configme.exception.ConfigMeException
-
- ConfigMeMapperException - Exception in ch.jalu.configme.beanmapper
-
Exception during a bean mapping process.
- ConfigMeMapperException(String) - Constructor for exception ch.jalu.configme.beanmapper.ConfigMeMapperException
-
Constructor.
- ConfigMeMapperException(MappingContext, String) - Constructor for exception ch.jalu.configme.beanmapper.ConfigMeMapperException
-
Creates an exception which incorporates the mapping context's description into the provided message.
- ConfigMeMapperException(String, Throwable) - Constructor for exception ch.jalu.configme.beanmapper.ConfigMeMapperException
-
Constructor.
- ConfigurationData - Interface in ch.jalu.configme.configurationdata
-
Manages configuration data:
knows all available properties
keeps all comments
manages the values associated with the properties
Create instances with
ConfigurationDataBuilder.
- configurationData(Class<? extends SettingsHolder>...) - Method in class ch.jalu.configme.SettingsManagerBuilder
-
Sets up configuration data with the input of the given settings holder classes.
- configurationData(ConfigurationData) - Method in class ch.jalu.configme.SettingsManagerBuilder
-
Sets the provided configuration data to the builder.
- ConfigurationDataBuilder - Class in ch.jalu.configme.configurationdata
-
Utility class responsible for retrieving all
Property fields
from
SettingsHolder implementations via reflection.
- ConfigurationDataBuilder() - Constructor for class ch.jalu.configme.configurationdata.ConfigurationDataBuilder
-
- ConfigurationDataImpl - Class in ch.jalu.configme.configurationdata
-
Contains information about the available properties and their associated comments.
- ConfigurationDataImpl(List<? extends Property<?>>, Map<String, List<String>>) - Constructor for class ch.jalu.configme.configurationdata.ConfigurationDataImpl
-
Constructor.
- contains(String) - Method in interface ch.jalu.configme.resource.PropertyReader
-
Returns whether a value is present for the given path.
- contains(String) - Method in class ch.jalu.configme.resource.YamlFileReader
-
- convert(TypeInformation, Object) - Method in class ch.jalu.configme.beanmapper.leafvaluehandler.AbstractLeafValueHandler
-
- convert(Class<?>, Object) - Method in class ch.jalu.configme.beanmapper.leafvaluehandler.AbstractLeafValueHandler
-
- convert(TypeInformation, Object) - Method in class ch.jalu.configme.beanmapper.leafvaluehandler.CombiningLeafValueHandler
-
- convert(TypeInformation, Object) - Method in interface ch.jalu.configme.beanmapper.leafvaluehandler.LeafValueHandler
-
Converts the given value to the given class, if possible.
- convert(Class<?>, Object) - Method in class ch.jalu.configme.beanmapper.leafvaluehandler.StandardLeafValueHandlers.BooleanHandler
-
- convert(Class<?>, Object) - Method in class ch.jalu.configme.beanmapper.leafvaluehandler.StandardLeafValueHandlers.EnumHandler
-
- convert(Class<?>, Object) - Method in class ch.jalu.configme.beanmapper.leafvaluehandler.StandardLeafValueHandlers.NumberHandler
-
- convert(Class<?>, Object) - Method in class ch.jalu.configme.beanmapper.leafvaluehandler.StandardLeafValueHandlers.ObjectHandler
-
- convert(Class<?>, Object) - Method in class ch.jalu.configme.beanmapper.leafvaluehandler.StandardLeafValueHandlers.StringHandler
-
- convert(PropertyDescriptor) - Method in class ch.jalu.configme.beanmapper.propertydescription.BeanDescriptionFactoryImpl
-
- convertToBean(Object, TypeInformation) - Method in interface ch.jalu.configme.beanmapper.Mapper
-
Creates an object of the given type from the given value.
- convertToBean(Object, Class<T>) - Method in interface ch.jalu.configme.beanmapper.Mapper
-
Converts the given value to an object of the given class, if possible.
- convertToBean(Object, TypeInformation) - Method in class ch.jalu.configme.beanmapper.MapperImpl
-
- convertToLowercaseString(Object) - Method in class ch.jalu.configme.properties.LowercaseStringSetProperty
-
- convertValueForType(MappingContext, Object) - Method in class ch.jalu.configme.beanmapper.MapperImpl
-
Main method for converting a value to another type.
- create() - Method in class ch.jalu.configme.configurationdata.PropertyListBuilder
-
Creates a list of properties that have been added, by insertion order but grouped by path parents
(see class JavaDoc).
- create() - Method in class ch.jalu.configme.SettingsManagerBuilder
-
Creates a settings manager instance.
- createBean(MappingContext, Object) - Method in class ch.jalu.configme.beanmapper.MapperImpl
-
Converts the provided value to the requested JavaBeans class if possible.
- createBeanMatchingType(TypeInformation) - Method in class ch.jalu.configme.beanmapper.MapperImpl
-
Creates an object matching the given type information.
- createChild(String, TypeInformation) - Method in interface ch.jalu.configme.beanmapper.MappingContext
-
Creates a child context with the given path addition ("name") and type information.
- createChild(String, TypeInformation) - Method in class ch.jalu.configme.beanmapper.MappingContextImpl
-
- createCollection(MappingContext, Object) - Method in class ch.jalu.configme.beanmapper.MapperImpl
-
Handles the creation of Collection properties.
- createCollectionMatchingType(TypeInformation) - Method in class ch.jalu.configme.beanmapper.MapperImpl
-
Creates a Collection of a type which can be assigned to the provided type.
- createConfiguration(Class<? extends SettingsHolder>...) - Static method in class ch.jalu.configme.configurationdata.ConfigurationDataBuilder
-
Collects all properties and comment data from the provided classes.
- createConfiguration(Iterable<Class<? extends SettingsHolder>>) - Static method in class ch.jalu.configme.configurationdata.ConfigurationDataBuilder
-
Collects all properties and comment data from the provided classes.
- createConfiguration(List<? extends Property<?>>) - Static method in class ch.jalu.configme.configurationdata.ConfigurationDataBuilder
-
- createConfiguration(List<? extends Property<?>>, CommentsConfiguration) - Static method in class ch.jalu.configme.configurationdata.ConfigurationDataBuilder
-
- createDescription() - Method in interface ch.jalu.configme.beanmapper.MappingContext
-
- createDescription() - Method in class ch.jalu.configme.beanmapper.MappingContextImpl
-
- createExportValueForSpecialTypes(Object) - Method in class ch.jalu.configme.beanmapper.MapperImpl
-
Handles values of types which need special handling (such as Optional).
- createFileIfNotExists(File) - Static method in class ch.jalu.configme.utils.Utils
-
Attempts to create the given file if it doesn't exist.
- createMap(MappingContext, Object) - Method in class ch.jalu.configme.beanmapper.MapperImpl
-
Handles the creation of a Map property.
- createMapMatchingType(TypeInformation) - Method in class ch.jalu.configme.beanmapper.MapperImpl
-
Creates a Map of a type which can be assigned to the provided type.
- createNewYaml() - Method in class ch.jalu.configme.resource.YamlFileResource
-
- createOptional(MappingContext, Object) - Method in class ch.jalu.configme.beanmapper.MapperImpl
-
- createReader() - Method in interface ch.jalu.configme.resource.PropertyResource
-
Creates a reader to access the values in the medium (typically a file).
- createReader() - Method in class ch.jalu.configme.resource.YamlFileResource
-
- createRoot(TypeInformation) - Static method in class ch.jalu.configme.beanmapper.MappingContextImpl
-
Creates an initial context (used at the start of a mapping process).
- createRootMappingContext(TypeInformation) - Method in class ch.jalu.configme.beanmapper.MapperImpl
-
- createSettingsHolderInstance(Class<T>) - Method in class ch.jalu.configme.configurationdata.ConfigurationDataBuilder
-
Creates an instance of the given settings holder class.
- createTypeInfo(PropertyDescriptor) - Method in class ch.jalu.configme.beanmapper.propertydescription.BeanDescriptionFactoryImpl
-
- getAllComments() - Method in class ch.jalu.configme.configurationdata.CommentsConfiguration
-
Returns a read-only view of the map with all comments.
- getAllComments() - Method in interface ch.jalu.configme.configurationdata.ConfigurationData
-
Returns all comments registered to this configuration data.
- getAllComments() - Method in class ch.jalu.configme.configurationdata.ConfigurationDataImpl
-
- getAllProperties(Class<?>) - Method in interface ch.jalu.configme.beanmapper.propertydescription.BeanDescriptionFactory
-
Returns all properties on the given class which should be considered while creating a bean of the
given type.
- getAllProperties(Class<?>) - Method in class ch.jalu.configme.beanmapper.propertydescription.BeanDescriptionFactoryImpl
-
Returns all properties of the given bean class for which there exists a getter and setter.
- getBeanDescriptionFactory() - Method in class ch.jalu.configme.beanmapper.MapperImpl
-
- getBoolean(String) - Method in interface ch.jalu.configme.resource.PropertyReader
-
Returns the value of the given path as a boolean if available.
- getBoolean(String) - Method in class ch.jalu.configme.resource.YamlFileReader
-
- getCharset() - Method in class ch.jalu.configme.resource.YamlFileResource
-
- getComments() - Method in class ch.jalu.configme.resource.PropertyPathTraverser.PathElement
-
- getCommentsForSection(String) - Method in interface ch.jalu.configme.configurationdata.ConfigurationData
-
Returns the comments associated with the given path.
- getCommentsForSection(String) - Method in class ch.jalu.configme.configurationdata.ConfigurationDataImpl
-
- getConfigurationData() - Method in class ch.jalu.configme.SettingsManagerImpl
-
- getDefaultLeafValueHandler() - Static method in class ch.jalu.configme.beanmapper.leafvaluehandler.StandardLeafValueHandlers
-
Returns the default leaf value handler used in ConfigMe.
- getDefaultValue() - Method in class ch.jalu.configme.properties.BaseProperty
-
- getDefaultValue() - Method in interface ch.jalu.configme.properties.Property
-
Returns the default value of this property.
- getDouble(String) - Method in interface ch.jalu.configme.resource.PropertyReader
-
Returns the value of the given path as a double if available.
- getDouble(String) - Method in class ch.jalu.configme.resource.YamlFileReader
-
- getFile() - Method in class ch.jalu.configme.resource.YamlFileReader
-
- getFile() - Method in class ch.jalu.configme.resource.YamlFileResource
-
- getFromReader(PropertyReader) - Method in class ch.jalu.configme.properties.BaseProperty
-
Constructs the value of the property from the property reader.
- getFromReader(PropertyReader) - Method in class ch.jalu.configme.properties.BeanProperty
-
- getFromReader(PropertyReader) - Method in class ch.jalu.configme.properties.BooleanProperty
-
- getFromReader(PropertyReader) - Method in class ch.jalu.configme.properties.DoubleProperty
-
- getFromReader(PropertyReader) - Method in class ch.jalu.configme.properties.EnumProperty
-
- getFromReader(PropertyReader) - Method in class ch.jalu.configme.properties.IntegerProperty
-
- getFromReader(PropertyReader) - Method in class ch.jalu.configme.properties.LowercaseStringSetProperty
-
- getFromReader(PropertyReader) - Method in class ch.jalu.configme.properties.OptionalProperty
-
- getFromReader(PropertyReader) - Method in class ch.jalu.configme.properties.StringListProperty
-
- getFromReader(PropertyReader) - Method in class ch.jalu.configme.properties.StringProperty
-
- getGenericType(int) - Method in class ch.jalu.configme.utils.TypeInformation
-
"Unwraps" the type and returns the generic type information for the given index, provided the wrapped type
contains generic information.
- getGenericTypeAsClass(int) - Method in class ch.jalu.configme.utils.TypeInformation
-
"Unwraps" the type and returns the generic type information for the given index as Class object,
provided the wrapped type contains generic information.
- getGenericTypeInfoOrFail(int) - Method in interface ch.jalu.configme.beanmapper.MappingContext
-
Convenience method: gets the generic type info for the given index and ensures that the generic type information
exists and that it can be converted into a safe-to-write class.
- getHandlers() - Method in class ch.jalu.configme.beanmapper.leafvaluehandler.CombiningLeafValueHandler
-
- getIndentationLevel() - Method in class ch.jalu.configme.resource.PropertyPathTraverser.PathElement
-
- getInstance() - Static method in class ch.jalu.configme.beanmapper.DefaultMapper
-
- getInt(String) - Method in interface ch.jalu.configme.resource.PropertyReader
-
Returns the value of the given path as an integer if available.
- getInt(String) - Method in class ch.jalu.configme.resource.YamlFileReader
-
- getKeys(boolean) - Method in interface ch.jalu.configme.resource.PropertyReader
-
Returns the keys available in the file.
- getKeys(boolean) - Method in class ch.jalu.configme.resource.YamlFileReader
-
- getLeafValueHandler() - Method in class ch.jalu.configme.beanmapper.MapperImpl
-
- getList(String) - Method in interface ch.jalu.configme.resource.PropertyReader
-
Returns the value of the given path as a list if available.
- getList(String) - Method in class ch.jalu.configme.resource.YamlFileReader
-
- getMigrationService() - Method in class ch.jalu.configme.SettingsManagerImpl
-
- getName() - Method in interface ch.jalu.configme.beanmapper.propertydescription.BeanPropertyDescription
-
- getName() - Method in class ch.jalu.configme.beanmapper.propertydescription.BeanPropertyDescriptionImpl
-
- getName() - Method in class ch.jalu.configme.resource.PropertyPathTraverser.PathElement
-
- getObject(String) - Method in interface ch.jalu.configme.resource.PropertyReader
-
Returns the object at the given path, or null if absent.
- getObject(String) - Method in class ch.jalu.configme.resource.YamlFileReader
-
- getPath() - Method in class ch.jalu.configme.properties.BaseProperty
-
- getPath() - Method in interface ch.jalu.configme.properties.Property
-
- getPathElements(String) - Method in class ch.jalu.configme.resource.PropertyPathTraverser
-
Returns all path elements for the given property that have not been traversed yet.
- getProperties() - Method in interface ch.jalu.configme.configurationdata.ConfigurationData
-
Returns all known properties.
- getProperties() - Method in class ch.jalu.configme.configurationdata.ConfigurationDataImpl
-
- getProperty(Property<T>) - Method in interface ch.jalu.configme.SettingsManager
-
Gets the given property from the configuration.
- getProperty(Property<T>) - Method in class ch.jalu.configme.SettingsManagerImpl
-
Gets the given property from the configuration.
- getPropertyField(Field) - Method in class ch.jalu.configme.configurationdata.ConfigurationDataBuilder
-
Returns the given field's value if it is a static
Property.
- getPropertyName(PropertyDescriptor) - Method in class ch.jalu.configme.beanmapper.propertydescription.BeanDescriptionFactoryImpl
-
Returns the name which is used in the export files for the given property descriptor.
- getPropertyResource() - Method in class ch.jalu.configme.SettingsManagerImpl
-
- getRange(List<T>, int) - Static method in class ch.jalu.configme.utils.CollectionUtils
-
Gets all elements from a list starting from the given index.
- getRoot() - Method in class ch.jalu.configme.resource.YamlFileReader
-
- getSafeToReadClass() - Method in class ch.jalu.configme.utils.TypeInformation
-
Returns a
Class object of the wrapped type which is safe for reading.
- getSafeToWriteClass() - Method in class ch.jalu.configme.utils.TypeInformation
-
Returns a
Class object of the wrapped type which is safe for writing to.
- getString(String) - Method in interface ch.jalu.configme.resource.PropertyReader
-
Returns the value of the given path as a String if available.
- getString(String) - Method in class ch.jalu.configme.resource.YamlFileReader
-
- getType() - Method in class ch.jalu.configme.utils.TypeInformation
-
- getTypedObject(String, Class<T>) - Method in class ch.jalu.configme.resource.YamlFileReader
-
Gets the object at the given path and safely casts it to the given class' type.
- getTypeInformation() - Method in interface ch.jalu.configme.beanmapper.MappingContext
-
- getTypeInformation() - Method in class ch.jalu.configme.beanmapper.MappingContextImpl
-
- getTypeInformation() - Method in interface ch.jalu.configme.beanmapper.propertydescription.BeanPropertyDescription
-
- getTypeInformation() - Method in class ch.jalu.configme.beanmapper.propertydescription.BeanPropertyDescriptionImpl
-
- getValue(Object) - Method in interface ch.jalu.configme.beanmapper.propertydescription.BeanPropertyDescription
-
Returns the value of the property for the given bean.
- getValue(Object) - Method in class ch.jalu.configme.beanmapper.propertydescription.BeanPropertyDescriptionImpl
-
Returns the value of the property for the given bean.
- getValue(Property<T>) - Method in interface ch.jalu.configme.configurationdata.ConfigurationData
-
Returns the value associated with the given property.
- getValue(Property<T>) - Method in class ch.jalu.configme.configurationdata.ConfigurationDataImpl
-
- getWritableProperties(Class<?>) - Method in class ch.jalu.configme.beanmapper.propertydescription.BeanDescriptionFactoryImpl
-
Returns all properties of the given class that are writable
(all bean properties with an associated read and write method).
- getYamlObject() - Method in class ch.jalu.configme.resource.YamlFileResource
-
Returns the YAML instance with which values are converted to YAML.