org.semanticweb.elk.config
Class BaseConfiguration

java.lang.Object
  extended by 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

Nested Class Summary
static interface BaseConfiguration.Parameter
           
 
Constructor Summary
  BaseConfiguration()
           
protected BaseConfiguration(BaseConfiguration config)
           
 
Method Summary
 String getParameter(String name)
           
 boolean getParameterAsBoolean(String name)
           
 int getParameterAsInt(String name)
           
 Set<String> getParameterNames()
           
protected  void initConfiguration()
           
 BaseConfiguration setParameter(String name, String value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BaseConfiguration

public BaseConfiguration()

BaseConfiguration

protected BaseConfiguration(BaseConfiguration config)
Method Detail

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.