java.lang.Object
org.xhtmlrenderer.context.StandardAttributeResolver
- All Implemented Interfaces:
AttributeResolver
An instance which works together with a w3c DOM tree
- Author:
- Torbjoern Gannholm
-
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 StringGets the class attribute of the StandardAttributeResolver object@Nullable StringGets the elementStyling attribute of the StandardAttributeResolver object@Nullable StringGets the iD attribute of the StandardAttributeResolver objectGets the lang attribute of the StandardAttributeResolver object@Nullable StringbooleanGets the active attribute of the StandardAttributeResolver objectbooleanGets the focus attribute of the StandardAttributeResolver objectbooleanGets the hover attribute of the StandardAttributeResolver objectbooleanGets the link attribute of the StandardAttributeResolver objectbooleanGets the visited attribute of the StandardAttributeResolver object
-
Constructor Details
-
StandardAttributeResolver
-
-
Method Details
-
getAttributeValue
Gets the attributeValue attribute of the StandardAttributeResolver object- Specified by:
getAttributeValuein interfaceAttributeResolver
-
getAttributeValue
Description copied from interface:AttributeResolverRequired to return null if attribute does not exist and not null if attribute exists.- Specified by:
getAttributeValuein interfaceAttributeResolver
-
getClass
Gets the class attribute of the StandardAttributeResolver object- Specified by:
getClassin interfaceAttributeResolver
-
getID
Gets the iD attribute of the StandardAttributeResolver object- Specified by:
getIDin interfaceAttributeResolver
-
getNonCssStyling
- Specified by:
getNonCssStylingin 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:
getElementStylingin 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:
getLangin interfaceAttributeResolver
-
isLink
Gets the link attribute of the StandardAttributeResolver object- Specified by:
isLinkin interfaceAttributeResolver
-
isVisited
Gets the visited attribute of the StandardAttributeResolver object- Specified by:
isVisitedin interfaceAttributeResolver
-
isHover
Gets the hover attribute of the StandardAttributeResolver object- Specified by:
isHoverin interfaceAttributeResolver
-
isActive
Gets the active attribute of the StandardAttributeResolver object- Specified by:
isActivein interfaceAttributeResolver
-
isFocus
Gets the focus attribute of the StandardAttributeResolver object- Specified by:
isFocusin interfaceAttributeResolver
-