001 /*
002 * Copyright (c) 2000 World Wide Web Consortium,
003 * (Massachusetts Institute of Technology, Institut National de
004 * Recherche en Informatique et en Automatique, Keio University). All
005 * Rights Reserved. This program is distributed under the W3C's Software
006 * Intellectual Property License. This program is distributed in the
007 * hope that it will be useful, but WITHOUT ANY WARRANTY; without even
008 * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
009 * PURPOSE.
010 * See W3C License http://www.w3.org/Consortium/Legal/ for more details.
011 *
012 * $Id: AndConditionImpl.java,v 1.1.1.1 2006/04/23 14:51:55 taqua Exp $
013 */
014 package org.w3c.flute.parser.selectors;
015
016 import org.w3c.css.sac.CombinatorCondition;
017 import org.w3c.css.sac.Condition;
018
019 /**
020 * @version $Revision: 1.1.1.1 $
021 * @author Philippe Le Hegaret
022 */
023 public class AndConditionImpl implements CombinatorCondition {
024
025 Condition firstCondition;
026 Condition secondCondition;
027
028 /**
029 * Creates a new AndConditionImpl
030 */
031 public AndConditionImpl(Condition firstCondition, Condition secondCondition) {
032 this.firstCondition = firstCondition;
033 this.secondCondition = secondCondition;
034 }
035
036 /**
037 * An integer indicating the type of <code>Condition</code>.
038 */
039 public short getConditionType() {
040 return Condition.SAC_AND_CONDITION;
041 }
042
043 /**
044 * Returns the first condition.
045 */
046 public Condition getFirstCondition() {
047 return firstCondition;
048 }
049
050 /**
051 * Returns the second condition.
052 */
053 public Condition getSecondCondition() {
054 return secondCondition;
055 }
056 }