com.groiss.reporting.data
Class SimpleReportingExportable

java.lang.Object
  extended by com.groiss.reporting.data.SimpleReportingExportable
All Implemented Interfaces:
ReportingExportable, java.lang.Comparable

public class SimpleReportingExportable
extends java.lang.Object
implements ReportingExportable

ReportinExportable for non DB-data Objects. Can handle any Object.

Author:
gerald

Constructor Summary
SimpleReportingExportable(java.lang.Object data)
           
 
Method Summary
 int compareTo(java.lang.Object o)
          compares the 2 object if they are Comparable. if not, the toString-represantations are compared
 java.lang.Object getValue()
          returns the Value
 java.lang.String toString()
           
 java.lang.String toText()
          returns the toString() of the value
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SimpleReportingExportable

public SimpleReportingExportable(java.lang.Object data)
Method Detail

getValue

public java.lang.Object getValue()
returns the Value

Specified by:
getValue in interface ReportingExportable
Returns:
the value of this object

toText

public java.lang.String toText()
returns the toString() of the value

Specified by:
toText in interface ReportingExportable
Returns:
the String represantation of this Object

compareTo

public int compareTo(java.lang.Object o)
compares the 2 object if they are Comparable. if not, the toString-represantations are compared

Specified by:
compareTo in interface java.lang.Comparable
Parameters:
o -
Returns:

toString

public java.lang.String toString()
Specified by:
toString in interface ReportingExportable
Overrides:
toString in class java.lang.Object
Returns:
the HTML represantation of this Object..


Copyright © 2001-2006 Groiss Informatics GmbH. All Rights Reserved.