public class MatchConditionOnElements extends Object implements MatchCondition
| Constructor and Description |
|---|
MatchConditionOnElements()
Creates the condition with an empty set of assigned elements and element names.
|
MatchConditionOnElements(Element e,
Selector.PseudoDeclaration pseudoClass)
Creates the condition and assigns a pseudo class to a given element.
|
MatchConditionOnElements(String name,
Selector.PseudoDeclaration pseudoClass)
Creates the condition and assigns a pseudo class to a given element name.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addMatch(Element e,
Selector.PseudoDeclaration pseudoClass)
Assigns a pseudo class to the given element.
|
void |
addMatch(String name,
Selector.PseudoDeclaration pseudoClass)
Assigns a pseudo class to the given element name.
|
boolean |
isSatisfied(Element e,
Selector.SelectorPart selpart)
Checks whether the condition is satisfied for the given element and selector part.
|
void |
removeMatch(Element e,
Selector.PseudoDeclaration pseudoClass)
Removes the pseudo class from the given element.
|
void |
removeMatch(String name,
Selector.PseudoDeclaration pseudoClass)
Removes the pseudo class from the given element name.
|
public MatchConditionOnElements()
public MatchConditionOnElements(Element e, Selector.PseudoDeclaration pseudoClass)
e - the elementpseudoClass - the pseudo class to be assignedpublic MatchConditionOnElements(String name, Selector.PseudoDeclaration pseudoClass)
name - the element namepseudoClass - the pseudo class to be assignedpublic void addMatch(Element e, Selector.PseudoDeclaration pseudoClass)
e - the DOM elementpseudoClass - the pseudo class to be assignedpublic void removeMatch(Element e, Selector.PseudoDeclaration pseudoClass)
e - the DOM elementpseudoClass - the pseudo class to be removedpublic void addMatch(String name, Selector.PseudoDeclaration pseudoClass)
name - the element namepseudoClass - the pseudo class to be assignedpublic void removeMatch(String name, Selector.PseudoDeclaration pseudoClass)
name - the element namepseudoClass - the pseudo class to be removedpublic boolean isSatisfied(Element e, Selector.SelectorPart selpart)
MatchConditionisSatisfied in interface MatchConditione - The element to be tested.selpart - The selector part.true when the condition is satisfiedCopyright © 2014. All rights reserved.