Class AbstractFeatureConverter<D,​R>

    • Field Detail

      • m_Header

        protected D m_Header
        the header.
      • m_HeaderDefinition

        protected HeaderDefinition m_HeaderDefinition
        the data types.
      • m_Dataset

        protected String m_Dataset
        the name of the dataset.
    • Constructor Detail

      • AbstractFeatureConverter

        public AbstractFeatureConverter()
    • Method Detail

      • setDataset

        public void setDataset​(String value)
        Sets the dataset name to use.
        Parameters:
        value - the dataset name
      • getDataset

        public String getDataset()
        Returns the dataset name in use.
        Returns:
        the dataset name
      • datasetTipText

        public String datasetTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • 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
      • isInitialized

        public boolean isInitialized()
        Returns whether the header has been initialized.
        Returns:
        true if initialized
      • getHeader

        public D getHeader()
        Returns the current header, if any.
        Returns:
        the header, null if none generated yet
      • getHeaderDefinition

        public HeaderDefinition getHeaderDefinition()
        Returns the current header definition, if any.
        Returns:
        the header definition, null if none supplied yet
      • getDatasetFormat

        public abstract Class getDatasetFormat()
        Returns the class of the dataset that the converter generates.
        Returns:
        the format
      • getRowFormat

        public abstract Class getRowFormat()
        Returns the class of the row that the converter generates.
        Returns:
        the format
      • doGenerateHeader

        protected abstract D doGenerateHeader​(HeaderDefinition header)
        Performs the actual generation of the header data structure using the supplied header definition.
        Parameters:
        header - the header definition
        Returns:
        the dataset structure
      • generateHeader

        public D generateHeader​(HeaderDefinition header)
        Generates the header data structure using the supplied header definition.
        Parameters:
        header - the header definition
        Returns:
        the dataset structure
      • doGenerateRow

        protected abstract R doGenerateRow​(List<Object> data)
        Performs the actual generation of a row from the raw data.
        Parameters:
        data - the data of the row, elements can be null (= missing)
        Returns:
        the dataset structure
      • generateRow

        public R generateRow​(List<Object> data)
        Generates a row from the raw data.
        Parameters:
        data - the data of the row, elements can be null (= missing)
        Returns:
        the dataset structure
        See Also:
        #generateHeader(List, List)