org.xwiki.rendering.macro.wikibridge
Class WikiMacroDescriptor

java.lang.Object
  extended by org.xwiki.rendering.macro.wikibridge.WikiMacroDescriptor
All Implemented Interfaces:
org.xwiki.rendering.macro.descriptor.MacroDescriptor

public class WikiMacroDescriptor
extends java.lang.Object
implements org.xwiki.rendering.macro.descriptor.MacroDescriptor

A MacroDescriptor for describing wiki macros.

Since:
2.0M2
Version:
$Id$

Constructor Summary
WikiMacroDescriptor(org.xwiki.rendering.macro.MacroId id, java.lang.String name, java.lang.String description, java.lang.String defaultCategory, WikiMacroVisibility visibility, org.xwiki.rendering.macro.descriptor.ContentDescriptor contentDescriptor, java.util.List<WikiMacroParameterDescriptor> parameterDescriptors)
          Creates a new WikiMacroDescriptor instance.
WikiMacroDescriptor(java.lang.String name, java.lang.String description, java.lang.String defaultCategory, WikiMacroVisibility visibility, org.xwiki.rendering.macro.descriptor.ContentDescriptor contentDescriptor, java.util.List<WikiMacroParameterDescriptor> parameterDescriptors)
          Deprecated. since 2.3M1 use WikiMacroDescriptor(MacroId, String, String, String, WikiMacroVisibility, ContentDescriptor, List) instead
 
Method Summary
 org.xwiki.rendering.macro.descriptor.ContentDescriptor getContentDescriptor()
          
 java.lang.String getDefaultCategory()
          
 java.lang.String getDescription()
          
 org.xwiki.rendering.macro.MacroId getId()
          
 java.lang.String getName()
          
 java.util.Map<java.lang.String,org.xwiki.rendering.macro.descriptor.ParameterDescriptor> getParameterDescriptorMap()
          
 java.lang.Class<?> getParametersBeanClass()
          
 WikiMacroVisibility getVisibility()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WikiMacroDescriptor

public WikiMacroDescriptor(org.xwiki.rendering.macro.MacroId id,
                           java.lang.String name,
                           java.lang.String description,
                           java.lang.String defaultCategory,
                           WikiMacroVisibility visibility,
                           org.xwiki.rendering.macro.descriptor.ContentDescriptor contentDescriptor,
                           java.util.List<WikiMacroParameterDescriptor> parameterDescriptors)
Creates a new WikiMacroDescriptor instance.

Parameters:
id - the macro id
name - the macro name
description - macro description
defaultCategory - default category under which this macro should be listed.
visibility - the macro visibility (only visible in the current wiki, for the current user or global)
contentDescriptor - macro content description.
parameterDescriptors - parameter descriptors.
Since:
2.3M1

WikiMacroDescriptor

@Deprecated
public WikiMacroDescriptor(java.lang.String name,
                                      java.lang.String description,
                                      java.lang.String defaultCategory,
                                      WikiMacroVisibility visibility,
                                      org.xwiki.rendering.macro.descriptor.ContentDescriptor contentDescriptor,
                                      java.util.List<WikiMacroParameterDescriptor> parameterDescriptors)
Deprecated. since 2.3M1 use WikiMacroDescriptor(MacroId, String, String, String, WikiMacroVisibility, ContentDescriptor, List) instead

Creates a new WikiMacroDescriptor instance.

Parameters:
name - the macro name
description - macro description
defaultCategory - default category under which this macro should be listed.
visibility - the macro visibility (only visible in the current wiki, for the current user or global)
contentDescriptor - macro content description.
parameterDescriptors - parameter descriptors.
Since:
2.2M1
Method Detail

getId

public org.xwiki.rendering.macro.MacroId getId()

Specified by:
getId in interface org.xwiki.rendering.macro.descriptor.MacroDescriptor

getName

public java.lang.String getName()

Specified by:
getName in interface org.xwiki.rendering.macro.descriptor.MacroDescriptor

getDescription

public java.lang.String getDescription()

Specified by:
getDescription in interface org.xwiki.rendering.macro.descriptor.MacroDescriptor

getContentDescriptor

public org.xwiki.rendering.macro.descriptor.ContentDescriptor getContentDescriptor()

Specified by:
getContentDescriptor in interface org.xwiki.rendering.macro.descriptor.MacroDescriptor

getParametersBeanClass

public java.lang.Class<?> getParametersBeanClass()

Specified by:
getParametersBeanClass in interface org.xwiki.rendering.macro.descriptor.MacroDescriptor

getParameterDescriptorMap

public java.util.Map<java.lang.String,org.xwiki.rendering.macro.descriptor.ParameterDescriptor> getParameterDescriptorMap()

Specified by:
getParameterDescriptorMap in interface org.xwiki.rendering.macro.descriptor.MacroDescriptor

getDefaultCategory

public java.lang.String getDefaultCategory()

Specified by:
getDefaultCategory in interface org.xwiki.rendering.macro.descriptor.MacroDescriptor

getVisibility

public WikiMacroVisibility getVisibility()
Returns:
the visibility of the macro (ie whether the macro is visible in the current wiki, for the current user or global)
Since:
2.2M1


Copyright © 2004-2011 XWiki. All Rights Reserved.