Class ParsedMarkdown
java.lang.Object
io.nosqlbench.nb.api.markdown.aggregator.ParsedMarkdown
- All Implemented Interfaces:
HasDiagnostics,MarkdownInfo,java.lang.Comparable<MarkdownInfo>
public class ParsedMarkdown extends java.lang.Object implements MarkdownInfo, HasDiagnostics
TODO: Make this a value type
-
Constructor Summary
Constructors Constructor Description ParsedMarkdown(Content<?> content) -
Method Summary
Modifier and Type Method Description booleanequals(java.lang.Object o)java.lang.StringgetBody()java.util.List<java.lang.String>getDiagnostics()The buffer-less version ofgetDiagnostics(List)java.util.List<java.lang.String>getDiagnostics(java.util.List<java.lang.String> buffer)Get a list of diagnostic warnings that might help users know of issues in their markdown content before publication.FrontMatterInfogetFrontmatter()java.nio.file.PathgetPath()booleanhasAggregations()inthashCode()java.lang.StringtoString()MarkdownInfowithIncluded(java.util.List<java.lang.String> included)MarkdownInfowithTopics(java.util.List<java.lang.String> assigning)Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface io.nosqlbench.nb.api.markdown.types.MarkdownInfo
compareTo, getAggregators, getIncluded, getTopicGlobs, getTopics, hasAggregators, hasTopicGlobs, matchesTopicPattern
-
Constructor Details
-
Method Details
-
getPath
public java.nio.file.Path getPath()- Specified by:
getPathin interfaceMarkdownInfo
-
getBody
public java.lang.String getBody()- Specified by:
getBodyin interfaceMarkdownInfo
-
getFrontmatter
- Specified by:
getFrontmatterin interfaceMarkdownInfo
-
getDiagnostics
public java.util.List<java.lang.String> getDiagnostics(java.util.List<java.lang.String> buffer)Get a list of diagnostic warnings that might help users know of issues in their markdown content before publication.- Specified by:
getDiagnosticsin interfaceHasDiagnostics- Parameters:
buffer- A buffer object, for accumulating many lines of detail, if necessary.- Returns:
- The buffer, with possible additions
-
getDiagnostics
public java.util.List<java.lang.String> getDiagnostics()The buffer-less version ofgetDiagnostics(List)- Specified by:
getDiagnosticsin interfaceHasDiagnostics- Returns:
- a list of diagnostics lines, zero if there are none
-
hasAggregations
public boolean hasAggregations()- Specified by:
hasAggregationsin interfaceMarkdownInfo
-
withTopics
- Specified by:
withTopicsin interfaceMarkdownInfo
-
withIncluded
- Specified by:
withIncludedin interfaceMarkdownInfo
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()- Overrides:
hashCodein classjava.lang.Object
-