Class DataPathConverter

    • Constructor Detail

      • DataPathConverter

        public DataPathConverter()
    • Method Detail

      • convert

        public 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.
        Specified by:
        convert in interface IDataPathConverter
        Parameters:
        path - is converted path.
        context - is contextual object for convertion.
        form - the form in which defines the path.
        Returns:
        The converted path.
      • canConvert

        public boolean canConvert​(AbstractDataPath path,
                                  FormItemContainer context,
                                  Form form)
        This method checks opportunity to convert a data path.
        Specified by:
        canConvert in interface IDataPathConverter
        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
      • needConvert

        public boolean needConvert​(AbstractDataPath path,
                                   FormItemContainer context,
                                   Form form)
        The method checks need to convert a path. If converting is not possible throws an IllegalStateException.
        Specified by:
        needConvert in interface IDataPathConverter
        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.