java.lang.Object
com._1c.g5.v8.dt.common.databinding.conversion.Converters

public class Converters extends Object
Static utility methods and constants pertaining to IConverter instances.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
    Default converter implementation, does not perform any conversion
    static class 
    Converter from the String (file name) to the File
    static class 
     
    static class 
    Converts the String to Boolean using Converters.StringToBooleanConverter:
    "true" -> true
    "false" -> false)
    trim(source) is empty or null -> null
    source not a String -> ClassCastException
    static class 
    Trims the input string and return the result
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    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
     
    static final org.eclipse.core.databinding.conversion.IConverter
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static org.eclipse.core.databinding.conversion.IConverter
    Creates a converter that returns value 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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • 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

      public static org.eclipse.core.databinding.conversion.IConverter constant(Object value)
      Creates a converter that returns value for any input.
      Parameters:
      value - the constant value for the converter to return
      Returns:
      a converter that always returns value