Class AttachmentMacroVisitor
java.lang.Object
com.atlassian.confluence.internal.content.collab.AttachmentMacroVisitor
- All Implemented Interfaces:
XhtmlVisitor
Provides a handler for detecting if a page contains an atlassian page layout. If so the layout
name will be parsed out
-
Constructor Summary
ConstructorsConstructorDescriptionAttachmentMacroVisitor
(List<Attachment> attachments, ContentEntityObject contentEntityObject, ContentEntityObject parentCeo) -
Method Summary
Modifier and TypeMethodDescriptionboolean
handle
(XMLEvent xmlEvent, ConversionContext context) Called on each XMLEvent during a parse of an XHTML document.boolean
boolean
boolean
-
Constructor Details
-
AttachmentMacroVisitor
public AttachmentMacroVisitor(List<Attachment> attachments, ContentEntityObject contentEntityObject, ContentEntityObject parentCeo)
-
-
Method Details
-
handle
Description copied from interface:XhtmlVisitor
Called on each XMLEvent during a parse of an XHTML document.- Specified by:
handle
in interfaceXhtmlVisitor
- Returns:
- true if visiting should be halted immediately, false if it should continue
-
isMacroStarted
public boolean isMacroStarted() -
isAttachmentLinked
public boolean isAttachmentLinked() -
isContentLinked
public boolean isContentLinked()
-