Class WikiEntityUtil
- java.lang.Object
-
- org.nuxeo.ecm.platform.rendering.wiki.WikiEntityUtil
-
public class WikiEntityUtil extends Object
Copied from last version of wikimodel- Author:
- kotelnikov
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static intgetHtmlCodeByHtmlEntity(String htmlEntity)Returns an HTML code corresponding to the specified HTML entity.static intgetHtmlCodeByWikiSymbol(String wikiEntity)Returns an HTML code corresponding to the specified wiki entity.static StringgetHtmlSymbol(char ch)static StringgetHtmlSymbol(String wikiEntity)static StringgetWikiSymbol(char ch)static StringgetWikiSymbol(String htmlEntity)
-
-
-
Method Detail
-
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
-
-