gov.sandia.cognition.text.convert
Class ObjectToStringTextualConverter

java.lang.Object
  extended by gov.sandia.cognition.util.AbstractCloneableSerializable
      extended by gov.sandia.cognition.data.convert.AbstractDataConverter<InputType,OutputType>
          extended by gov.sandia.cognition.text.convert.AbstractSingleTextualConverter<Object,DefaultTextual>
              extended by gov.sandia.cognition.text.convert.ObjectToStringTextualConverter
All Implemented Interfaces:
DataConverter<Object,DefaultTextual>, Evaluator<Object,DefaultTextual>, SingleTextualConverter<Object,DefaultTextual>, TextualConverter<Object,DefaultTextual>, CloneableSerializable, Serializable, Cloneable

public class ObjectToStringTextualConverter
extends AbstractSingleTextualConverter<Object,DefaultTextual>

A text converter that can take in any type of object and then returns a new DefaultTextual that wraps that object's toString().

Since:
3.1
Author:
Justin Basilico
See Also:
Serialized Form

Constructor Summary
ObjectToStringTextualConverter()
          Creates a new ObjectToStringTextualConverter.
 
Method Summary
 DefaultTextual evaluate(Object input)
          Evaluates the function on the given input and returns the output.
 
Methods inherited from class gov.sandia.cognition.text.convert.AbstractSingleTextualConverter
convert, convertAll
 
Methods inherited from class gov.sandia.cognition.util.AbstractCloneableSerializable
clone
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ObjectToStringTextualConverter

public ObjectToStringTextualConverter()
Creates a new ObjectToStringTextualConverter.

Method Detail

evaluate

public DefaultTextual evaluate(Object input)
Description copied from interface: Evaluator
Evaluates the function on the given input and returns the output.

Parameters:
input - The input to evaluate.
Returns:
The output produced by evaluating the input.