Class CodeDocFormat.CodeDocFormatAsciiDoc
java.lang.Object
io.github.mmm.code.api.doc.CodeDocFormat
io.github.mmm.code.api.doc.CodeDocFormat.CodeDocFormatAsciiDoc
- Enclosing class:
CodeDocFormat
- Since:
- 1.0.0
- Author:
- Joerg Hohwiller (hohwille at users.sourceforge.net)
-
Nested Class Summary
Nested classes/interfaces inherited from class CodeDocFormat
CodeDocFormat.CodeDocFormatAsciiDoc, CodeDocFormat.CodeDocFormatHtml, CodeDocFormat.CodeDocFormatPlainText, CodeDocFormat.CodeDocFormatRaw -
Field Summary
Fields inherited from class CodeDocFormat
ASCII_DOC, HTML, PLAIN_TEXT, RAW -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanreplaceDocTag(String tag, Supplier<CodeDocLink> link, String text) replaceXmlTag(Tag tag) toString()
-
Constructor Details
-
CodeDocFormatAsciiDoc
protected CodeDocFormatAsciiDoc()
-
-
Method Details
-
isReplaceXmlTags
public boolean isReplaceXmlTags()- Specified by:
isReplaceXmlTagsin classCodeDocFormat- Returns:
trueif XML tags shall be parsed andreplaced,falseotherwise (if they shall be kept unmodified).
-
replaceXmlTag
- Specified by:
replaceXmlTagin classCodeDocFormat- Parameters:
tag- the XMLTagto replace.- Returns:
- the replacement.
-
replaceDocTag
- Specified by:
replaceDocTagin classCodeDocFormat- Parameters:
tag- the documentation tag such asCodeDoc.TAG_CODEorCodeDoc.TAG_LINK.link- the optionalSupplierused to resolve aCodeDocLinkin case oflink,linkplain, orvaluetag. Otherwisenull.text- the plain text.- Returns:
- the tag converted to this format.
-
toString
- Specified by:
toStringin classCodeDocFormat
-