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: LangConditionImpl.java,v 1.1.1.1 2006/04/23 14:51:57 taqua Exp $
013     */
014    package org.w3c.flute.parser.selectors;
015    
016    import org.w3c.css.sac.LangCondition;
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 LangConditionImpl implements LangCondition {
024    
025        String lang;
026    
027        /**
028         * Creates a new LangConditionImpl
029         */
030        public LangConditionImpl(String lang) {
031            this.lang = lang;
032        }
033        
034        /**
035         * An integer indicating the type of <code>Condition</code>.
036         */    
037        public short getConditionType() {
038            return Condition.SAC_LANG_CONDITION;
039        }
040    
041        /**
042         * Returns the language
043         */
044        public String getLang() {
045            return lang;
046        }
047    }