com.atlassian.confluence.plugins.gadgets.migrator
Class GadgetMacroMigrator

java.lang.Object
  extended by com.atlassian.confluence.plugins.gadgets.migrator.GadgetMacroMigrator
All Implemented Interfaces:
MacroMigration

public class GadgetMacroMigrator
extends Object
implements MacroMigration

Migrates wiki-markup macros to XHTML. This involves moving the gadget preferences from the body into a "preferences" parameter.


Constructor Summary
GadgetMacroMigrator()
           
 
Method Summary
 MacroDefinition migrate(MacroDefinition macroDefinition, ConversionContext conversionContext)
          Migrates a wiki-markup representation of a macro to XHTML
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GadgetMacroMigrator

public GadgetMacroMigrator()
Method Detail

migrate

public MacroDefinition migrate(MacroDefinition macroDefinition,
                               ConversionContext conversionContext)
Description copied from interface: MacroMigration
Migrates a wiki-markup representation of a macro to XHTML

Specified by:
migrate in interface MacroMigration
Parameters:
macroDefinition - The MacroDefinition in wiki-markup form.
conversionContext - The ConversionContext to perform the migration under.
Returns:
An XHTML representation of the macro.


Copyright © 2003-2011 Atlassian. All Rights Reserved.