KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > w3c > flute > parser > selectors > LangConditionImpl


1 /*
2  * Copyright (c) 2000 World Wide Web Consortium,
3  * (Massachusetts Institute of Technology, Institut National de
4  * Recherche en Informatique et en Automatique, Keio University). All
5  * Rights Reserved. This program is distributed under the W3C's Software
6  * Intellectual Property License. This program is distributed in the
7  * hope that it will be useful, but WITHOUT ANY WARRANTY; without even
8  * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
9  * PURPOSE.
10  * See W3C License http://www.w3.org/Consortium/Legal/ for more details.
11  *
12  * $Id: LangConditionImpl.java,v 1.1.1.1 2006/04/23 14:51:57 taqua Exp $
13  */

14 package org.w3c.flute.parser.selectors;
15
16 import org.w3c.css.sac.LangCondition;
17 import org.w3c.css.sac.Condition;
18
19 /**
20  * @version $Revision: 1.1.1.1 $
21  * @author Philippe Le Hegaret
22  */

23 public class LangConditionImpl implements LangCondition {
24
25     String JavaDoc lang;
26
27     /**
28      * Creates a new LangConditionImpl
29      */

30     public LangConditionImpl(String JavaDoc lang) {
31         this.lang = lang;
32     }
33     
34     /**
35      * An integer indicating the type of <code>Condition</code>.
36      */

37     public short getConditionType() {
38     return Condition.SAC_LANG_CONDITION;
39     }
40
41     /**
42      * Returns the language
43      */

44     public String JavaDoc getLang() {
45     return lang;
46     }
47 }
48
Popular Tags