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

org.joox.selector.PseudoClassSpecifier Maven / Gradle / Ivy

package org.joox.selector;



/**
 * An implementation of {@link Specifier} for pseudo-classes.
 * 

* Note: *
* The negation pseudo-class specifier is implemented by {@link NegationSpecifier}, and * the {@code nth-*} pseudo-classes are implemented by {@link PseudoNthSpecifier}. * * @see Pseudo-classes * * @author Christer Sandberg */ class PseudoClassSpecifier implements Specifier { /** The pseudo-class value. */ private final String value; /** * Create a new pseudo-class specifier with the specified value. * * @param value The pseudo-class value. */ public PseudoClassSpecifier(String value) { Assert.notNull(value, "value is null!"); this.value = value; } /** * Get the pseudo-class value. * * @return The pseudo-class value. */ public String getValue() { return value; } /** * {@inheritDoc} */ @Override public Type getType() { return Type.PSEUDO; } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy