Package org.asciidoctor.ast
Interface ListItem
-
- All Superinterfaces:
ContentNode
,StructuralNode
- All Known Implementing Classes:
ListItemImpl
public interface ListItem extends StructuralNode
-
-
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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.String
getMarker()
java.lang.String
getSource()
java.lang.String
getText()
boolean
hasText()
void
setSource(java.lang.String source)
Sets the source of the ListItem.-
Methods inherited from interface org.asciidoctor.ast.ContentNode
addRole, getAttribute, getAttribute, getAttribute, getAttributes, getContext, getDocument, getId, getNodeName, getParent, getReftext, getRole, getRoles, hasAttribute, hasAttribute, hasRole, iconUri, imageUri, imageUri, isAttribute, isAttribute, isBlock, isInline, isOption, isReftext, isRole, mediaUri, normalizeWebPath, readAsset, removeRole, setAttribute, setContext, setId
-
Methods inherited from interface org.asciidoctor.ast.StructuralNode
addSubstitution, append, convert, findBy, getBlocks, getCaption, getContent, getContentModel, getLevel, getSourceLocation, getStyle, getSubstitutions, getTitle, isSubstitutionEnabled, prependSubstitution, removeSubstitution, setCaption, setLevel, setStyle, setSubstitutions, setTitle
-
-
-
-
Method Detail
-
getMarker
java.lang.String getMarker()
-
getText
java.lang.String getText()
- Returns:
- The text of the cell including substitutions being applied.
- Throws:
java.lang.RuntimeException
- when no text is set. Consider callinghasText()
before calling this method.
-
getSource
java.lang.String getSource()
- Returns:
- The text of the cell without substitutions being applied.
-
setSource
void setSource(java.lang.String source)
Sets the source of the ListItem.- Parameters:
source
- The source of this ListItem, substitutions will still be applied.
-
hasText
boolean hasText()
-
-