de.dfki.mycbr.core.casebase
Class DateAttribute

java.lang.Object
  extended by java.util.Observable
      extended by de.dfki.mycbr.core.casebase.Attribute
          extended by de.dfki.mycbr.core.casebase.SimpleAttribute
              extended by de.dfki.mycbr.core.casebase.DateAttribute
All Implemented Interfaces:
IExplainable

public final class DateAttribute
extends SimpleAttribute

Represents date attributes. The format of this date attribute is given by the range that maintains this attribute.

Author:
myCBR Team

Method Summary
 java.util.Date getDate()
          Returns the value of this attribute.
 java.lang.String getValueAsString()
          Returns a string representation of this date.
 
Methods inherited from class de.dfki.mycbr.core.casebase.SimpleAttribute
getAttributeDesc, getDesc, getExpType, getName, setDesc
 
Methods inherited from class java.util.Observable
addObserver, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getDate

public java.util.Date getDate()
Returns the value of this attribute.

Returns:
the date representing the value

getValueAsString

public java.lang.String getValueAsString()
Returns a string representation of this date.

Specified by:
getValueAsString in class Attribute
Returns:
the string representation of this