com.atlassian.confluence.content.render.xhtml.storage.macro
Class TransformNonUserMacroCondition

java.lang.Object
  extended by com.atlassian.confluence.content.render.xhtml.storage.macro.TransformNonUserMacroCondition
All Implemented Interfaces:
MacroBodyTransformationCondition

public class TransformNonUserMacroCondition
extends java.lang.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:

Until we find a way to represent INLINE macros with nested macros and block markup, we should keep this condition around.


Constructor Summary
TransformNonUserMacroCondition(MacroManager xhtmlMacroManager)
           
 
Method Summary
 boolean shouldTransform(java.lang.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
 

Constructor Detail

TransformNonUserMacroCondition

public TransformNonUserMacroCondition(MacroManager xhtmlMacroManager)
Method Detail

shouldTransform

public boolean shouldTransform(java.lang.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-2013 Atlassian. All Rights Reserved.