Class AbstractMapModuleConfig

  • All Implemented Interfaces:
    ModuleConfig
    Direct Known Subclasses:
    MapModuleConfig

    public abstract class AbstractMapModuleConfig
    extends AbstractModuleConfig
    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
    • Constructor Detail

      • AbstractMapModuleConfig

        protected AbstractMapModuleConfig​(FileSystem fs)
        Parameters:
        fs - File system to provide Path objects.
    • Method Detail

      • getValue

        protected abstract Object getValue​(String propertyName)
        Returns the value of the property with the specified name, or null if it does not exist. The returned object may be a String or directly a more specialized type (Date or Float 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.
      • getOptionalIntProperty

        public OptionalInt getOptionalIntProperty​(String name)
      • getOptionalDateTimeProperty

        public Optional<org.joda.time.DateTime> getOptionalDateTimeProperty​(String name)
      • getOptionalPathProperty

        public Optional<Path> getOptionalPathProperty​(String name)