Class ValueTypeToStringConverter
java.lang.Object
org.openhab.core.model.core.valueconverter.ValueTypeToStringConverter
- All Implemented Interfaces:
org.eclipse.xtext.conversion.IValueConverter<@Nullable Object>
@NonNullByDefault
public class ValueTypeToStringConverter
extends Object
implements org.eclipse.xtext.conversion.IValueConverter<@Nullable Object>
A
ValueTypeToStringConverter
is used to create a String
, Boolean
, or BigDecimal
from
an input string and vice versa.- Author:
- Alex Tugarev - Initial contribution
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.eclipse.xtext.conversion.IValueConverter
org.eclipse.xtext.conversion.IValueConverter.RuleSpecific
-
Field Summary
Fields inherited from interface org.eclipse.xtext.conversion.IValueConverter
NO_OP_CONVERTER
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
ValueTypeToStringConverter
public ValueTypeToStringConverter()
-
-
Method Details
-
toValue
public @Nullable Object toValue(@Nullable String string, @Nullable org.eclipse.xtext.nodemodel.INode node) throws org.eclipse.xtext.conversion.ValueConverterException - Specified by:
toValue
in interfaceorg.eclipse.xtext.conversion.IValueConverter<@Nullable Object>
- Throws:
org.eclipse.xtext.conversion.ValueConverterException
-
toString
public String toString(@Nullable Object value) throws org.eclipse.xtext.conversion.ValueConverterException - Specified by:
toString
in interfaceorg.eclipse.xtext.conversion.IValueConverter<@Nullable Object>
- Throws:
org.eclipse.xtext.conversion.ValueConverterException
-
toEscapedString
-