Package org.asciidoctor.ast
Interface ListItem
- All Superinterfaces:
ContentNode
,StructuralNode
- All Known Implementing Classes:
ListItemImpl
-
Field Summary
Fields inherited from interface org.asciidoctor.ast.StructuralNode
SUBSTITUTION_ATTRIBUTES, SUBSTITUTION_MACROS, SUBSTITUTION_POST_REPLACEMENTS, SUBSTITUTION_QUOTES, SUBSTITUTION_REPLACEMENTS, SUBSTITUTION_SPECIAL_CHARACTERS
-
Method Summary
Methods inherited from interface org.asciidoctor.ast.ContentNode
addRole, context, document, getAttr, getAttr, getAttr, getAttribute, getAttribute, getAttribute, getAttributes, getContext, getDocument, getId, getNodeName, getParent, getReftext, getRole, getRoles, hasAttr, hasAttr, hasAttribute, hasAttribute, hasRole, iconUri, id, imageUri, imageUri, isAttr, isAttr, isAttribute, isAttribute, isBlock, isInline, isOption, isReftext, isRole, mediaUri, normalizeWebPath, parent, readAsset, removeRole, role, setAttr, setAttribute, setId
Methods inherited from interface org.asciidoctor.ast.StructuralNode
addSubstitution, append, blocks, content, convert, findBy, getBlocks, getCaption, getContent, getContentModel, getLevel, getSourceLocation, getStyle, getSubstitutions, getTitle, isSubstitutionEnabled, prependSubstitution, removeSubstitution, setCaption, setLevel, setStyle, setSubstitutions, setTitle, style, title
-
Method Details
-
getMarker
String getMarker() -
getText
String getText()- Returns:
- The text of the cell including substitutions being applied.
- Throws:
RuntimeException
- when no text is set. Consider callinghasText()
before calling this method.
-
getSource
String getSource()- Returns:
- The text of the cell without substitutions being applied.
-
setSource
Sets the source of the ListItem.- Parameters:
source
- The source of this ListItem, substitutions will still be applied.
-
hasText
boolean hasText()
-