All Downloads are FREE. Search and download functionalities are using the official Maven repository.

w3c.css.selectors.PseudoElementSelector Maven / Gradle / Ivy

There is a newer version: 1.0.8
Show newest version
// $Id$
// Author: Jean-Guilhem Rouel
// (c) COPYRIGHT MIT, ERCIM and Keio, 2005.
// Please first read the full copyright statement in file COPYRIGHT.html
package org.w3c.css.selectors;

/**
 * PseudoElement
* Created: Sep 1, 2005 3:54:07 PM
*/ public class PseudoElementSelector implements Selector { String name; /** * Creates a new pseudo-element given it's name * * @param name the name of this pseudo-element */ public PseudoElementSelector(String name) { this.name = name; } /** * @see Selector#getName() */ public String getName() { return name; } /** * Sets the name of this pseudo-element * * @param name The name to set. */ public void setName(String name) { this.name = name; } /** * @see Selector#toString() */ public String toString() { return "::" + name; } /** * @see Selector#canApply(Selector) */ public boolean canApply(Selector other) { return false; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy