Environment for
DeveLoping
KDD-Applications
Supported by Index-Structures

de.lmu.ifi.dbs.elki.properties
Class Properties

java.lang.Object
  extended by de.lmu.ifi.dbs.elki.properties.Properties

public final class Properties
extends Object

Provides management of properties.

Author:
Arthur Zimek

Field Summary
static Properties ELKI_PROPERTIES
          The Properties for ELKI.
private static Logging logger
           
private  Properties properties
          Stores the properties as defined by a property-file.
static Pattern PROPERTY_SEPARATOR
          The pattern to split for separate entries in a property string, which is a ",".
 
Constructor Summary
private Properties(String filename)
          Provides the properties as defined in the designated file.
 
Method Summary
 String[] getProperty(PropertyName propertyName)
          Provides the entries (as separated by PROPERTY_SEPARATOR) for a specified PropertyName.
 Set<String> getPropertyNames()
          Get a collection of all property names in this file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

private static Logging logger

PROPERTY_SEPARATOR

public static final Pattern PROPERTY_SEPARATOR
The pattern to split for separate entries in a property string, which is a ",".


ELKI_PROPERTIES

public static final Properties ELKI_PROPERTIES
The Properties for ELKI.


properties

private final Properties properties
Stores the properties as defined by a property-file.

Constructor Detail

Properties

private Properties(String filename)
Provides the properties as defined in the designated file.

Parameters:
filename - name of a file to provide property-definitions.
Method Detail

getProperty

public String[] getProperty(PropertyName propertyName)
Provides the entries (as separated by PROPERTY_SEPARATOR) for a specified PropertyName.

Parameters:
propertyName - the PropertyName of the property to retrieve
Returns:
the entries (separated by PROPERTY_SEPARATOR) for the specified PropertyName - if the property is undefined, the returned array is of length 0

getPropertyNames

public Set<String> getPropertyNames()
Get a collection of all property names in this file.

Returns:
Property names in this file.

Release 0.2 (2009-07-06_1820)