Class AbstractArraySubsetGenerator

    • Constructor Detail

      • AbstractArraySubsetGenerator

        public AbstractArraySubsetGenerator()
    • Method Detail

      • getQuickInfo

        public String getQuickInfo()
        Returns a quick info about the object, which can be displayed in the GUI.
        Default implementation returns null.
        Specified by:
        getQuickInfo in interface QuickInfoSupporter
        Returns:
        null if no info available, otherwise short string
      • check

        protected String check​(Object array)
        For checking the input data.
        Parameters:
        array - the array to check
        Returns:
        null if checks passed, otherwise error message
      • newArray

        protected Object newArray​(Object array,
                                  int length)
        Returns a new array instance of the specified length.
        Parameters:
        array - the old array
        length - the length of the new array
        Returns:
        the new array
      • doGenerateSubset

        protected abstract Object doGenerateSubset​(Object array,
                                                   MessageCollection errors)
        Generates the subset.
        Parameters:
        array - the array to generate the subset from
        errors - for collecting errors
        Returns:
        null in case of an error
      • generateSubset

        public Object generateSubset​(Object array,
                                     MessageCollection errors)
        Generates the subset.
        Parameters:
        array - the array to generate the subset from
        errors - for collecting errors
        Returns:
        null in case of an error