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.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  }