org.xwiki.rendering.macro.wikibridge
Class WikiMacroParameters

java.lang.Object
  extended by org.xwiki.rendering.macro.wikibridge.WikiMacroParameters
All Implemented Interfaces:
org.xwiki.properties.RawProperties

public class WikiMacroParameters
extends java.lang.Object
implements org.xwiki.properties.RawProperties

Generic parameters class for all wiki macros.

Since:
2.0M2
Version:
$Id$

Constructor Summary
WikiMacroParameters()
          Creates a new WikiMacroParameters instance.
 
Method Summary
 java.lang.Object get(java.lang.String propertyName)
          Returns the parameter value associated with the propertyName provided.
 java.util.Set<java.lang.String> getParameterNames()
          Returns the set of parameter names provided by user.
 void set(java.lang.String propertyName, java.lang.Object value)
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WikiMacroParameters

public WikiMacroParameters()
Creates a new WikiMacroParameters instance.

Method Detail

set

public void set(java.lang.String propertyName,
                java.lang.Object value)

Specified by:
set in interface org.xwiki.properties.RawProperties

getParameterNames

public java.util.Set<java.lang.String> getParameterNames()
Returns the set of parameter names provided by user.

Returns:
set of parameter names provided by user

get

public java.lang.Object get(java.lang.String propertyName)
Returns the parameter value associated with the propertyName provided.

Parameters:
propertyName - the property name.
Returns:
the property value if set, null otherwise.


Copyright © 2004-2011 XWiki. All Rights Reserved.