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: PseudoElementSelectorImpl.java,v 1.1.1.1 2006/04/23 14:51:53 taqua Exp $
013 */
014 package org.w3c.flute.parser.selectors;
015
016 import org.w3c.css.sac.ElementSelector;
017 import org.w3c.css.sac.Selector;
018
019 /**
020 * @version $Revision: 1.1.1.1 $
021 * @author Philippe Le Hegaret
022 */
023 public class PseudoElementSelectorImpl implements ElementSelector {
024
025 String localName;
026
027 /**
028 * Creates a new ElementSelectorImpl
029 */
030 public PseudoElementSelectorImpl(String localName) {
031 this.localName = localName;
032 }
033
034 /**
035 * An integer indicating the type of <code>Selector</code>
036 */
037 public short getSelectorType() {
038 return Selector.SAC_PSEUDO_ELEMENT_SELECTOR;
039 }
040
041 /**
042 * Returns the
043 * <a href="http://www.w3.org/TR/REC-xml-names/#dt-NSName">namespace
044 * URI</a> of this element selector.
045 * <p><code>NULL</code> if this element selector can match any namespace.</p>
046 */
047 public String getNamespaceURI() {
048 return null;
049 }
050
051 /**
052 * Returns the
053 * <a href="http://www.w3.org/TR/REC-xml-names/#NT-LocalPart">local part</a>
054 * of the
055 * <a href="http://www.w3.org/TR/REC-xml-names/#ns-qualnames">qualified
056 * name</a> of this element.
057 * <p><code>NULL</code> if this element selector can match any element.</p>
058 * </ul>
059 */
060 public String getLocalName() {
061 return localName;
062 }
063 }