Package org.asciidoctor.ast
Interface ContentNode
- All Known Subinterfaces:
Block
,Cell
,Column
,DescriptionList
,Document
,List
,ListItem
,PhraseNode
,Section
,StructuralNode
,Table
- All Known Implementing Classes:
BlockImpl
,CellImpl
,ColumnImpl
,ContentNodeImpl
,DescriptionListEntryImpl
,DescriptionListImpl
,DocumentImpl
,ListImpl
,ListItemImpl
,PhraseNodeImpl
,SectionImpl
,StructuralNodeImpl
,TableImpl
public interface ContentNode
-
Method Summary
Modifier and TypeMethodDescriptionvoid
context()
Deprecated.Use getContext() instead.document()
Deprecated.Use getDocument() instead.Deprecated.UsegetAttribute(Object)
insteadDeprecated.UsegetAttribute(Object, Object)
insteadDeprecated.UsegetAttribute(Object, Object, boolean)
insteadgetAttribute
(Object name) getAttribute
(Object name, Object defaultValue) getAttribute
(Object name, Object defaultValue, boolean inherit) getId()
getRole()
getRoles()
boolean
Deprecated.UsehasAttribute(Object)
insteadboolean
Deprecated.UsehasAttribute(Object, boolean)
insteadboolean
hasAttribute
(Object name) boolean
hasAttribute
(Object name, boolean inherited) boolean
id()
Deprecated.Please usegetId()
boolean
Deprecated.UseisAttribute(Object, Object)
instead.boolean
Deprecated.UseisAttribute(Object, Object, boolean)
instead.boolean
isAttribute
(Object name, Object expected) boolean
isAttribute
(Object name, Object expected, boolean inherit) boolean
isBlock()
boolean
isInline()
boolean
boolean
boolean
isRole()
normalizeWebPath
(String path, String start, boolean preserveUriTarget) parent()
Deprecated.Use getParent() instead.void
removeRole
(String role) role()
Deprecated.Use getRole() instead.boolean
Deprecated.UsesetAttribute(Object, Object, boolean)
instead.boolean
setAttribute
(Object name, Object value, boolean overwrite) void
-
Method Details
-
id
Deprecated.Please usegetId()
- Returns:
- A unique ID for this node
-
getId
String getId()- Returns:
- A unique ID for this node
-
setId
-
getNodeName
String getNodeName() -
parent
Deprecated.Use getParent() instead. -
getParent
ContentNode getParent() -
context
Deprecated.Use getContext() instead. -
getContext
String getContext() -
document
Deprecated.Use getDocument() instead. -
getDocument
Document getDocument() -
isInline
boolean isInline() -
isBlock
boolean isBlock() -
getAttributes
-
getAttr
Deprecated.UsegetAttribute(Object, Object, boolean)
instead- Parameters:
name
-defaultValue
-inherit
-- Returns:
-
getAttr
Deprecated.UsegetAttribute(Object, Object)
instead- Parameters:
name
-defaultValue
-- Returns:
-
getAttr
Deprecated.UsegetAttribute(Object)
instead- Parameters:
name
-- Returns:
-
getAttribute
-
getAttribute
-
getAttribute
-
hasAttr
Deprecated.UsehasAttribute(Object)
instead- Parameters:
name
-- Returns:
true
if this node or the document has an attribute with the given name
-
hasAttr
Deprecated.UsehasAttribute(Object, boolean)
instead- Parameters:
name
-inherited
-- Returns:
true
if the current node or depending on the inherited parameter the document has an attribute with the given name.
-
hasAttribute
- Parameters:
name
-- Returns:
true
if this node or the document has an attribute with the given name
-
hasAttribute
- Parameters:
name
-inherited
-- Returns:
true
if the current node or depending on the inherited parameter the document has an attribute with the given name.
-
isAttr
Deprecated.UseisAttribute(Object, Object)
instead.- Parameters:
name
-expected
-- Returns:
-
isAttr
Deprecated.UseisAttribute(Object, Object, boolean)
instead.- Parameters:
name
-expected
-inherit
-- Returns:
-
isAttribute
- Parameters:
name
-expected
-- Returns:
-
isAttribute
- Parameters:
name
-expected
-inherit
-- Returns:
-
setAttr
Deprecated.UsesetAttribute(Object, Object, boolean)
instead.- Parameters:
name
-value
-overwrite
-- Returns:
-
setAttribute
-
isOption
-
isRole
boolean isRole() -
hasRole
-
getRole
String getRole() -
role
Deprecated.Use getRole() instead. -
getRoles
-
addRole
-
removeRole
-
isReftext
boolean isReftext() -
getReftext
String getReftext() -
iconUri
-
mediaUri
-
imageUri
-
imageUri
-
readAsset
-
normalizeWebPath
-