1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
13   */
14  
15  package com.liferay.portlet.journal.util;
16  
17  import java.util.Map;
18  
19  /**
20   * <a href="TransformerListener.java.html"><b><i>View Source</i></b></a>
21   *
22   * @author Brian Wing Shun Chan
23   */
24  public abstract class TransformerListener {
25  
26      public TransformerListener() {
27      }
28  
29      public boolean isTemplateDriven() {
30          return _templateDriven;
31      }
32  
33      public void setTemplateDriven(boolean templateDriven) {
34          _templateDriven = templateDriven;
35      }
36  
37      public String getLanguageId() {
38          return _languageId;
39      }
40  
41      public void setLanguageId(String languageId) {
42          _languageId = languageId;
43      }
44  
45      public Map<String, String> getTokens() {
46          return _tokens;
47      }
48  
49      public void setTokens(Map<String, String> tokens) {
50          _tokens = tokens;
51      }
52  
53      public abstract String onXml(String s);
54  
55      public abstract String onScript(String s);
56  
57      public abstract String onOutput(String s);
58  
59      private boolean _templateDriven;
60      private String _languageId;
61      private Map<String, String> _tokens;
62  
63  }