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.


Field Summary
static Properties ELKI_PROPERTIES
          The Properties for ELKI.
private static Logging logger
          Out 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(String 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 final Logging logger
Out 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(String 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.4.0 (2011-09-20_1324)