com.rapidminer.operator.text
Class TextObject

java.lang.Object
  extended by com.rapidminer.operator.AbstractIOObject
      extended by com.rapidminer.operator.ResultObjectAdapter
          extended by com.rapidminer.operator.text.TextObject
All Implemented Interfaces:
IOObject, ResultObject, Saveable, LoggingHandler, java.io.Serializable

public class TextObject
extends ResultObjectAdapter

This object encapsulates arbitrary text together with a label if applicable.

Author:
Sebastian Land
See Also:
Serialized Form

Field Summary
static int CLASSIFICATION_LABEL
           
static int NO_LABEL
           
static int REGRESSION_LABEL
           
 
Constructor Summary
TextObject(java.lang.String text)
           
TextObject(java.lang.String text, double label)
           
TextObject(java.lang.String text, java.lang.String label)
           
 
Method Summary
 java.lang.String getClassificationLabel()
           
 java.lang.String getExtension()
          Returns the default extension in file choosers.
 java.lang.String getFileDescription()
          Returns the file description used in file choosers.
 int getLabelType()
           
 double getRegressionLabel()
           
 java.lang.String getText()
           
 boolean isLabeled()
           
 java.lang.String toString()
           
 
Methods inherited from class com.rapidminer.operator.ResultObjectAdapter
addAction, getActions, getName, getResultIcon, getVisualizationComponent, isSavable, log, logError, logNote, logWarning, save, toHTML, toResultString
 
Methods inherited from class com.rapidminer.operator.AbstractIOObject
copy, getLog, getSource, initWriting, read, setLoggingHandler, setSource, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.rapidminer.operator.IOObject
copy, getLog, getSource, setLoggingHandler, setSource, write
 

Field Detail

NO_LABEL

public static final int NO_LABEL
See Also:
Constant Field Values

REGRESSION_LABEL

public static final int REGRESSION_LABEL
See Also:
Constant Field Values

CLASSIFICATION_LABEL

public static final int CLASSIFICATION_LABEL
See Also:
Constant Field Values
Constructor Detail

TextObject

public TextObject(java.lang.String text)

TextObject

public TextObject(java.lang.String text,
                  double label)

TextObject

public TextObject(java.lang.String text,
                  java.lang.String label)
Method Detail

getText

public java.lang.String getText()

isLabeled

public boolean isLabeled()

getLabelType

public int getLabelType()

getClassificationLabel

public java.lang.String getClassificationLabel()

getRegressionLabel

public double getRegressionLabel()

getExtension

public java.lang.String getExtension()
Description copied from interface: Saveable
Returns the default extension in file choosers.


getFileDescription

public java.lang.String getFileDescription()
Description copied from interface: Saveable
Returns the file description used in file choosers.


toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2001-2009 by Rapid-I