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

cz.vutbr.web.css.MatchCondition Maven / Gradle / Ivy

/**
 * MatchCondition.java
 *
 * Created on 1.7.2013, 11:03:32 by burgetr
 */
package cz.vutbr.web.css;

import cz.vutbr.web.css.Selector.SelectorPart;

import org.w3c.dom.Element;

/**
 * An additional condition for matching the selectors.
 * 
 * @author burgetr
 */
public interface MatchCondition extends Cloneable
{
    
    /**
     * Checks whether the condition is satisfied for the given element and selector part. 
     * @param e The element to be tested.
     * @param selpart The selector part.
     * @return true when the condition is satisfied
     */
    public boolean isSatisfied(Element e, SelectorPart selpart);

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy