congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
TocOptions
Code IndexAdd Tabnine to your IDE (free)

How to use
TocOptions
in
com.vladsch.flexmark.ext.toc.internal

Best Java code snippets using com.vladsch.flexmark.ext.toc.internal.TocOptions (Showing top 20 results out of 315)

origin: vsch/flexmark-java

public TocOptions withLevelList(int... levelList) {
  int levels = getLevels(levelList);
  return withLevels(levels);
}
origin: vsch/flexmark-java

  @Override
  public TocOptions create(DataHolder options) {
    return new TocOptions(options, false);
  }
});
origin: vsch/flexmark-java

public static List<Heading> filteredHeadings(List<Heading> headings, TocOptions tocOptions) {
  ArrayList<Heading> filteredHeadings = new ArrayList<Heading>(headings.size());
  for (Heading header : headings) {
    if (tocOptions.isLevelIncluded(header.getLevel()) && !(header.getParent() instanceof SimTocContent)) {
      filteredHeadings.add(header);
    }
  }
  return filteredHeadings;
}
origin: vsch/flexmark-java

  @Override
  public TocOptions setOptions(TocOptions options) {
    return options.withIsTextOnly(true);
  }
}),
origin: vsch/flexmark-java

  @Override
  public TocOptions setOptions(TocOptions options) {
    return options.withIsNumbered(true);
  }
}),
origin: vsch/flexmark-java

options.set(TocExtension.LEVELS, TocOptions.getLevels(2, 3));
origin: vsch/flexmark-java

  @Override
  protected TocOptions setOptions(TocOptions options) {
    return options.withIsHtml(true);
  }
}),
origin: vsch/flexmark-java

@Override
public MutableDataHolder setIn(final MutableDataHolder dataHolder) {
  return toImmutable().setIn(dataHolder);
}
origin: vsch/flexmark-java

@Override
public boolean equals(final Object o) {
  if (this == o) return true;
  if (!(o instanceof TocOptions || o instanceof TocOptions.AsMutable)) return false;
  AsMutable options = o instanceof TocOptions.AsMutable ? (TocOptions.AsMutable) o : ((TocOptions) o).toMutable();
  if (levels != options.levels) return false;
  if (isTextOnly != options.isTextOnly) return false;
  if (isNumbered != options.isNumbered) return false;
  if (listType != options.listType) return false;
  if (isHtml != options.isHtml) return false;
  if (titleLevel != options.titleLevel) return false;
  if (!title.equals(options.title)) return false;
  if (!divClass.equals(options.divClass)) return false;
  if (!listClass.equals(options.listClass)) return false;
  if (rawTitleLevel != options.rawTitleLevel) return false;
  if (!rawTitle.equals(options.rawTitle)) return false;
  if (isAstAddOptions != options.isAstAddOptions) return false;
  if (isBlankLineSpacer != options.isBlankLineSpacer) return false;
  if (isCaseSensitiveTocTag != options.isCaseSensitiveTocTag) return false;
  return true;
}
origin: vsch/flexmark-java

public static String getSimTocPrefix(TocOptions options, TocOptions defaultOptions) {
  DelimitedBuilder out = new DelimitedBuilder(" ");
  out.append("[TOC").mark();
  SimTocOptionsParser optionsParser = new SimTocOptionsParser();
  out.append(optionsParser.getOptionText(options, defaultOptions));
  out.unmark().append("]:").mark().append('#').mark();
  String optionTitleHeading = options.getTitleHeading();
  String optionTitle = options.title;
  if (defaultOptions == null || !optionTitleHeading.equals(defaultOptions.getTitleHeading())) {
    if (!optionTitle.isEmpty()) {
      out.append('"');
      if (defaultOptions == null || options.titleLevel != defaultOptions.titleLevel) {
        out.append(optionTitleHeading);
      } else {
        out.append(optionTitle);
      }
      out.append('"').mark();
    } else {
      out.append("\"\"").mark();
    }
  }
  out.unmark().append("\n").unmark();
  return out.toString();
}
origin: vsch/flexmark-java

if (newLevels != 0) result = result.withLevels(newLevels);
origin: vsch/flexmark-java

  @Override
  public TocOptions setOptions(TocOptions options) {
    return options.withIsTextOnly(true);
  }
}),
origin: vsch/flexmark-java

  @Override
  public TocOptions setOptions(TocOptions options) {
    return options.withIsNumbered(true);
  }
}),
origin: com.vladsch.flexmark/flexmark-profile-pegdown

options.set(TocExtension.LEVELS, TocOptions.getLevels(2, 3));
origin: vsch/flexmark-java

  @Override
  public TocOptions setOptions(TocOptions options) {
    return options.withIsHtml(false);
  }
}),
origin: com.vladsch.flexmark/flexmark-ext-toc

@Override
public MutableDataHolder setIn(final MutableDataHolder dataHolder) {
  return toImmutable().setIn(dataHolder);
}
origin: com.vladsch.flexmark/flexmark-ext-toc

@Override
public boolean equals(final Object o) {
  if (this == o) return true;
  if (!(o instanceof TocOptions || o instanceof TocOptions.AsMutable)) return false;
  AsMutable options = o instanceof TocOptions.AsMutable ? (TocOptions.AsMutable) o : ((TocOptions) o).toMutable();
  if (levels != options.levels) return false;
  if (isTextOnly != options.isTextOnly) return false;
  if (isNumbered != options.isNumbered) return false;
  if (listType != options.listType) return false;
  if (isHtml != options.isHtml) return false;
  if (titleLevel != options.titleLevel) return false;
  if (!title.equals(options.title)) return false;
  if (!divClass.equals(options.divClass)) return false;
  if (!listClass.equals(options.listClass)) return false;
  if (rawTitleLevel != options.rawTitleLevel) return false;
  if (!rawTitle.equals(options.rawTitle)) return false;
  if (isAstAddOptions != options.isAstAddOptions) return false;
  if (isBlankLineSpacer != options.isBlankLineSpacer) return false;
  if (isCaseSensitiveTocTag != options.isCaseSensitiveTocTag) return false;
  return true;
}
origin: com.vladsch.flexmark/flexmark-ext-toc

public static String getSimTocPrefix(TocOptions options, TocOptions defaultOptions) {
  DelimitedBuilder out = new DelimitedBuilder(" ");
  out.append("[TOC").mark();
  SimTocOptionsParser optionsParser = new SimTocOptionsParser();
  out.append(optionsParser.getOptionText(options, defaultOptions));
  out.unmark().append("]:").mark().append('#').mark();
  String optionTitleHeading = options.getTitleHeading();
  String optionTitle = options.title;
  if (defaultOptions == null || !optionTitleHeading.equals(defaultOptions.getTitleHeading())) {
    if (!optionTitle.isEmpty()) {
      out.append('"');
      if (defaultOptions == null || options.titleLevel != defaultOptions.titleLevel) {
        out.append(optionTitleHeading);
      } else {
        out.append(optionTitle);
      }
      out.append('"').mark();
    } else {
      out.append("\"\"").mark();
    }
  }
  out.unmark().append("\n").unmark();
  return out.toString();
}
origin: com.vladsch.flexmark/flexmark-ext-toc

if (newLevels != 0) result = result.withLevels(newLevels);
origin: vsch/flexmark-java

@Override
public TocOptions toImmutable() {
  return new TocOptions(this);
}
com.vladsch.flexmark.ext.toc.internalTocOptions

Most used methods

  • getLevels
  • <init>
  • getTitleHeading
  • isLevelIncluded
  • setIn
  • toMutable
  • withIsHtml
  • withIsNumbered
  • withIsTextOnly
  • withLevels
  • withListType
  • withTitle
  • withListType,
  • withTitle

Popular in Java

  • Updating database using SQL prepared statement
  • setContentView (Activity)
  • getExternalFilesDir (Context)
  • notifyDataSetChanged (ArrayAdapter)
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • JFileChooser (javax.swing)
  • FileUtils (org.apache.commons.io)
    General file manipulation utilities. Facilities are provided in the following areas: * writing to a
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
  • Scheduler (org.quartz)
    This is the main interface of a Quartz Scheduler. A Scheduler maintains a registry of org.quartz.Job
  • Top 12 Jupyter Notebook Extensions
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now