public class ConfigFileImpl extends Object implements ConfigFile
Modifier and Type | Field and Description |
---|---|
protected Map<String,Category> |
categories |
Constructor and Description |
---|
ConfigFileImpl(String filename,
Map<String,Category> categories) |
Modifier and Type | Method and Description |
---|---|
Map<String,List<String>> |
getCategories()
Returns the lines per category.
|
protected Category |
getCategory(String name) |
String |
getFilename()
Returns the filename.
|
String |
getValue(String categoryName,
String key) |
List<String> |
getValues(String categoryName,
String key) |
public String getFilename()
ConfigFile
getFilename
in interface ConfigFile
public Map<String,List<String>> getCategories()
ConfigFile
getCategories
in interface ConfigFile
public String getValue(String categoryName, String key)
getValue
in interface ConfigFile
public List<String> getValues(String categoryName, String key)
getValues
in interface ConfigFile
Copyright © 2004–2016. All rights reserved.