Package io.sf.carte.doc.style.css.om
Class DOMSelectorMatcher
java.lang.Object
io.sf.carte.doc.style.css.om.AbstractSelectorMatcher
io.sf.carte.doc.style.css.om.BaseSelectorMatcher<CSSElement>
io.sf.carte.doc.style.css.om.DOMSelectorMatcher
- All Implemented Interfaces:
SelectorMatcher
,Serializable
Selector matcher for CSS-enabled DOM.
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected CSSDocument.ComplianceMode
protected String
getElementId
(CSSElement element) protected String
getId()
Gets the 'id' attribute of the element associated to this selector matcher.protected CSSDocument
protected boolean
isActivePseudoClass
(String pseudoclassName) protected boolean
isVisitedURI
(String href) protected SelectorMatcher
obtainSelectorMatcher
(CSSElement element) Methods inherited from class io.sf.carte.doc.style.css.om.BaseSelectorMatcher
getAttributeValue, getDirectionality, getElement, getLanguage, getNamespaceURI, getParentSelectorMatcher, getPreviousSiblingSelectorMatcher, hasAttribute, indexOf, isBlank, isDefaultButton, isDisabled, isEmpty, isFirstChild, isFirstOfType, isLastChild, isLastOfType, isNthLastOfType, isNthOfType, isRoot, isTarget, reverseIndexOf, scopeMatchChild, scopeMatchDescendant, scopeMatchDirectAdjacent
Methods inherited from class io.sf.carte.doc.style.css.om.AbstractSelectorMatcher
findStatePseudoClasses, getClassAttribute, getLocalName, getPseudoElement, isAnyLink, isChecked, isDir, isEnabled, isFormElement, isIndeterminate, isNotVisitedLink, isOnlyChild, isOnlyOfType, isPlaceholderShown, isReadWrite, isUIDefault, isVisitedLink, matches, matches, matchesId, setLocalName, setPseudoElement, toString
-
Constructor Details
-
DOMSelectorMatcher
-
-
Method Details
-
isActivePseudoClass
- Overrides:
isActivePseudoClass
in classBaseSelectorMatcher<CSSElement>
-
isVisitedURI
- Specified by:
isVisitedURI
in classAbstractSelectorMatcher
-
getComplianceMode
- Overrides:
getComplianceMode
in classBaseSelectorMatcher<CSSElement>
-
getOwnerDocument
- Overrides:
getOwnerDocument
in classBaseSelectorMatcher<CSSElement>
-
getId
Description copied from class:AbstractSelectorMatcher
Gets the 'id' attribute of the element associated to this selector matcher.- Overrides:
getId
in classBaseSelectorMatcher<CSSElement>
- Returns:
- the 'id' attribute value, or the empty string if the element has no 'id'.
-
getElementId
- Overrides:
getElementId
in classBaseSelectorMatcher<CSSElement>
-
obtainSelectorMatcher
- Specified by:
obtainSelectorMatcher
in classBaseSelectorMatcher<CSSElement>
-