Nuxeo Enterprise Platform 5.4

org.nuxeo.ecm.platform.rendering.wiki
Class WikiEntityUtil

java.lang.Object
  extended by org.nuxeo.ecm.platform.rendering.wiki.WikiEntityUtil

public class WikiEntityUtil
extends java.lang.Object

Copied from last version of wikimodel

Author:
kotelnikov

Method Summary
static int getHtmlCodeByHtmlEntity(java.lang.String htmlEntity)
          Returns an HTML code corresponding to the specified HTML entity.
static int getHtmlCodeByWikiSymbol(java.lang.String wikiEntity)
          Returns an HTML code corresponding to the specified wiki entity.
static java.lang.String getHtmlSymbol(char ch)
           
static java.lang.String getHtmlSymbol(java.lang.String wikiEntity)
           
static java.lang.String getWikiSymbol(char ch)
           
static java.lang.String getWikiSymbol(java.lang.String htmlEntity)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getHtmlCodeByHtmlEntity

public static int getHtmlCodeByHtmlEntity(java.lang.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(java.lang.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 java.lang.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 java.lang.String getHtmlSymbol(java.lang.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 java.lang.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 java.lang.String getWikiSymbol(java.lang.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

Nuxeo Enterprise Platform 5.4

Copyright © 2010 Nuxeo SAS. All Rights Reserved.