Environment for
DeveLoping
KDD-Applications
Supported by Index-Structures

de.lmu.ifi.dbs.elki.converter
Class WekaStringAttribute

java.lang.Object
  extended by de.lmu.ifi.dbs.elki.converter.WekaAbstractAttribute<WekaStringAttribute>
      extended by de.lmu.ifi.dbs.elki.converter.WekaStringAttribute
All Implemented Interfaces:
WekaAttribute<WekaStringAttribute>, Comparable<WekaStringAttribute>

public class WekaStringAttribute
extends WekaAbstractAttribute<WekaStringAttribute>

A string attribute.

Author:
Arthur Zimek

Field Summary
private  String value
          Holds the value.
 
Fields inherited from interface de.lmu.ifi.dbs.elki.converter.WekaAttribute
NOMINAL, NUMERIC, STRING
 
Constructor Summary
WekaStringAttribute(String value)
          Sets the given value as a string value.
 
Method Summary
 int compareTo(WekaStringAttribute o)
          Two string attributes are compared by their values.
 String getValue()
          Returns the value as String representation.
 
Methods inherited from class de.lmu.ifi.dbs.elki.converter.WekaAbstractAttribute
equals, getType, hashCode, isNominal, isNumeric, isString, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

value

private String value
Holds the value.

Constructor Detail

WekaStringAttribute

public WekaStringAttribute(String value)
Sets the given value as a string value.

Parameters:
value - the value of this attribute
Method Detail

getValue

public String getValue()
Description copied from interface: WekaAttribute
Returns the value as String representation.

Returns:
a representation of the attribute value as String
See Also:
WekaAttribute.getValue()

compareTo

public int compareTo(WekaStringAttribute o)
Two string attributes are compared by their values.

See Also:
Comparable.compareTo(java.lang.Object)

Release 0.1 (2008-07-10_1838)