public class DescriptionListEntryImpl extends StructuralNodeImpl implements DescriptionListEntry
rubyNode, runtimeSUBSTITUTION_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, getContent, getContentModel, getLevel, getSourceLocation, getStyle, getSubstitutions, getTitle, isSubstitutionEnabled, prependSubstitution, removeSubstitution, setStyle, setSubstitutions, setTitle, style, titleaddRole, 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, 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 DescriptionListEntryImpl(org.jruby.runtime.builtin.IRubyObject listDelegate)
public java.util.List<ListItem> getTerms()
getTerms in interface DescriptionListEntrypublic ListItem getDescription()
getDescription in interface DescriptionListEntrypublic 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 DescriptionListEntrydescription - The new description for this description list entry,