public class StructuralNodeImpl extends ContentNodeImpl implements StructuralNode
rubyNode, runtimeSUBSTITUTION_ATTRIBUTES, SUBSTITUTION_MACROS, SUBSTITUTION_POST_REPLACEMENTS, SUBSTITUTION_QUOTES, SUBSTITUTION_REPLACEMENTS, SUBSTITUTION_SPECIAL_CHARACTERS| Constructor and Description |
|---|
StructuralNodeImpl(org.jruby.runtime.builtin.IRubyObject blockDelegate) |
| Modifier and Type | Method and Description |
|---|---|
void |
addSubstitution(java.lang.String substitution)
Adds the given substitution to this node at the end of the substitution list.
|
void |
append(StructuralNode block)
Appends a new child block as the last block to this block.
|
java.util.List<StructuralNode> |
blocks()
Deprecated.
|
java.lang.Object |
content()
Deprecated.
|
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.String |
getCaption() |
java.lang.Object |
getContent() |
java.lang.String |
getContentModel()
Returns the content model.
|
int |
getLevel() |
Cursor |
getSourceLocation()
Returns the source location of this block.
|
java.lang.String |
getStyle() |
java.util.List<java.lang.String> |
getSubstitutions()
Returns the list of enabled substitutions.
|
java.lang.String |
getTitle() |
boolean |
isSubstitutionEnabled(java.lang.String substitution) |
void |
prependSubstitution(java.lang.String substitution)
Adds the given substitution to this node at the beginning of the substitution list.
|
void |
removeSubstitution(java.lang.String substitution)
Removes the given substitution from this node.
|
void |
setCaption(java.lang.String caption) |
void |
setStyle(java.lang.String style) |
void |
setSubstitutions(java.lang.String... substitutions)
Sets the given substitutions on this node overwriting all other substitutions.
|
void |
setTitle(java.lang.String title) |
java.lang.String |
style()
Deprecated.
|
java.lang.String |
title()
Deprecated.
|
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, setIdgetBoolean, getInt, getList, getProperty, getRubyObject, getRubyProperty, getRuntime, getString, getSymbol, setBoolean, setRubyProperty, setString, setSymbol, toJava, toJavaclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddRole, 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, setIdpublic StructuralNodeImpl(org.jruby.runtime.builtin.IRubyObject blockDelegate)
@Deprecated public java.lang.String title()
title in interface StructuralNodepublic java.lang.String getTitle()
getTitle in interface StructuralNodepublic void setTitle(java.lang.String title)
setTitle in interface StructuralNodepublic java.lang.String getCaption()
getCaption in interface StructuralNodepublic void setCaption(java.lang.String caption)
setCaption in interface StructuralNode@Deprecated public java.lang.String style()
style in interface StructuralNodepublic java.lang.String getStyle()
getStyle in interface StructuralNodepublic void setStyle(java.lang.String style)
setStyle in interface StructuralNode@Deprecated public java.util.List<StructuralNode> blocks()
blocks in interface StructuralNodepublic java.util.List<StructuralNode> getBlocks()
getBlocks in interface StructuralNodepublic void append(StructuralNode block)
StructuralNodeappend in interface StructuralNodeblock - The new child block added as last child to this block.@Deprecated public java.lang.Object content()
content in interface StructuralNodepublic java.lang.Object getContent()
getContent in interface StructuralNodepublic java.lang.String convert()
convert in interface StructuralNodepublic int getLevel()
getLevel in interface StructuralNodepublic Cursor getSourceLocation()
StructuralNodesourcemap option is enabled when loading or rendering the document.getSourceLocation in interface StructuralNodenull if the sourcemap option is not enabled when loading the document.public java.lang.String getContentModel()
StructuralNodegetContentModel in interface StructuralNodeContentModelpublic java.util.List<java.lang.String> getSubstitutions()
StructuralNodegetSubstitutions in interface StructuralNode["specialcharacters", "quotes", "attributes", "replacements", "macros", "post_replacements"] for paragraphs.public boolean isSubstitutionEnabled(java.lang.String substitution)
isSubstitutionEnabled in interface StructuralNodesubstitution - the name of a substitution, e.g. StructuralNode.SUBSTITUTION_POST_REPLACEMENTStrue if the name of the given substitution is enabled.public void removeSubstitution(java.lang.String substitution)
StructuralNoderemoveSubstitution in interface StructuralNodesubstitution - the name of a substitution, e.g. StructuralNode.SUBSTITUTION_QUOTESpublic void addSubstitution(java.lang.String substitution)
StructuralNodeaddSubstitution in interface StructuralNodesubstitution - the name of a substitution, e.g. StructuralNode.SUBSTITUTION_MACROSpublic void prependSubstitution(java.lang.String substitution)
StructuralNodeprependSubstitution in interface StructuralNodesubstitution - the name of a substitution, e.g. StructuralNode.SUBSTITUTION_ATTRIBUTESpublic void setSubstitutions(java.lang.String... substitutions)
StructuralNodesetSubstitutions in interface StructuralNodesubstitutions - the name of a substitution, e.g. StructuralNode.SUBSTITUTION_SPECIAL_CHARACTERSpublic java.util.List<StructuralNode> findBy(java.util.Map<java.lang.Object,java.lang.Object> selector)
findBy in interface StructuralNode