001    /**
002     * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
003     *
004     * The contents of this file are subject to the terms of the Liferay Enterprise
005     * Subscription License ("License"). You may not use this file except in
006     * compliance with the License. You can obtain a copy of the License by
007     * contacting Liferay, Inc. See the License for the specific language governing
008     * permissions and limitations under the License, including but not limited to
009     * distribution rights of the Software.
010     *
011     *
012     *
013     */
014    
015    package com.liferay.portal.kernel.configuration;
016    
017    import java.util.Map;
018    
019    /**
020     * @author Brian Wing Shun Chan
021     */
022    public class Filter {
023    
024            public Filter(String selector1) {
025                    this(new String[] {selector1}, null);
026            }
027    
028            public Filter(String selector1, String selector2) {
029                    this(new String[] {selector1, selector2}, null);
030            }
031    
032            public Filter(String selector1, String selector2, String selector3) {
033                    this(new String[] {selector1, selector2, selector3}, null);
034            }
035    
036            public Filter(String selector1, Map<String, String> variables) {
037                    this(new String[] {selector1}, variables);
038            }
039    
040            public Filter(
041                    String selector1, String selector2, Map<String, String> variables) {
042    
043                    this(new String[] {selector1, selector2}, variables);
044            }
045    
046            public Filter(
047                    String selector1, String selector2, String selector3,
048                    Map<String, String> variables) {
049    
050                    this(new String[] {selector1, selector2, selector3}, variables);
051            }
052    
053            public Filter(String[] selectors, Map<String, String> variables) {
054                    _selectors = selectors;
055                    _variables = variables;
056            }
057    
058            public String[] getSelectors() {
059                    return _selectors;
060            }
061    
062            public Map<String, String> getVariables() {
063                    return _variables;
064            }
065    
066            private String[] _selectors;
067            private Map<String, String> _variables;
068    
069    }