Package org.asciidoctor.jruby.ast.impl
Class ContentNodeImpl
- java.lang.Object
-
- org.asciidoctor.jruby.internal.RubyObjectWrapper
-
- org.asciidoctor.jruby.ast.impl.ContentNodeImpl
-
- All Implemented Interfaces:
ContentNode
- Direct Known Subclasses:
ColumnImpl,PhraseNodeImpl,StructuralNodeImpl
public abstract class ContentNodeImpl extends RubyObjectWrapper implements ContentNode
-
-
Field Summary
-
Fields inherited from class org.asciidoctor.jruby.internal.RubyObjectWrapper
rubyNode, runtime
-
-
Constructor Summary
Constructors Constructor Description ContentNodeImpl(org.jruby.runtime.builtin.IRubyObject rubyNode)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidaddRole(java.lang.String role)java.lang.Stringcontext()Deprecated.Documentdocument()Deprecated.java.lang.ObjectgetAttr(java.lang.Object name)Deprecated.java.lang.ObjectgetAttr(java.lang.Object name, java.lang.Object defaultValue)Deprecated.java.lang.ObjectgetAttr(java.lang.Object name, java.lang.Object defaultValue, boolean inherit)Deprecated.java.lang.ObjectgetAttribute(java.lang.Object name)java.lang.ObjectgetAttribute(java.lang.Object name, java.lang.Object defaultValue)java.lang.ObjectgetAttribute(java.lang.Object name, java.lang.Object defaultValue, boolean inherit)java.util.Map<java.lang.String,java.lang.Object>getAttributes()java.lang.StringgetContext()DocumentgetDocument()java.lang.StringgetId()java.lang.StringgetNodeName()ContentNodegetParent()java.lang.StringgetReftext()java.lang.StringgetRole()java.util.List<java.lang.String>getRoles()booleanhasAttr(java.lang.Object name)Deprecated.booleanhasAttr(java.lang.Object name, boolean inherited)Deprecated.booleanhasAttribute(java.lang.Object name)booleanhasAttribute(java.lang.Object name, boolean inherited)booleanhasRole(java.lang.String role)java.lang.StringiconUri(java.lang.String name)java.lang.Stringid()Deprecated.java.lang.StringimageUri(java.lang.String targetImage)java.lang.StringimageUri(java.lang.String targetImage, java.lang.String assetDirKey)booleanisAttr(java.lang.Object name, java.lang.Object expected)Deprecated.booleanisAttr(java.lang.Object name, java.lang.Object expected, boolean inherit)Deprecated.booleanisAttribute(java.lang.Object name, java.lang.Object expected)booleanisAttribute(java.lang.Object name, java.lang.Object expected, boolean inherit)booleanisBlock()booleanisInline()booleanisOption(java.lang.Object name)booleanisReftext()booleanisRole()java.lang.StringmediaUri(java.lang.String target)java.lang.StringnormalizeWebPath(java.lang.String path, java.lang.String start, boolean preserveUriTarget)ContentNodeparent()Deprecated.java.lang.StringreadAsset(java.lang.String path, java.util.Map<java.lang.Object,java.lang.Object> opts)voidremoveRole(java.lang.String role)java.lang.Stringrole()Deprecated.booleansetAttr(java.lang.Object name, java.lang.Object value, boolean overwrite)Deprecated.booleansetAttribute(java.lang.Object name, java.lang.Object value, boolean overwrite)voidsetContext(java.lang.String context)voidsetId(java.lang.String id)-
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
-
-
-
-
Method Detail
-
id
@Deprecated public java.lang.String id()
Deprecated.- Specified by:
idin interfaceContentNode- Returns:
- A unique ID for this node
-
getId
public java.lang.String getId()
- Specified by:
getIdin interfaceContentNode- Returns:
- A unique ID for this node
-
setId
public void setId(java.lang.String id)
- Specified by:
setIdin interfaceContentNode
-
context
@Deprecated public java.lang.String context()
Deprecated.- Specified by:
contextin interfaceContentNode
-
getContext
public java.lang.String getContext()
- Specified by:
getContextin interfaceContentNode
-
setContext
public void setContext(java.lang.String context)
- Specified by:
setContextin interfaceContentNode
-
parent
@Deprecated public ContentNode parent()
Deprecated.- Specified by:
parentin interfaceContentNode
-
getParent
public ContentNode getParent()
- Specified by:
getParentin interfaceContentNode
-
document
@Deprecated public Document document()
Deprecated.- Specified by:
documentin interfaceContentNode
-
getDocument
public Document getDocument()
- Specified by:
getDocumentin interfaceContentNode
-
getNodeName
public java.lang.String getNodeName()
- Specified by:
getNodeNamein interfaceContentNode
-
isInline
public boolean isInline()
- Specified by:
isInlinein interfaceContentNode
-
isBlock
public boolean isBlock()
- Specified by:
isBlockin interfaceContentNode
-
getAttributes
public java.util.Map<java.lang.String,java.lang.Object> getAttributes()
- Specified by:
getAttributesin interfaceContentNode
-
getAttr
@Deprecated public java.lang.Object getAttr(java.lang.Object name, java.lang.Object defaultValue, boolean inherit)Deprecated.- Specified by:
getAttrin interfaceContentNode- Returns:
-
getAttr
@Deprecated public java.lang.Object getAttr(java.lang.Object name, java.lang.Object defaultValue)Deprecated.- Specified by:
getAttrin interfaceContentNode- Returns:
-
getAttr
@Deprecated public java.lang.Object getAttr(java.lang.Object name)
Deprecated.- Specified by:
getAttrin interfaceContentNode- Returns:
-
getAttribute
public java.lang.Object getAttribute(java.lang.Object name, java.lang.Object defaultValue, boolean inherit)- Specified by:
getAttributein interfaceContentNode
-
getAttribute
public java.lang.Object getAttribute(java.lang.Object name, java.lang.Object defaultValue)- Specified by:
getAttributein interfaceContentNode
-
getAttribute
public java.lang.Object getAttribute(java.lang.Object name)
- Specified by:
getAttributein interfaceContentNode
-
isAttr
@Deprecated public boolean isAttr(java.lang.Object name, java.lang.Object expected, boolean inherit)Deprecated.- Specified by:
isAttrin interfaceContentNode- Returns:
-
isAttr
@Deprecated public boolean isAttr(java.lang.Object name, java.lang.Object expected)Deprecated.- Specified by:
isAttrin interfaceContentNode- Returns:
-
isAttribute
public boolean isAttribute(java.lang.Object name, java.lang.Object expected, boolean inherit)- Specified by:
isAttributein interfaceContentNode- Returns:
-
isAttribute
public boolean isAttribute(java.lang.Object name, java.lang.Object expected)- Specified by:
isAttributein interfaceContentNode- Returns:
-
hasAttr
@Deprecated public boolean hasAttr(java.lang.Object name)
Deprecated.- Specified by:
hasAttrin interfaceContentNode- Returns:
trueif this node or the document has an attribute with the given name
-
hasAttr
@Deprecated public boolean hasAttr(java.lang.Object name, boolean inherited)Deprecated.- Specified by:
hasAttrin interfaceContentNode- Returns:
trueif the current node or depending on the inherited parameter the document has an attribute with the given name.
-
hasAttribute
public boolean hasAttribute(java.lang.Object name)
- Specified by:
hasAttributein interfaceContentNode- Returns:
trueif this node or the document has an attribute with the given name
-
hasAttribute
public boolean hasAttribute(java.lang.Object name, boolean inherited)- Specified by:
hasAttributein interfaceContentNode- Returns:
trueif the current node or depending on the inherited parameter the document has an attribute with the given name.
-
setAttr
@Deprecated public boolean setAttr(java.lang.Object name, java.lang.Object value, boolean overwrite)Deprecated.- Specified by:
setAttrin interfaceContentNode- Returns:
-
setAttribute
public boolean setAttribute(java.lang.Object name, java.lang.Object value, boolean overwrite)- Specified by:
setAttributein interfaceContentNode
-
isOption
public boolean isOption(java.lang.Object name)
- Specified by:
isOptionin interfaceContentNode
-
isRole
public boolean isRole()
- Specified by:
isRolein interfaceContentNode
-
getRole
public java.lang.String getRole()
- Specified by:
getRolein interfaceContentNode
-
role
@Deprecated public java.lang.String role()
Deprecated.- Specified by:
rolein interfaceContentNode
-
getRoles
public java.util.List<java.lang.String> getRoles()
- Specified by:
getRolesin interfaceContentNode
-
hasRole
public boolean hasRole(java.lang.String role)
- Specified by:
hasRolein interfaceContentNode
-
addRole
public void addRole(java.lang.String role)
- Specified by:
addRolein interfaceContentNode
-
removeRole
public void removeRole(java.lang.String role)
- Specified by:
removeRolein interfaceContentNode
-
isReftext
public boolean isReftext()
- Specified by:
isReftextin interfaceContentNode
-
getReftext
public java.lang.String getReftext()
- Specified by:
getReftextin interfaceContentNode
-
iconUri
public java.lang.String iconUri(java.lang.String name)
- Specified by:
iconUriin interfaceContentNode
-
mediaUri
public java.lang.String mediaUri(java.lang.String target)
- Specified by:
mediaUriin interfaceContentNode
-
imageUri
public java.lang.String imageUri(java.lang.String targetImage)
- Specified by:
imageUriin interfaceContentNode
-
imageUri
public java.lang.String imageUri(java.lang.String targetImage, java.lang.String assetDirKey)- Specified by:
imageUriin interfaceContentNode
-
readAsset
public java.lang.String readAsset(java.lang.String path, java.util.Map<java.lang.Object,java.lang.Object> opts)- Specified by:
readAssetin interfaceContentNode
-
normalizeWebPath
public java.lang.String normalizeWebPath(java.lang.String path, java.lang.String start, boolean preserveUriTarget)- Specified by:
normalizeWebPathin interfaceContentNode
-
-