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.portal.kernel.configuration;
16  
17  import java.util.Map;
18  
19  /**
20   * <a href="Filter.java.html"><b><i>View Source</i></b></a>
21   *
22   * @author Brian Wing Shun Chan
23   */
24  public class Filter {
25  
26      public Filter(String selector1) {
27          this(new String[] {selector1}, null);
28      }
29  
30      public Filter(String selector1, String selector2) {
31          this(new String[] {selector1, selector2}, null);
32      }
33  
34      public Filter(String selector1, String selector2, String selector3) {
35          this(new String[] {selector1, selector2, selector3}, null);
36      }
37  
38      public Filter(String selector1, Map<String, String> variables) {
39          this(new String[] {selector1}, variables);
40      }
41  
42      public Filter(
43          String selector1, String selector2, Map<String, String> variables) {
44  
45          this(new String[] {selector1, selector2}, variables);
46      }
47  
48      public Filter(
49          String selector1, String selector2, String selector3,
50          Map<String, String> variables) {
51  
52          this(new String[] {selector1, selector2, selector3}, variables);
53      }
54  
55      public Filter(String[] selectors, Map<String, String> variables) {
56          _selectors = selectors;
57          _variables = variables;
58      }
59  
60      public String[] getSelectors() {
61          return _selectors;
62      }
63  
64      public Map<String, String> getVariables() {
65          return _variables;
66      }
67  
68      private String[] _selectors;
69      private Map<String, String> _variables;
70  
71  }