Package org.xhtmlrenderer.context
Class StandardAttributeResolver
java.lang.Object
org.xhtmlrenderer.context.StandardAttributeResolver
- All Implemented Interfaces:
AttributeResolver
An instance which works together with a w3c DOM tree
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final NamespaceHandler
private final UserAgentCallback
private final UserInterface
-
Constructor Summary
ConstructorsConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptiongetAttributeValue
(Node e, String attrName) Gets the attributeValue attribute of the StandardAttributeResolver objectgetAttributeValue
(Node e, String namespaceURI, String attrName) Required to return null if attribute does not exist and not null if attribute exists.@Nullable String
Gets the class attribute of the StandardAttributeResolver object@Nullable String
Gets the elementStyling attribute of the StandardAttributeResolver object@Nullable String
Gets the iD attribute of the StandardAttributeResolver objectGets the lang attribute of the StandardAttributeResolver object@Nullable String
boolean
Gets the active attribute of the StandardAttributeResolver objectboolean
Gets the focus attribute of the StandardAttributeResolver objectboolean
Gets the hover attribute of the StandardAttributeResolver objectboolean
Gets the link attribute of the StandardAttributeResolver objectboolean
Gets the visited attribute of the StandardAttributeResolver object
-
Field Details
-
nsh
-
uac
-
ui
-
classAttributeCache
-
-
Constructor Details
-
StandardAttributeResolver
-
-
Method Details
-
getAttributeValue
Gets the attributeValue attribute of the StandardAttributeResolver object- 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
Gets the class attribute of the StandardAttributeResolver object- Specified by:
getClass
in interfaceAttributeResolver
-
getID
Gets the iD attribute of the StandardAttributeResolver object- 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)
-
getElementStyling
Gets the elementStyling attribute of the StandardAttributeResolver object- Specified by:
getElementStyling
in interfaceAttributeResolver
- Returns:
- The elementStyling value (corresponding to xhtml style attribute, specificity 1,0,0,0 according to css 2.1)
-
getLang
Gets the lang attribute of the StandardAttributeResolver object- Specified by:
getLang
in interfaceAttributeResolver
-
isLink
Gets the link attribute of the StandardAttributeResolver object- Specified by:
isLink
in interfaceAttributeResolver
-
isVisited
Gets the visited attribute of the StandardAttributeResolver object- Specified by:
isVisited
in interfaceAttributeResolver
-
isHover
Gets the hover attribute of the StandardAttributeResolver object- Specified by:
isHover
in interfaceAttributeResolver
-
isActive
Gets the active attribute of the StandardAttributeResolver object- Specified by:
isActive
in interfaceAttributeResolver
-
isFocus
Gets the focus attribute of the StandardAttributeResolver object- Specified by:
isFocus
in interfaceAttributeResolver
-