public class DescriptionListEntryImpl extends StructuralNodeImpl implements DescriptionListEntry
rubyNode, runtime
SUBSTITUTION_ATTRIBUTES, SUBSTITUTION_MACROS, SUBSTITUTION_POST_REPLACEMENTS, SUBSTITUTION_QUOTES, SUBSTITUTION_REPLACEMENTS, SUBSTITUTION_SPECIAL_CHARACTERS
Constructor and Description |
---|
DescriptionListEntryImpl(org.jruby.runtime.builtin.IRubyObject listDelegate) |
Modifier and Type | Method and Description |
---|---|
ListItem |
getDescription() |
java.util.List<ListItem> |
getTerms() |
void |
setDescription(ListItem description)
Sets a new description for a description list item.
|
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
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, setId
getBoolean, getInt, getList, getProperty, getRubyObject, getRubyProperty, getRuntime, getString, getSymbol, setBoolean, setInt, setRubyProperty, setString, setSymbol, toJava, toJava
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
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, setId
public DescriptionListEntryImpl(org.jruby.runtime.builtin.IRubyObject listDelegate)
public java.util.List<ListItem> getTerms()
getTerms
in interface DescriptionListEntry
public ListItem getDescription()
getDescription
in interface DescriptionListEntry
public void setDescription(ListItem description)
DescriptionListEntry
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;
}
}
setDescription
in interface DescriptionListEntry
description
- The new description for this description list entry,