Package org.xhtmlrenderer.css.extend
Interface AttributeResolver
- All Known Implementing Classes:
StandardAttributeResolver
public interface AttributeResolver
In XML, an application may or may not know how to find the ID and/or class
and/or attribute defaults of an element.
To enable matching of identity conditions, class conditions, language, and attribute defaults you need to provide an AttributeResolver to the StyleMap.
NOTE: The application is required to look in a document's internal subset for default attribute values, but the application is not required to use its built-in knowledge of a namespace or look in the external subset.
-
Method Summary
Modifier and TypeMethodDescription@Nullable String
getAttributeValue
(Node e, String attrName) Required to return null if attribute does not exist, and not null if attribute exists.@Nullable String
getAttributeValue
(Node e, String namespaceURI, String attrName) Required to return null if attribute does not exist and not null if attribute exists.@Nullable String
@Nullable String
@Nullable String
@Nullable String
@Nullable String
boolean
Gets the active attribute of the AttributeResolver objectboolean
Gets the focus attribute of the AttributeResolver objectboolean
Gets the hover attribute of the AttributeResolver objectboolean
Gets the link attribute of the AttributeResolver objectboolean
Gets the visited attribute of the AttributeResolver object
-
Method Details
-
getAttributeValue
Required to return null if attribute does not exist, and not null if attribute exists. -
getAttributeValue
Required to return null if attribute does not exist and not null if attribute exists. -
getClass
-
getID
-
getNonCssStyling
- Returns:
- The non css styling (specificity 0,0,0,0 on author styles, according to css 2.1)
-
getElementStyling
- Returns:
- The elementStyling value (corresponding to xhtml style attribute, specificity 1,0,0,0 according to css 2.1)
-
getLang
-
isLink
Gets the link attribute of the AttributeResolver object -
isVisited
Gets the visited attribute of the AttributeResolver object -
isHover
Gets the hover attribute of the AttributeResolver object -
isActive
Gets the active attribute of the AttributeResolver object -
isFocus
Gets the focus attribute of the AttributeResolver object
-