public class StructuralNodeImpl extends ContentNodeImpl implements StructuralNode
rubyNode, runtime
Constructor and Description |
---|
StructuralNodeImpl(org.jruby.runtime.builtin.IRubyObject blockDelegate) |
Modifier and Type | Method and Description |
---|---|
void |
append(StructuralNode block)
Appends a new child block as the last block to this block.
|
java.util.List<StructuralNode> |
blocks() |
java.lang.Object |
content() |
java.lang.String |
convert() |
java.util.List<StructuralNode> |
findBy(java.util.Map<java.lang.Object,java.lang.Object> selector) |
java.util.List<StructuralNode> |
getBlocks() |
java.lang.Object |
getContent() |
int |
getLevel() |
Cursor |
getSourceLocation()
Returns the source location of this block.
|
java.lang.String |
getStyle() |
java.lang.String |
getTitle() |
void |
setTitle(java.lang.String title) |
java.lang.String |
style() |
java.lang.String |
title() |
addRole, context, document, getAttr, getAttr, getAttr, getAttributes, getContext, getDocument, getId, getNodeName, getParent, getReftext, getRole, getRoles, hasRole, iconUri, id, imageUri, imageUri, isAttr, isAttr, isBlock, isInline, isOption, isReftext, isRole, mediaUri, normalizeWebPath, parent, readAsset, removeRole, role, setAttr, setId
getBoolean, getInt, getList, getProperty, getRubyObject, getRubyProperty, getRuntime, getString, getSymbol, setRubyProperty, setString, setSymbol, toJava, toJava
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addRole, context, document, getAttr, getAttr, getAttr, getAttributes, getContext, getDocument, getId, getNodeName, getParent, getReftext, getRole, getRoles, hasRole, iconUri, id, imageUri, imageUri, isAttr, isAttr, isBlock, isInline, isOption, isReftext, isRole, mediaUri, normalizeWebPath, parent, readAsset, removeRole, role, setAttr, setId
public StructuralNodeImpl(org.jruby.runtime.builtin.IRubyObject blockDelegate)
public java.lang.String title()
title
in interface StructuralNode
public java.lang.String getTitle()
getTitle
in interface StructuralNode
public void setTitle(java.lang.String title)
setTitle
in interface StructuralNode
public java.lang.String style()
style
in interface StructuralNode
public java.lang.String getStyle()
getStyle
in interface StructuralNode
public java.util.List<StructuralNode> blocks()
blocks
in interface StructuralNode
public java.util.List<StructuralNode> getBlocks()
getBlocks
in interface StructuralNode
public void append(StructuralNode block)
StructuralNode
append
in interface StructuralNode
block
- The new child block added as last child to this block.public java.lang.Object content()
content
in interface StructuralNode
public java.lang.Object getContent()
getContent
in interface StructuralNode
public java.lang.String convert()
convert
in interface StructuralNode
public int getLevel()
getLevel
in interface StructuralNode
public Cursor getSourceLocation()
StructuralNode
sourcemap
option is enabled when loading or rendering the document.getSourceLocation
in interface StructuralNode
null
if the sourcemap
option is not enabled when loading the document.public java.util.List<StructuralNode> findBy(java.util.Map<java.lang.Object,java.lang.Object> selector)
findBy
in interface StructuralNode