org.eclipse.xtext.conversion.impl.AbstractToStringConverter Maven / Gradle / Ivy
/*******************************************************************************
* Copyright (c) itemis AG (http://www.itemis.eu) and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*******************************************************************************/
package org.eclipse.xtext.conversion.impl;
import org.eclipse.xtext.conversion.IValueConverter;
/**
* Abstract implementation of a {@link IValueConverter}, that does not fail on
* null
-Values and uses a simple {@link Object#toString()} to obtain
* the {@link String} representation.
*/
public abstract class AbstractToStringConverter extends AbstractNullSafeConverter {
@Override
public final String internalToString(T value) {
return value.toString();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy