Interface ConverterManager

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      boolean canConvert​(java.lang.Class<?> fromClass, java.lang.String syntax, java.lang.Class<?> toClass)
      Determine whether this converter manager is able to carry out a specified conversion.
      <T> T convert​(java.lang.Object source, java.lang.String syntax, java.lang.Class<T> toClass)
      Convert a given source object with an optional LDAP syntax to an instance of a given class.
    • Method Detail

      • canConvert

        boolean canConvert​(java.lang.Class<?> fromClass,
                           java.lang.String syntax,
                           java.lang.Class<?> toClass)
        Determine whether this converter manager is able to carry out a specified conversion.
        Parameters:
        fromClass - Convert from the fromClass.
        syntax - Using the LDAP syntax (may be null).
        toClass - To the toClass.
        Returns:
        True if the conversion is supported, false otherwise.
      • convert

        <T> T convert​(java.lang.Object source,
                      java.lang.String syntax,
                      java.lang.Class<T> toClass)
        Convert a given source object with an optional LDAP syntax to an instance of a given class.
        Type Parameters:
        T - The class to convert to.
        Parameters:
        source - The object to convert.
        syntax - The LDAP syntax to use (may be null).
        toClass - The class to convert to.
        Returns:
        The converted object.
        Throws:
        ConverterException - If the conversion can not be successfully completed.