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 classDefault converter implementation, does not perform any conversionstatic classConverter from theString(file name) to theFilestatic classstatic classConverts theStringtoBooleanusingConverters.StringToBooleanConverter:
"true" -> true
"false" -> false)
trim(source) is empty or null -> null
source not a String -> ClassCastExceptionstatic classTrims the input string and return the result -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final org.eclipse.core.databinding.conversion.IConverterstatic final org.eclipse.core.databinding.conversion.IConverterstatic final org.eclipse.core.databinding.conversion.IConverterstatic final org.eclipse.core.databinding.conversion.IConverterstatic final org.eclipse.core.databinding.conversion.IConverter -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic org.eclipse.core.databinding.conversion.IConverterCreates a converter that returnsvaluefor any input.static org.eclipse.core.databinding.conversion.IConverterfromFeature(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 returnsvaluefor any input.- Parameters:
value- the constant value for the converter to return- Returns:
- a converter that always returns
value
-