Package org.xhtmlrenderer.css.extend
Interface AttributeResolver
- All Known Implementing Classes:
DOMStaticXhtmlAttributeResolver
,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.
- Author:
- Torbjörn Gannholm
-
Method Summary
Modifier and TypeMethodDescriptiongetAttributeValue
(Object e, String attrName) May return null.getAttributeValue
(Object e, String namespaceURI, String attrName) May return null.may return nullmay return nullmay return nullmay return nullmay return nullboolean
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
May return null. Required to return null if attribute does not exist and not null if attribute exists. -
getAttributeValue
May return null. Required to return null if attribute does not exist and not null if attribute exists. -
getClass
may return null- Parameters:
e
- PARAM- Returns:
- The class value
-
getID
may return null- Parameters:
e
- PARAM- Returns:
- The iD value
-
getNonCssStyling
may return null- Parameters:
e
- PARAM- Returns:
- The non css styling (specificity 0,0,0,0 on author styles, according to css 2.1)
-
getElementStyling
may return null- Parameters:
e
- PARAM- Returns:
- The elementStyling value (corresponding to xhtml style attribute, specificity 1,0,0,0 according to css 2.1)
-
getLang
may return null- Parameters:
e
- PARAM- Returns:
- The lang value
-
isLink
Gets the link attribute of the AttributeResolver object- Parameters:
e
- PARAM- Returns:
- The link value
-
isVisited
Gets the visited attribute of the AttributeResolver object- Parameters:
e
- PARAM- Returns:
- The visited value
-
isHover
Gets the hover attribute of the AttributeResolver object- Parameters:
e
- PARAM- Returns:
- The hover value
-
isActive
Gets the active attribute of the AttributeResolver object- Parameters:
e
- PARAM- Returns:
- The active value
-
isFocus
Gets the focus attribute of the AttributeResolver object- Parameters:
e
- PARAM- Returns:
- The focus value
-