org.eclipse.xtext.conversion.impl
Class AbstractToStringConverter<T>

java.lang.Object
  extended by org.eclipse.xtext.conversion.impl.AbstractValueConverter<T>
      extended by org.eclipse.xtext.conversion.impl.AbstractNullSafeConverter<T>
          extended by org.eclipse.xtext.conversion.impl.AbstractToStringConverter<T>
All Implemented Interfaces:
IValueConverter<T>

public abstract class AbstractToStringConverter<T>
extends AbstractNullSafeConverter<T>

Abstract implementation of a ValueConverter, that does not fail on null-Values and uses a simple Object.toString() to obtain the String representation.


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.eclipse.xtext.conversion.IValueConverter
IValueConverter.RuleSpecific
 
Field Summary
 
Fields inherited from interface org.eclipse.xtext.conversion.IValueConverter
NO_OP_CONVERTER
 
Constructor Summary
AbstractToStringConverter()
           
 
Method Summary
 java.lang.String internalToString(T value)
           
 
Methods inherited from class org.eclipse.xtext.conversion.impl.AbstractNullSafeConverter
internalToValue, toString, toValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractToStringConverter

public AbstractToStringConverter()
Method Detail

internalToString

public final java.lang.String internalToString(T value)
Specified by:
internalToString in class AbstractNullSafeConverter<T>