Package org.asciidoctor.ast
Interface Table
- All Superinterfaces:
ContentNode
,StructuralNode
- All Known Implementing Classes:
TableImpl
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic enum
static enum
-
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
Modifier and TypeMethodDescriptiongetBody()
getFrame()
Returns the frame attribute of the table that defines what frame to render around the table.getGrid()
Returns the grid attribute that defines what boundary lines to draw between rows and columns.boolean
void
Sets the frame attribute.void
Sets the value of the attribute.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
-
hasHeaderOption
boolean hasHeaderOption() -
getColumns
-
getHeader
-
getBody
-
getFrame
String getFrame()Returns the frame attribute of the table that defines what frame to render around the table. By default, the frame attribute is assigned theall
value, which draws a border on each side of the table. If you set the frame attribute, you can override the default value withtopbot
,sides
ornone
.- Returns:
- the frame attribute
-
setFrame
Sets the frame attribute.- Parameters:
frame
-all
,topbot
,sides
ornone
- See Also:
-
getGrid
String getGrid()Returns the grid attribute that defines what boundary lines to draw between rows and columns. By default the grid attribute is assigned theall
value, which draws lines around each cell. Alternative values arecols
to draw lines between columns,rows
to draw boundary lines between rows andnone
to draw no boundary lines- Returns:
- the value of the
grid
attribute, usually eitherall
,cols
,rows
ornone
-
setGrid
Sets the value of the attribute.- Parameters:
grid
- usually eitherall
,cols
,rows
ornone
- See Also:
-