Package org.xhtmlrenderer.css.extend.lib
Class DOMStaticXhtmlAttributeResolver
- java.lang.Object
-
- org.xhtmlrenderer.css.extend.lib.DOMStaticXhtmlAttributeResolver
-
- All Implemented Interfaces:
AttributeResolver
public class DOMStaticXhtmlAttributeResolver extends Object implements AttributeResolver
Works for Xhtml in a DOM tree
-
-
Constructor Summary
Constructors Constructor Description DOMStaticXhtmlAttributeResolver()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetAttributeValue(Object e, String attrName)Required to return null if attribute does not exist, and not null if attribute exists.StringgetAttributeValue(Object o, String namespaceURI, String attrName)Required to return null if attribute does not exist and not null if attribute exists.StringgetClass(Object e)StringgetElementStyling(Object el)StringgetID(Object e)StringgetLang(Object e)StringgetNonCssStyling(Object e)booleanisActive(Object e)Gets the active attribute of the AttributeResolver objectbooleanisFocus(Object e)Gets the focus attribute of the AttributeResolver objectbooleanisHover(Object e)Gets the hover attribute of the AttributeResolver objectbooleanisLink(Object el)Gets the link attribute of the AttributeResolver objectbooleanisVisited(Object e)Gets the visited attribute of the AttributeResolver object
-
-
-
Method Detail
-
getAttributeValue
public String getAttributeValue(Object e, String attrName)
Description copied from interface:AttributeResolverRequired to return null if attribute does not exist, and not null if attribute exists.- Specified by:
getAttributeValuein interfaceAttributeResolver
-
getAttributeValue
public String getAttributeValue(Object o, String namespaceURI, String attrName)
Description copied from interface:AttributeResolverRequired to return null if attribute does not exist and not null if attribute exists.- Specified by:
getAttributeValuein interfaceAttributeResolver
-
getClass
public String getClass(Object e)
- Specified by:
getClassin interfaceAttributeResolver
-
getID
public String getID(Object e)
- Specified by:
getIDin interfaceAttributeResolver
-
getNonCssStyling
public String getNonCssStyling(Object e)
- Specified by:
getNonCssStylingin interfaceAttributeResolver- Returns:
- The non css styling (specificity 0,0,0,0 on author styles, according to css 2.1)
-
getLang
public String getLang(Object e)
- Specified by:
getLangin interfaceAttributeResolver
-
getElementStyling
public String getElementStyling(Object el)
- Specified by:
getElementStylingin interfaceAttributeResolver- Returns:
- The elementStyling value (corresponding to xhtml style attribute, specificity 1,0,0,0 according to css 2.1)
-
isActive
public boolean isActive(Object e)
Description copied from interface:AttributeResolverGets the active attribute of the AttributeResolver object- Specified by:
isActivein interfaceAttributeResolver
-
isFocus
public boolean isFocus(Object e)
Description copied from interface:AttributeResolverGets the focus attribute of the AttributeResolver object- Specified by:
isFocusin interfaceAttributeResolver
-
isHover
public boolean isHover(Object e)
Description copied from interface:AttributeResolverGets the hover attribute of the AttributeResolver object- Specified by:
isHoverin interfaceAttributeResolver
-
isLink
public boolean isLink(Object el)
Description copied from interface:AttributeResolverGets the link attribute of the AttributeResolver object- Specified by:
isLinkin interfaceAttributeResolver
-
isVisited
public boolean isVisited(Object e)
Description copied from interface:AttributeResolverGets the visited attribute of the AttributeResolver object- Specified by:
isVisitedin interfaceAttributeResolver
-
-