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 MarkupMultilinecopy()Provides a copy of the data value associated with the Datatype instance.static MarkupMultilinefromHtml(String html)Convert the provided HTML string into markup.static MarkupMultilinefromMarkdown(String markdown)Convert the provided markdown string into markup.FlexmarkFactorygetFlexmarkFactory()booleanisBlock()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:ICustomJavaDataTypeProvides a copy of the data value associated with the Datatype instance.- Returns:
- the copy
-
isBlock
public boolean isBlock()
Description copied from interface:IMarkupStringDetermine if the Markup consists of block elements.- Returns:
trueif the markup consists of block elements, orfalseotherwise
-
-