1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * The contents of this file are subject to the terms of the Liferay Enterprise
5    * Subscription License ("License"). You may not use this file except in
6    * compliance with the License. You can obtain a copy of the License by
7    * contacting Liferay, Inc. See the License for the specific language governing
8    * permissions and limitations under the License, including but not limited to
9    * distribution rights of the Software.
10   *
11   *
12   *
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  }