Interface IDataPathConverter

  • All Known Implementing Classes:
    DataPathConverter

    public interface IDataPathConverter
    Interface of a data path convert. This entry using object of a contextfor converting.
    • Method Detail

      • convert

        AbstractDataPath convert​(AbstractDataPath path,
                                 FormItemContainer context,
                                 Form form)
        The method converts a data path for use in contextual object. If converting is not possible throws an IllegalStateException. If the path doesn't need converting returns the current path.
        Parameters:
        path - is converted path.
        context - is contextual object for convertion.
        form - the form in which defines the path.
        Returns:
        The converted path.
      • needConvert

        boolean needConvert​(AbstractDataPath path,
                            FormItemContainer context,
                            Form form)
        The method checks need to convert a path. If converting is not possible throws an IllegalStateException.
        Parameters:
        path - is checked path.
        context - is contextual object for convertion.
        form - the form in which defines the path.
        Returns:
        true - if convertation does need , false - if doesnot need.
      • canConvert

        boolean canConvert​(AbstractDataPath path,
                           FormItemContainer context,
                           Form form)
        This method checks opportunity to convert a data path.
        Parameters:
        path - is checked path.
        context - is contextual object for convertion.
        form - the form in which defines the path.
        Returns:
        true - if converter can to convert this path, otherwise returns false