Documentation for ParsedData Class
The ParsedData class is a utility for managing and extracting data from a ValueRange object (typically fetched from Google Sheets). It provides methods for data validation and retrieval in various formats, such as strings, integers, floats, enums, and lists. This class is central to enabling flexible and efficient parsing of external data sources into structured formats.
Class Overview
Purpose
- Encapsulates raw tabular data from a
ValueRange object.
- Provides utilities for accessing and validating individual cells.
- Offers methods for extracting cell values in various data types and formats.
Key Features
- Validates data bounds and ensures safe access to cells.
- Extracts cell values in primitive types (
int, float, string) or complex types (enum, lists).
- Handles empty or invalid cells gracefully.
- Supports additional logic, such as detecting sub-rows.
Fields
_data
- Type:
ValueRange
- Access:
private set
- Description: Represents the raw tabular data fetched from Google Sheets.
- Purpose: Serves as the source of all data processed by the
ParsedData class.