Class Converters
java.lang.Object
com._1c.g5.v8.dt.common.databinding.conversion.Converters
Static utility methods and constants pertaining to
IConverter
instances.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Default converter implementation, does not perform any conversionstatic class
Converter from theString
(file name) to theFile
static class
static class
Converts theString
toBoolean
usingConverters.StringToBooleanConverter
:
"true" -> true
"false" -> false)
trim(source) is empty or null -> null
source not a String -> ClassCastExceptionstatic class
Trims the input string and return the result -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final org.eclipse.core.databinding.conversion.IConverter
static final org.eclipse.core.databinding.conversion.IConverter
static final org.eclipse.core.databinding.conversion.IConverter
static final org.eclipse.core.databinding.conversion.IConverter
static final org.eclipse.core.databinding.conversion.IConverter
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic org.eclipse.core.databinding.conversion.IConverter
Creates a converter that returnsvalue
for any input.static org.eclipse.core.databinding.conversion.IConverter
fromFeature
(org.eclipse.emf.ecore.EStructuralFeature feature) Creates a converter that returns value of the feature of the input emf-object.
-
Field Details
-
DEFAULT
public static final org.eclipse.core.databinding.conversion.IConverter DEFAULT- See Also:
-
STR_TO_BOOL
public static final org.eclipse.core.databinding.conversion.IConverter STR_TO_BOOL- See Also:
-
STR_TRIM
public static final org.eclipse.core.databinding.conversion.IConverter STR_TRIM- See Also:
-
STR_FILE
public static final org.eclipse.core.databinding.conversion.IConverter STR_FILE- See Also:
-
NAME_TO_STRING
public static final org.eclipse.core.databinding.conversion.IConverter NAME_TO_STRING- See Also:
-
-
Constructor Details
-
Converters
public Converters()
-
-
Method Details
-
fromFeature
public static org.eclipse.core.databinding.conversion.IConverter fromFeature(org.eclipse.emf.ecore.EStructuralFeature feature) Creates a converter that returns value of the feature of the input emf-object.- Parameters:
feature
- the emf feature- Returns:
- a emf-feature based converter
-
constant
Creates a converter that returnsvalue
for any input.- Parameters:
value
- the constant value for the converter to return- Returns:
- a converter that always returns
value
-