Interface Column

    • Method Detail

      • getColumnName

        String getColumnName()
        The name of this Column.
        Returns:
        the String which is used to acquire this column from its parent Category
      • getRowCount

        int getRowCount()
        The number of rows in this Column. 0 indicates undefined a Column.
        Returns:
        the length of this Column
      • getStringData

        String getStringData​(int row)
        Access to entries of this Column without any assumptions about the content type. No checks about the validity of the row argument are made. However, values smaller than 0 or larger or equal to the row count will raise exceptions.
        Parameters:
        row - index of the element to retrieve
        Returns:
        the String representation of the corresponding row
      • stringData

        default Stream<String> stringData()
        Access to all entries of this column as String values.
        Returns:
        a Stream of all String values
      • getValueKind

        ValueKind getValueKind​(int row)
        States the ValueKind for a particular row. Elements may either be 'present', 'not_specified' (.) or 'unknown' (?).
        Parameters:
        row - index of the element for which the ValueKind should be retrieved
        Returns:
        the corresponding ValueKind enum entry
      • isDefined

        boolean isDefined()
        Queries this column whether it is defined. To avoid NullPointerException being thrown left, right, and center, categories and columns not present in a parsed file will be presented by an undefined state.
        Returns:
        false if this Column has row count 0 and no data in it