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.logging.AbstractLoggable
      extended by de.lmu.ifi.dbs.elki.properties.Properties
All Implemented Interfaces:
Loggable

public final class Properties
extends AbstractLoggable

Provides management of properties.

Author:
Arthur Zimek

Field Summary
static Properties KDD_FRAMEWORK_PROPERTIES
          The Properties for the KDDFramework.
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 ",".
private static Properties temporalProperties
           
 
Fields inherited from class de.lmu.ifi.dbs.elki.logging.AbstractLoggable
debug
 
Constructor Summary
private Properties(String filename)
          Provides the properties as defined in the designated file.
 
Method Summary
 PropertyDescription[] getProperties(PropertyName propertyName)
          Returns an array of PropertyDescription for all entries for the given PropertyName.
 String[] getProperty(PropertyName propertyName)
          Provides the entries (as separated by PROPERTY_SEPARATOR) for a specified PropertyName.
 String restrictionString(Class superclass)
          Provides a description string listing all classes for the given superclass or interface as specified in the properties.
 
Methods inherited from class de.lmu.ifi.dbs.elki.logging.AbstractLoggable
debugFine, debugFiner, debugFinest, exception, message, progress, progress, progress, verbose, verbose, warning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROPERTY_SEPARATOR

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


temporalProperties

private static Properties temporalProperties

KDD_FRAMEWORK_PROPERTIES

public static final Properties KDD_FRAMEWORK_PROPERTIES
The Properties for the KDDFramework.


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

restrictionString

public String restrictionString(Class superclass)
Provides a description string listing all classes for the given superclass or interface as specified in the properties.

Parameters:
superclass - the class to be extended or interface to be implemented
Returns:
a description string listing all classes for the given superclass or interface as specified in the properties

getProperties

public PropertyDescription[] getProperties(PropertyName propertyName)
Returns an array of PropertyDescription for all entries for the given PropertyName.

Parameters:
propertyName - the Propertyname of the property to retrieve
Returns:
PropertyDescriptins for all entries of the given PropertyName

Release 0.1 (2008-07-10_1838)