Package org.xhtmlrenderer.css.extend.lib
Class DOMStaticXhtmlAttributeResolver
java.lang.Object
org.xhtmlrenderer.css.extend.lib.DOMStaticXhtmlAttributeResolver
- All Implemented Interfaces:
AttributeResolver
Works for Xhtml in a DOM tree
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAttributeValue
(Node e, String attrName) Required to return null if attribute does not exist, and not null if attribute exists.getAttributeValue
(Node o, String namespaceURI, String attrName) Required to return null if attribute does not exist and not null if attribute exists.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
-
Constructor Details
-
DOMStaticXhtmlAttributeResolver
public DOMStaticXhtmlAttributeResolver()
-
-
Method Details
-
getAttributeValue
Description copied from interface:AttributeResolver
Required to return null if attribute does not exist, and not null if attribute exists.- Specified by:
getAttributeValue
in interfaceAttributeResolver
-
getAttributeValue
Description copied from interface:AttributeResolver
Required to return null if attribute does not exist and not null if attribute exists.- Specified by:
getAttributeValue
in interfaceAttributeResolver
-
getClass
- Specified by:
getClass
in interfaceAttributeResolver
-
getID
- Specified by:
getID
in interfaceAttributeResolver
-
getNonCssStyling
- Specified by:
getNonCssStyling
in interfaceAttributeResolver
- Returns:
- The non css styling (specificity 0,0,0,0 on author styles, according to css 2.1)
-
getLang
- Specified by:
getLang
in interfaceAttributeResolver
-
getElementStyling
- Specified by:
getElementStyling
in interfaceAttributeResolver
- Returns:
- The elementStyling value (corresponding to xhtml style attribute, specificity 1,0,0,0 according to css 2.1)
-
isActive
Description copied from interface:AttributeResolver
Gets the active attribute of the AttributeResolver object- Specified by:
isActive
in interfaceAttributeResolver
-
isFocus
Description copied from interface:AttributeResolver
Gets the focus attribute of the AttributeResolver object- Specified by:
isFocus
in interfaceAttributeResolver
-
isHover
Description copied from interface:AttributeResolver
Gets the hover attribute of the AttributeResolver object- Specified by:
isHover
in interfaceAttributeResolver
-
isLink
Description copied from interface:AttributeResolver
Gets the link attribute of the AttributeResolver object- Specified by:
isLink
in interfaceAttributeResolver
-
isVisited
Description copied from interface:AttributeResolver
Gets the visited attribute of the AttributeResolver object- Specified by:
isVisited
in interfaceAttributeResolver
-