com.atlassian.confluence.content.render.xhtml.storage.macro
Class TransformNonUserMacroCondition
java.lang.Object
com.atlassian.confluence.content.render.xhtml.storage.macro.TransformNonUserMacroCondition
- All Implemented Interfaces:
- MacroBodyTransformationCondition
public class TransformNonUserMacroCondition
- extends Object
- implements MacroBodyTransformationCondition
Returns true if the specified macro is not a user macro.
This condition has been introduced for the sake of content that was migrated while it was on confxhtml (i.e. the CONFDEV, QA and tech writing spaces).
That is, this class is not relevant for customer data.
Specifically, there were user macros in these spaces that:
- produced INLINE output
- had rich text bodies that contain nested or block markup
Until we find a way to represent INLINE macros with nested macros and block markup, we should keep this condition around.
Method Summary |
boolean |
shouldTransform(String macroName)
Returns true if the macro body should be transformed, false otherwise. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TransformNonUserMacroCondition
public TransformNonUserMacroCondition(MacroManager xhtmlMacroManager)
shouldTransform
public boolean shouldTransform(String macroName)
- Description copied from interface:
MacroBodyTransformationCondition
- Returns true if the macro body should be transformed, false otherwise.
- Specified by:
shouldTransform
in interface MacroBodyTransformationCondition
- Parameters:
macroName
- macro name
Copyright © 2003-2012 Atlassian. All Rights Reserved.