Package org.asciidoctor.jruby.ast.impl
Class DescriptionListEntryImpl
- java.lang.Object
-
- org.asciidoctor.jruby.internal.RubyObjectWrapper
-
- org.asciidoctor.jruby.ast.impl.ContentNodeImpl
-
- org.asciidoctor.jruby.ast.impl.StructuralNodeImpl
-
- org.asciidoctor.jruby.ast.impl.DescriptionListEntryImpl
-
- All Implemented Interfaces:
ContentNode,DescriptionListEntry,StructuralNode
public class DescriptionListEntryImpl extends StructuralNodeImpl implements DescriptionListEntry
-
-
Field Summary
-
Fields inherited from class org.asciidoctor.jruby.internal.RubyObjectWrapper
rubyNode, runtime
-
Fields inherited from interface org.asciidoctor.ast.StructuralNode
SUBSTITUTION_ATTRIBUTES, SUBSTITUTION_MACROS, SUBSTITUTION_POST_REPLACEMENTS, SUBSTITUTION_QUOTES, SUBSTITUTION_REPLACEMENTS, SUBSTITUTION_SPECIAL_CHARACTERS
-
-
Constructor Summary
Constructors Constructor Description DescriptionListEntryImpl(org.jruby.runtime.builtin.IRubyObject listDelegate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ListItemgetDescription()java.util.List<ListItem>getTerms()voidsetDescription(ListItem description)Sets a new description for a description list item.-
Methods inherited from class org.asciidoctor.jruby.ast.impl.StructuralNodeImpl
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
-
Methods inherited from class org.asciidoctor.jruby.ast.impl.ContentNodeImpl
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, setContext, setId
-
Methods inherited from class org.asciidoctor.jruby.internal.RubyObjectWrapper
getBoolean, getInt, getList, getProperty, getRubyObject, getRubyProperty, getRuntime, getString, getSymbol, setBoolean, setInt, setRubyProperty, setString, setSymbol, toJava, toJava
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
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, setContext, setId
-
-
-
-
Method Detail
-
getTerms
public java.util.List<ListItem> getTerms()
- Specified by:
getTermsin interfaceDescriptionListEntry
-
getDescription
public ListItem getDescription()
- Specified by:
getDescriptionin interfaceDescriptionListEntry
-
setDescription
public void setDescription(ListItem description)
Description copied from interface:DescriptionListEntrySets a new description for a description list item. Description list items are ordinary ListItems and can be created using the factory methods of a processor:class MyTreeprocessor extends Treeprocessor() { public Document process(Document doc) { final String newDescription = "A new description for this entry."; DescriptionList dl = ... DescriptionListEntry dlEntry = ... dlEntry.setDescription(createListItem(dl, newDescription)); return doc; } }- Specified by:
setDescriptionin interfaceDescriptionListEntry- Parameters:
description- The new description for this description list entry,
-
-