com.xpn.xwiki.wysiwyg.client.plugin.macro
Class MacroDescriptor

java.lang.Object
  extended by com.xpn.xwiki.wysiwyg.client.plugin.macro.MacroDescriptor
All Implemented Interfaces:
com.google.gwt.user.client.rpc.IsSerializable

public class MacroDescriptor
extends java.lang.Object
implements com.google.gwt.user.client.rpc.IsSerializable

Describes a macro and its parameters.

NOTE: This class is a serializable, GWT-supported clone of the MacroDescriptor from the rendering module.

Version:
$Id: MacroDescriptor.java 22876 2009-08-24 14:54:49Z mflorea $

Constructor Summary
MacroDescriptor()
           
 
Method Summary
 java.lang.String getCategory()
           
 ParameterDescriptor getContentDescriptor()
           
 java.lang.String getDescription()
           
 java.lang.String getId()
           
 java.lang.String getName()
           
 java.util.Map<java.lang.String,ParameterDescriptor> getParameterDescriptorMap()
           
 void setCategory(java.lang.String category)
          Sets the macro category.
 void setContentDescriptor(ParameterDescriptor contentDescriptor)
          Sets the content descriptor.
 void setDescription(java.lang.String description)
          Sets the macro description.
 void setId(java.lang.String id)
          Sets the identifier of the macro.
 void setName(java.lang.String name)
          Sets the human-readable name of the macro (e.g.
 void setParameterDescriptorMap(java.util.Map<java.lang.String,ParameterDescriptor> parameterDescriptorMap)
          Sets the Map of parameter descriptors.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MacroDescriptor

public MacroDescriptor()
Method Detail

getId

public java.lang.String getId()
Returns:
the macro identifier

setId

public void setId(java.lang.String id)
Sets the identifier of the macro.

Parameters:
id - a macro identifier

getName

public java.lang.String getName()
Returns:
the human-readable name of the macro (e.g. Table of Contents for ToC macro)

setName

public void setName(java.lang.String name)
Sets the human-readable name of the macro (e.g. Table of Contents for ToC macro).

Parameters:
name - the macro name

getDescription

public java.lang.String getDescription()
Returns:
the description of the macro

setDescription

public void setDescription(java.lang.String description)
Sets the macro description.

Parameters:
description - a String representing the macro description

getCategory

public java.lang.String getCategory()
Returns:
the category of the macro

setCategory

public void setCategory(java.lang.String category)
Sets the macro category.

Parameters:
category - the macro category

getParameterDescriptorMap

public java.util.Map<java.lang.String,ParameterDescriptor> getParameterDescriptorMap()
Returns:
a Map with parameter descriptors

setParameterDescriptorMap

public void setParameterDescriptorMap(java.util.Map<java.lang.String,ParameterDescriptor> parameterDescriptorMap)
Sets the Map of parameter descriptors.

Parameters:
parameterDescriptorMap - a Map of parameter descriptors

getContentDescriptor

public ParameterDescriptor getContentDescriptor()
Returns:
the content descriptor

setContentDescriptor

public void setContentDescriptor(ParameterDescriptor contentDescriptor)
Sets the content descriptor.

Parameters:
contentDescriptor - the object describing the content of the macro


Copyright © 2004-2010 XWiki. All Rights Reserved.