001
014
015 package com.liferay.portal.kernel.templateparser;
016
017 import com.liferay.portal.kernel.log.Log;
018 import com.liferay.portal.kernel.log.LogFactoryUtil;
019 import com.liferay.portal.kernel.xml.Document;
020
021 import java.util.Map;
022
023
026 public abstract class BaseTransformerListener implements TransformerListener {
027
028 @Override
029 public String onOutput(
030 String output, String languageId, Map<String, String> tokens) {
031
032 if (_log.isDebugEnabled()) {
033 _log.debug("onOutput");
034 }
035
036 return output;
037 }
038
039 @Override
040 public String onScript(
041 String script, Document document, String languageId,
042 Map<String, String> tokens) {
043
044 if (_log.isDebugEnabled()) {
045 _log.debug("onScript");
046 }
047
048 return script;
049 }
050
051 @Override
052 public Document onXml(
053 Document document, String languageId, Map<String, String> tokens) {
054
055 if (_log.isDebugEnabled()) {
056 _log.debug("onXml");
057 }
058
059 return document;
060 }
061
062 private static final Log _log = LogFactoryUtil.getLog(
063 BaseTransformerListener.class);
064
065 }