Package org.ndviet.library.configuration
Class AbstractConfiguration
- java.lang.Object
-
- org.ndviet.library.configuration.AbstractConfiguration
-
- All Implemented Interfaces:
IConfiguration
- Direct Known Subclasses:
JsonConfiguration,PropertiesConfiguration,YamlConfiguration
public abstract class AbstractConfiguration extends java.lang.Object implements IConfiguration
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.LinkedHashMapm_data
-
Constructor Summary
Constructors Constructor Description AbstractConfiguration()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description java.util.LinkedHashMapgetData()abstract java.util.ListgetListValues(java.lang.String key)abstract java.util.LinkedHashMapgetMapValues(java.lang.String key)abstract java.lang.StringgetValue(java.lang.String key)abstract voidreadConfigurationFrom(java.lang.String filePath)
-
-
-
Method Detail
-
getData
public java.util.LinkedHashMap getData()
-
readConfigurationFrom
public abstract void readConfigurationFrom(java.lang.String filePath) throws java.lang.Exception- Throws:
java.lang.Exception
-
getValue
public abstract java.lang.String getValue(java.lang.String key)
- Specified by:
getValuein interfaceIConfiguration
-
getListValues
public abstract java.util.List getListValues(java.lang.String key)
- Specified by:
getListValuesin interfaceIConfiguration
-
getMapValues
public abstract java.util.LinkedHashMap getMapValues(java.lang.String key)
- Specified by:
getMapValuesin interfaceIConfiguration
-
-