Package com.powsybl.commons.config
Class AbstractMapModuleConfig
java.lang.Object
com.powsybl.commons.config.AbstractModuleConfig
com.powsybl.commons.config.AbstractMapModuleConfig
- All Implemented Interfaces:
ModuleConfig
- Direct Known Subclasses:
MapModuleConfig
Provides implementation for most methods of
ModuleConfig
,
based on a single "mapping" method to be implemented {@link this#getValue(String)}.
A FileSystem
also needs to be provided to build Path
properties.- Author:
- Geoffroy Jamgotchian <geoffroy.jamgotchian at rte-france.com>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetOptionalIntProperty
(String name) protected abstract Object
Returns the value of the property with the specified name, ornull
if it does not exist.Methods inherited from class com.powsybl.commons.config.AbstractModuleConfig
getBooleanProperty, getBooleanProperty, getClassProperty, getClassProperty, getDateTimeProperty, getDoubleProperty, getDoubleProperty, getEnumProperty, getEnumProperty, getEnumSetProperty, getEnumSetProperty, getFloatProperty, getFloatProperty, getIntProperty, getIntProperty, getLongProperty, getLongProperty, getOptionalClassProperty, getOptionalEnumProperty, getOptionalEnumSetProperty, getPathListProperty, getPathProperty, getPathProperty, getStringListProperty, getStringListProperty, getStringProperty, getStringProperty
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
getPropertyNames, hasProperty
-
Constructor Details
-
AbstractMapModuleConfig
- Parameters:
fs
- File system to providePath
objects.
-
-
Method Details
-
getValue
Returns the value of the property with the specified name, ornull
if it does not exist. The returned object may be aString
or directly a more specialized type (Date
orFloat
for instance).- Parameters:
propertyName
- The name of the property to be looked up- Returns:
- The value of the specified property it it exists,
null
otherwise.
-
getOptionalStringProperty
-
getOptionalStringListProperty
-
getOptionalIntProperty
-
getOptionalLongProperty
-
getOptionalFloatProperty
-
getOptionalDoubleProperty
-
getOptionalBooleanProperty
-
getOptionalDateTimeProperty
-
getOptionalPathProperty
-
getOptionalPathListProperty
-