public class DocumentImpl extends StructuralNodeImpl implements Document
rubyNode, runtime
SUBSTITUTION_ATTRIBUTES, SUBSTITUTION_MACROS, SUBSTITUTION_POST_REPLACEMENTS, SUBSTITUTION_QUOTES, SUBSTITUTION_REPLACEMENTS, SUBSTITUTION_SPECIAL_CHARACTERS
Constructor and Description |
---|
DocumentImpl(org.jruby.runtime.builtin.IRubyObject document) |
Modifier and Type | Method and Description |
---|---|
boolean |
basebackend(java.lang.String backend)
Deprecated.
|
java.lang.String |
doctitle()
Deprecated.
|
int |
getAndIncrementCounter(java.lang.String name)
Gets the current counter with the given name and increases its value.
|
int |
getAndIncrementCounter(java.lang.String name,
int initialValue)
Gets the current counter with the given name and increases its value.
|
java.util.List<Author> |
getAuthors()
Gets the author(s) information as defined in the author line
in the document header, or in author & email attributes.
|
Catalog |
getCatalog()
The catalog contains data collected by asciidoctor that is useful to a converter.
|
java.lang.String |
getDoctitle() |
java.util.Map<java.lang.Object,java.lang.Object> |
getOptions() |
RevisionInfo |
getRevisionInfo()
The revision information with: date, number and remark.
|
Title |
getStructuredDoctitle() |
boolean |
isBasebackend(java.lang.String backend) |
boolean |
isSourcemap() |
void |
setSourcemap(boolean state)
Toggles the sourcemap option.
|
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
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
public boolean isBasebackend(java.lang.String backend)
isBasebackend
in interface Document
@Deprecated public boolean basebackend(java.lang.String backend)
basebackend
in interface Document
public java.util.Map<java.lang.Object,java.lang.Object> getOptions()
getOptions
in interface Document
public Title getStructuredDoctitle()
getStructuredDoctitle
in interface Document
Title
public java.lang.String getDoctitle()
getDoctitle
in interface Document
Title
@Deprecated public java.lang.String doctitle()
public java.util.List<Author> getAuthors()
Document
getAuthors
in interface Document
public int getAndIncrementCounter(java.lang.String name)
Document
getAndIncrementCounter
in interface Document
public int getAndIncrementCounter(java.lang.String name, int initialValue)
Document
getAndIncrementCounter
in interface Document
public boolean isSourcemap()
isSourcemap
in interface Document
public void setSourcemap(boolean state)
Document
setSourcemap
in interface Document
state
- The state in which to put the sourcemap (true = on, false = off).public Catalog getCatalog()
Document
getCatalog
in interface Document
public RevisionInfo getRevisionInfo()
Document
getRevisionInfo
in interface Document