org.xwiki.rendering.internal.transformation.macro
Class DefaultMacroTransformationConfiguration

java.lang.Object
  extended by org.xwiki.rendering.internal.transformation.macro.DefaultMacroTransformationConfiguration
All Implemented Interfaces:
MacroTransformationConfiguration

@Component
@Singleton
public class DefaultMacroTransformationConfiguration
extends Object
implements MacroTransformationConfiguration

Basic default implementation to be used when using the XWiki Rendering system standalone.

Since:
2.6RC1
Version:
$Id$

Constructor Summary
DefaultMacroTransformationConfiguration()
           
 
Method Summary
 void addCategory(MacroId macroId, String category)
           
 Properties getCategories()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultMacroTransformationConfiguration

public DefaultMacroTransformationConfiguration()
Method Detail

getCategories

public Properties getCategories()

Specified by:
getCategories in interface MacroTransformationConfiguration
Returns:
the category names to use for the macros. These are the categories under which they'll be listed in UIs for example. If a category for a macro is null then the category defined in the macro descriptor (ie defined by the macro author) will be used
See Also:
MacroTransformationConfiguration.getCategories()

addCategory

public void addCategory(MacroId macroId,
                        String category)
Parameters:
macroId - the id of the macro for which to set a category
category - the category name to set


Copyright © 2004-2011 XWiki. All Rights Reserved.