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 TypeMethodDescriptionvoidcontext()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()booleanDeprecated.UsehasAttribute(Object)insteadbooleanDeprecated.UsehasAttribute(Object, boolean)insteadbooleanhasAttribute(Object name) booleanhasAttribute(Object name, boolean inherited) booleanid()Deprecated.Please usegetId()booleanDeprecated.UseisAttribute(Object, Object)instead.booleanDeprecated.UseisAttribute(Object, Object, boolean)instead.booleanisAttribute(Object name, Object expected) booleanisAttribute(Object name, Object expected, boolean inherit) booleanisBlock()booleanisInline()booleanbooleanbooleanisRole()normalizeWebPath(String path, String start, boolean preserveUriTarget) parent()Deprecated.Use getParent() instead.voidremoveRole(String role) role()Deprecated.Use getRole() instead.booleanDeprecated.UsesetAttribute(Object, Object, boolean)instead.booleansetAttribute(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:
trueif this node or the document has an attribute with the given name
-
hasAttr
Deprecated.UsehasAttribute(Object, boolean)instead- Parameters:
name-inherited-- Returns:
trueif the current node or depending on the inherited parameter the document has an attribute with the given name.
-
hasAttribute
- Parameters:
name-- Returns:
trueif this node or the document has an attribute with the given name
-
hasAttribute
- Parameters:
name-inherited-- Returns:
trueif 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
-