All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.vladsch.flexmark.ext.tables.internal.TableParserOptions Maven / Gradle / Ivy

Go to download

flexmark-java extension for tables using "|" pipes with optional column spans and table caption

The newest version!
package com.vladsch.flexmark.ext.tables.internal;

import com.vladsch.flexmark.ext.tables.TablesExtension;
import com.vladsch.flexmark.util.data.DataHolder;

class TableParserOptions {
  public final int maxHeaderRows;
  public final int minHeaderRows;
  public final int minSeparatorDashes;
  public final boolean appendMissingColumns;
  public final boolean discardExtraColumns;
  public final boolean columnSpans;
  public final boolean trimCellWhitespace;
  public final boolean headerSeparatorColumnMatch;
  public final String className;
  public final boolean withCaption;

  TableParserOptions(DataHolder options) {
    this.maxHeaderRows = TablesExtension.MAX_HEADER_ROWS.get(options);
    this.minHeaderRows = TablesExtension.MIN_HEADER_ROWS.get(options);
    this.minSeparatorDashes = TablesExtension.MIN_SEPARATOR_DASHES.get(options);
    this.appendMissingColumns = TablesExtension.APPEND_MISSING_COLUMNS.get(options);
    this.discardExtraColumns = TablesExtension.DISCARD_EXTRA_COLUMNS.get(options);
    this.columnSpans = TablesExtension.COLUMN_SPANS.get(options);
    this.trimCellWhitespace = TablesExtension.TRIM_CELL_WHITESPACE.get(options);
    this.headerSeparatorColumnMatch = TablesExtension.HEADER_SEPARATOR_COLUMN_MATCH.get(options);
    this.className = TablesExtension.CLASS_NAME.get(options);
    this.withCaption = TablesExtension.WITH_CAPTION.get(options);
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy