KickJava   Java API By Example, From Geeks To Geeks.

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


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: PseudoElementSelectorImpl.java,v 1.1.1.1 2006/04/23 14:51:53 taqua Exp $
13  */

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

23 public class PseudoElementSelectorImpl implements ElementSelector {
24
25     String JavaDoc localName;
26
27     /**
28      * Creates a new ElementSelectorImpl
29      */

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

37     public short getSelectorType() {
38     return Selector.SAC_PSEUDO_ELEMENT_SELECTOR;
39     }
40     
41     /**
42      * Returns the
43      * <a HREF="http://www.w3.org/TR/REC-xml-names/#dt-NSName">namespace
44      * URI</a> of this element selector.
45      * <p><code>NULL</code> if this element selector can match any namespace.</p>
46      */

47     public String JavaDoc getNamespaceURI() {
48     return null;
49     }
50
51     /**
52      * Returns the
53      * <a HREF="http://www.w3.org/TR/REC-xml-names/#NT-LocalPart">local part</a>
54      * of the
55      * <a HREF="http://www.w3.org/TR/REC-xml-names/#ns-qualnames">qualified
56      * name</a> of this element.
57      * <p><code>NULL</code> if this element selector can match any element.</p>
58      * </ul>
59      */

60     public String JavaDoc getLocalName() {
61     return localName;
62     }
63 }
64
Popular Tags