org.xwiki.rendering.wikimodel.util
Class WikiEntityUtil
java.lang.Object
org.xwiki.rendering.wikimodel.util.WikiEntityUtil
public class WikiEntityUtil
- extends Object
- Since:
- 4.0M1
- Version:
- $Id: f4b0419ecd0b310eeb8a30497f330b1c12478c99 $
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WikiEntityUtil
public WikiEntityUtil()
getHtmlCodeByHtmlEntity
public static int getHtmlCodeByHtmlEntity(String htmlEntity)
- Returns an HTML code corresponding to the specified HTML entity.
- Parameters:
htmlEntity - the HTML entity to transform to the corresponding HTML
code
- Returns:
- an HTML code corresponding to the specified HTML entity
getHtmlCodeByWikiSymbol
public static int getHtmlCodeByWikiSymbol(String wikiEntity)
- Returns an HTML code corresponding to the specified wiki entity.
- Parameters:
wikiEntity - the wiki entity to transform to the corresponding HTML
entity
- Returns:
- an HTML code corresponding to the specified wiki entity
getHtmlSymbol
public static String getHtmlSymbol(char ch)
- Parameters:
ch - for this character the corresponding html entity will be
returned
- Returns:
- an html entity corresponding to the given character
getHtmlSymbol
public static String getHtmlSymbol(String wikiEntity)
- Parameters:
wikiEntity - for this wiki entity the corresponding html entity will
be returned
- Returns:
- an html entity corresponding to the given wiki symbol
getWikiSymbol
public static String getWikiSymbol(char ch)
- Parameters:
ch - for this character the corresponding wiki entity will be
returned
- Returns:
- an wiki entity corresponding to the given character
getWikiSymbol
public static String getWikiSymbol(String htmlEntity)
- Parameters:
htmlEntity - for this html entity the corresponding wiki entity will
be returned
- Returns:
- an wiki entity corresponding to the given html symbol
Copyright © 2004-2012 XWiki. All Rights Reserved.