Class ParsedFrontMatter
- All Implemented Interfaces:
BasicFrontMatterInfo,FrontMatterInfo,HasDiagnostics
-
Field Summary
Fields inherited from interface io.nosqlbench.nb.api.markdown.types.BasicFrontMatterInfo
TITLE, WEIGHTFields inherited from interface io.nosqlbench.nb.api.markdown.types.FrontMatterInfo
AGGREGATE, FrontMatterKeyWords, INCLUDED, SCOPES, TOPICS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanAggregation patterns coalesce all the topics that they match into a seamless logical section of content.getDiagnostics(List<String> buffer) If a markdown source is flagged for use in a specific doc scope, then you can filter for that scope when you ask for markdown.If content is included in an item from another topic, then the topic name with which the additional content was added is in the inclueded list of topics.getTitle()Topics in this service are taxonomically hierarchical, and use the same naming convention as relative file paths.intinthashCode()voidvoidsetWeight(int weight) toString()withIncluded(List<String> included) withTopics(List<String> assigning)
-
Constructor Details
-
ParsedFrontMatter
-
-
Method Details
-
getTitle
- Specified by:
getTitlein interfaceBasicFrontMatterInfo- Specified by:
getTitlein interfaceFrontMatterInfo- Returns:
- A title for the given markdown source file.
-
getWeight
public int getWeight()- Specified by:
getWeightin interfaceBasicFrontMatterInfo- Specified by:
getWeightin interfaceFrontMatterInfo- Returns:
- A weight for the given markdown source file.
-
getTopics
Description copied from interface:FrontMatterInfoTopics in this service are taxonomically hierarchical, and use the same naming convention as relative file paths. (In a *NIX system, meaning forward slashes as path separators).
The end name on a topic is considered the local topic name. The leading names before this local topic name are considered nested categories. Taken together, these categories (in hierarchic ordered form) are the general category.
A topic and the location of the markdown content it is part of are NOT bound together.
- Specified by:
getTopicsin interfaceFrontMatterInfo- Returns:
- A list of categories
-
getIncluded
Description copied from interface:FrontMatterInfoIf content is included in an item from another topic, then the topic name with which the additional content was added is in the inclueded list of topics.
This is distinct from
FrontMatterInfo.getTopics(), which is not modified by the included topic names.- Specified by:
getIncludedin interfaceFrontMatterInfo- Returns:
- A list of included topics.
-
getAggregations
Description copied from interface:FrontMatterInfoAggregation patterns coalesce all the topics that they match into a seamless logical section of content. All source markdown files which have a topic which is matched by at least one of the aggregation patterns is included in the order of their weight.
Aggregation patterns are simple regexes. It is possible to have multiple patterns as well as content that is referenced by multiple aggregations, from the same or different source aggregating topics.
- Specified by:
getAggregationsin interfaceFrontMatterInfo- Returns:
- A list of aggregation patterns
-
getDocScopes
Description copied from interface:FrontMatterInfoIf a markdown source is flagged for use in a specific doc scope, then you can filter for that scope when you ask for markdown.Markdown content which contains zero scopes should explicitly return
DocScope.NONE. Markdown content which contains one or more scopes should explicitly addDocScope.ANYto the returned set. Markdown should never be tagged with ANY or NONE in the source content. Readers should throw an error if this is detected.- Specified by:
getDocScopesin interfaceFrontMatterInfo- Returns:
- A list of DocScopes for which this markdown should be used.
-
getDiagnostics
- Specified by:
getDiagnosticsin interfaceHasDiagnostics
-
getDiagnostics
- Specified by:
getDiagnosticsin interfaceHasDiagnostics
-
withTopics
-
withIncluded
-
toString
-
equals
-
hashCode
-
setTitle
-
setWeight
public void setWeight(int weight)
-