gov.sandia.cognition.data.convert
Class ObjectToStringConverter

java.lang.Object
  extended by gov.sandia.cognition.util.AbstractCloneableSerializable
      extended by gov.sandia.cognition.data.convert.AbstractDataConverter<Object,String>
          extended by gov.sandia.cognition.data.convert.ObjectToStringConverter
All Implemented Interfaces:
DataConverter<Object,String>, Evaluator<Object,String>, CloneableSerializable, Serializable, Cloneable

public class ObjectToStringConverter
extends AbstractDataConverter<Object,String>

Converts an Object to a String using the toString method.

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

Constructor Summary
ObjectToStringConverter()
          Creates a new ObjectToStringConverter.
 
Method Summary
 String evaluate(Object input)
          Converts the given Object to an String by calling the toString method.
 
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

ObjectToStringConverter

public ObjectToStringConverter()
Creates a new ObjectToStringConverter.

Method Detail

evaluate

public String evaluate(Object input)
Converts the given Object to an String by calling the toString method.

Parameters:
input - The input to convert.
Returns:
The String representation of that input. If null is passed in, null is returned.