org.semanticweb.elk.config
Class BaseConfiguration
java.lang.Object
org.semanticweb.elk.config.BaseConfiguration
public class BaseConfiguration
- extends Object
A simple class to hold ELK configuration parameters. Each parameter should be
a static field annotated with @Parameter. You must specify its type and,
optionally, the default value. The type must be an Enum or a Java class with
a constructor that takes a String argument. When loading the property from
file, the framework will call that constructor to check that it can parse the
String value (to prevent passing incorrect values).
- Author:
- Pavel Klinov
pavel.klinov@uni-ulm.de
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BaseConfiguration
public BaseConfiguration()
BaseConfiguration
protected BaseConfiguration(BaseConfiguration config)
initConfiguration
protected void initConfiguration()
getParameter
public String getParameter(String name)
getParameterAsInt
public int getParameterAsInt(String name)
getParameterAsBoolean
public boolean getParameterAsBoolean(String name)
setParameter
public BaseConfiguration setParameter(String name,
String value)
getParameterNames
public Set<String> getParameterNames()
Copyright © 2011-2013 Department of Computer Science, University of Oxford. All Rights Reserved.