org.xwiki.rendering.internal.renderer
Class ParametersPrinter

java.lang.Object
  extended by org.xwiki.rendering.internal.renderer.ParametersPrinter

public class ParametersPrinter
extends Object

Generates syntax for a parameters group like macros and links.

Since:
1.9RC2
Version:
$Id$

Constructor Summary
ParametersPrinter()
           
 
Method Summary
 String print(Map<String,String> parameters, char escapeChar)
          Print the parameters as a String.
 String print(String parameterName, String parameterValue, char escapeChar)
          Print a parameter as a String.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ParametersPrinter

public ParametersPrinter()
Method Detail

print

public String print(Map<String,String> parameters,
                    char escapeChar)
Print the parameters as a String.

Parameters:
parameters - the parameters to print
escapeChar - the character used in front of a special character when need to escape it
Returns:
the printed parameters

print

public String print(String parameterName,
                    String parameterValue,
                    char escapeChar)
Print a parameter as a String.

Parameters:
parameterName - the name of the parameter to print
parameterValue - the value of the parameter to print
escapeChar - the character used in front of a special character when need to escape it
Returns:
the printed parameter


Copyright © 2004-2011 XWiki. All Rights Reserved.