java.lang.Object
com.powsybl.commons.config.AbstractModuleConfig
- All Implemented Interfaces:
ModuleConfig
- Direct Known Subclasses:
AbstractMapModuleConfig
,StackedModuleConfig
Provides implementation for methods of
ModuleConfig
.
Implementations can focus on implementing the core getOptional* methods.- Author:
- Geoffroy Jamgotchian <geoffroy.jamgotchian at rte-france.com>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
getBooleanProperty
(String name) boolean
getBooleanProperty
(String name, boolean defaultValue) <T> Class<? extends T>
getClassProperty
(String name, Class<T> subClass) <T> Class<? extends T>
getClassProperty
(String name, Class<T> subClass, Class<? extends T> defaultValue) getDateTimeProperty
(String name) double
getDoubleProperty
(String name) double
getDoubleProperty
(String name, double defaultValue) <E extends Enum<E>>
EgetEnumProperty
(String name, Class<E> clazz) <E extends Enum<E>>
EgetEnumProperty
(String name, Class<E> clazz, E defaultValue) getEnumSetProperty
(String name, Class<E> clazz) getEnumSetProperty
(String name, Class<E> clazz, Set<E> defaultValue) float
getFloatProperty
(String name) float
getFloatProperty
(String name, float defaultValue) int
getIntProperty
(String name) int
getIntProperty
(String name, int defaultValue) long
getLongProperty
(String name) long
getLongProperty
(String name, long defaultValue) getOptionalClassProperty
(String name, Class<T> subClass) getOptionalEnumProperty
(String name, Class<E> clazz) getOptionalEnumSetProperty
(String name, Class<E> clazz) getPathListProperty
(String name) getPathProperty
(String name) getPathProperty
(String name, Path defaultValue) getStringListProperty
(String name) getStringListProperty
(String name, List<String> defaultValue) getStringProperty
(String name) getStringProperty
(String name, String defaultValue) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.powsybl.commons.config.ModuleConfig
getOptionalBooleanProperty, getOptionalDateTimeProperty, getOptionalDoubleProperty, getOptionalFloatProperty, getOptionalIntProperty, getOptionalLongProperty, getOptionalPathListProperty, getOptionalPathProperty, getOptionalStringListProperty, getOptionalStringProperty, getPropertyNames, hasProperty
-
Constructor Details
-
AbstractModuleConfig
public AbstractModuleConfig()
-
-
Method Details
-
getStringProperty
- Specified by:
getStringProperty
in interfaceModuleConfig
-
getStringProperty
- Specified by:
getStringProperty
in interfaceModuleConfig
-
getStringListProperty
- Specified by:
getStringListProperty
in interfaceModuleConfig
-
getStringListProperty
- Specified by:
getStringListProperty
in interfaceModuleConfig
-
getOptionalEnumProperty
- Specified by:
getOptionalEnumProperty
in interfaceModuleConfig
-
getEnumProperty
- Specified by:
getEnumProperty
in interfaceModuleConfig
-
getEnumProperty
- Specified by:
getEnumProperty
in interfaceModuleConfig
-
getOptionalEnumSetProperty
- Specified by:
getOptionalEnumSetProperty
in interfaceModuleConfig
-
getEnumSetProperty
- Specified by:
getEnumSetProperty
in interfaceModuleConfig
-
getEnumSetProperty
public <E extends Enum<E>> Set<E> getEnumSetProperty(String name, Class<E> clazz, Set<E> defaultValue) - Specified by:
getEnumSetProperty
in interfaceModuleConfig
-
getIntProperty
- Specified by:
getIntProperty
in interfaceModuleConfig
-
getIntProperty
- Specified by:
getIntProperty
in interfaceModuleConfig
-
getLongProperty
- Specified by:
getLongProperty
in interfaceModuleConfig
-
getLongProperty
- Specified by:
getLongProperty
in interfaceModuleConfig
-
getFloatProperty
- Specified by:
getFloatProperty
in interfaceModuleConfig
-
getFloatProperty
- Specified by:
getFloatProperty
in interfaceModuleConfig
-
getDoubleProperty
- Specified by:
getDoubleProperty
in interfaceModuleConfig
-
getDoubleProperty
- Specified by:
getDoubleProperty
in interfaceModuleConfig
-
getBooleanProperty
- Specified by:
getBooleanProperty
in interfaceModuleConfig
-
getBooleanProperty
- Specified by:
getBooleanProperty
in interfaceModuleConfig
-
getPathProperty
- Specified by:
getPathProperty
in interfaceModuleConfig
-
getPathProperty
- Specified by:
getPathProperty
in interfaceModuleConfig
-
getPathListProperty
- Specified by:
getPathListProperty
in interfaceModuleConfig
-
getOptionalClassProperty
- Specified by:
getOptionalClassProperty
in interfaceModuleConfig
-
getClassProperty
- Specified by:
getClassProperty
in interfaceModuleConfig
-
getClassProperty
public <T> Class<? extends T> getClassProperty(String name, Class<T> subClass, Class<? extends T> defaultValue) - Specified by:
getClassProperty
in interfaceModuleConfig
-
getDateTimeProperty
- Specified by:
getDateTimeProperty
in interfaceModuleConfig
-