001    /**
002     * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
003     *
004     * The contents of this file are subject to the terms of the Liferay Enterprise
005     * Subscription License ("License"). You may not use this file except in
006     * compliance with the License. You can obtain a copy of the License by
007     * contacting Liferay, Inc. See the License for the specific language governing
008     * permissions and limitations under the License, including but not limited to
009     * distribution rights of the Software.
010     *
011     *
012     *
013     */
014    
015    package com.liferay.portal.kernel.parsers.bbcode;
016    
017    /**
018     * @author Iliyan Peychev
019     * @author Miguel Pastor
020     */
021    public class BBCodeTranslatorUtil {
022    
023            public static String NEW_THREAD_URL = "${newThreadURL}";
024    
025            public static BBCodeTranslator getBBCodeTranslator() {
026                    return _BBCodeTranslator;
027            }
028    
029            public static String[] getEmoticonDescriptions() {
030                    return getBBCodeTranslator().getEmoticonDescriptions();
031            }
032    
033            public static String[] getEmoticonFiles() {
034                    return getBBCodeTranslator().getEmoticonFiles();
035            }
036    
037            public static String[][] getEmoticons() {
038                    return getBBCodeTranslator().getEmoticons();
039            }
040    
041            public static String[] getEmoticonSymbols() {
042                    return getBBCodeTranslator().getEmoticonSymbols();
043            }
044    
045            public static String getHTML(String bbcode) {
046                    return getBBCodeTranslator().getHTML(bbcode);
047            }
048    
049            public static String parse(String message) {
050                    return getBBCodeTranslator().parse(message);
051            }
052    
053            public void setBBCodeTranslator(BBCodeTranslator bbCodeTranslator) {
054                    _BBCodeTranslator = bbCodeTranslator;
055            }
056    
057            private static BBCodeTranslator _BBCodeTranslator;
058    
059    }