Class MarkupMultiline
- java.lang.Object
-
- gov.nist.secauto.metaschema.core.datatype.markup.AbstractMarkupString<MarkupMultiline>
-
- gov.nist.secauto.metaschema.core.datatype.markup.MarkupMultiline
-
- All Implemented Interfaces:
ICustomJavaDataType<MarkupMultiline>
,IMarkupString<MarkupMultiline>
public class MarkupMultiline extends AbstractMarkupString<MarkupMultiline>
-
-
Constructor Summary
Constructors Constructor Description MarkupMultiline(com.vladsch.flexmark.util.ast.Document astNode)
Construct a new multiline markup instance.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description MarkupMultiline
copy()
Provides a copy of the data value associated with the Datatype instance.static MarkupMultiline
fromHtml(String html)
Convert the provided HTML string into markup.static MarkupMultiline
fromMarkdown(String markdown)
Convert the provided markdown string into markup.FlexmarkFactory
getFlexmarkFactory()
boolean
isBlock()
Determine if the Markup consists of block elements.-
Methods inherited from class gov.nist.secauto.metaschema.core.datatype.markup.AbstractMarkupString
getDocument, getInserts, getInserts, getNodesAsStream, parseHtml, parseMarkdown, toHtml, toMarkdown, toMarkdown, toString, toXHtml, writeXHtml, writeXHtml
-
-
-
-
Constructor Detail
-
MarkupMultiline
public MarkupMultiline(@NonNull com.vladsch.flexmark.util.ast.Document astNode)
Construct a new multiline markup instance.- Parameters:
astNode
- the parsed markup AST
-
-
Method Detail
-
fromHtml
@NonNull public static MarkupMultiline fromHtml(@NonNull String html)
Convert the provided HTML string into markup.- Parameters:
html
- the HTML- Returns:
- the multiline markup instance
-
fromMarkdown
@NonNull public static MarkupMultiline fromMarkdown(@NonNull String markdown)
Convert the provided markdown string into markup.- Parameters:
markdown
- the markup- Returns:
- the multiline markup instance
-
getFlexmarkFactory
public FlexmarkFactory getFlexmarkFactory()
-
copy
public MarkupMultiline copy()
Description copied from interface:ICustomJavaDataType
Provides a copy of the data value associated with the Datatype instance.- Returns:
- the copy
-
isBlock
public boolean isBlock()
Description copied from interface:IMarkupString
Determine if the Markup consists of block elements.- Returns:
true
if the markup consists of block elements, orfalse
otherwise
-
-