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 java.lang.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 java.lang.StringgetAttributeValue(java.lang.Object e, java.lang.String attrName)May return null.java.lang.StringgetAttributeValue(java.lang.Object o, java.lang.String namespaceURI, java.lang.String attrName)May return null.java.lang.StringgetClass(java.lang.Object e)may return nulljava.lang.StringgetElementStyling(java.lang.Object el)may return nulljava.lang.StringgetID(java.lang.Object e)may return nulljava.lang.StringgetLang(java.lang.Object e)may return nulljava.lang.StringgetNonCssStyling(java.lang.Object e)may return nullbooleanisActive(java.lang.Object e)Gets the active attribute of the AttributeResolver objectbooleanisFocus(java.lang.Object e)Gets the focus attribute of the AttributeResolver objectbooleanisHover(java.lang.Object e)Gets the hover attribute of the AttributeResolver objectbooleanisLink(java.lang.Object el)Gets the link attribute of the AttributeResolver objectbooleanisVisited(java.lang.Object e)Gets the visited attribute of the AttributeResolver object
-
-
-
Method Detail
-
getAttributeValue
public java.lang.String getAttributeValue(java.lang.Object e, java.lang.String attrName)Description copied from interface:AttributeResolverMay return null. Required to return null if attribute does not exist and not null if attribute exists.- Specified by:
getAttributeValuein interfaceAttributeResolver
-
getAttributeValue
public java.lang.String getAttributeValue(java.lang.Object o, java.lang.String namespaceURI, java.lang.String attrName)Description copied from interface:AttributeResolverMay return null. Required to return null if attribute does not exist and not null if attribute exists.- Specified by:
getAttributeValuein interfaceAttributeResolver
-
getClass
public java.lang.String getClass(java.lang.Object e)
Description copied from interface:AttributeResolvermay return null- Specified by:
getClassin interfaceAttributeResolver- Parameters:
e- PARAM- Returns:
- The class value
-
getID
public java.lang.String getID(java.lang.Object e)
Description copied from interface:AttributeResolvermay return null- Specified by:
getIDin interfaceAttributeResolver- Parameters:
e- PARAM- Returns:
- The iD value
-
getNonCssStyling
public java.lang.String getNonCssStyling(java.lang.Object e)
Description copied from interface:AttributeResolvermay return null- Specified by:
getNonCssStylingin interfaceAttributeResolver- Parameters:
e- PARAM- Returns:
- The non css styling (specificity 0,0,0,0 on author styles, according to css 2.1)
-
getLang
public java.lang.String getLang(java.lang.Object e)
Description copied from interface:AttributeResolvermay return null- Specified by:
getLangin interfaceAttributeResolver- Parameters:
e- PARAM- Returns:
- The lang value
-
getElementStyling
public java.lang.String getElementStyling(java.lang.Object el)
Description copied from interface:AttributeResolvermay return null- Specified by:
getElementStylingin interfaceAttributeResolver- Parameters:
el- PARAM- Returns:
- The elementStyling value (corresponding to xhtml style attribute, specificity 1,0,0,0 according to css 2.1)
-
isActive
public boolean isActive(java.lang.Object e)
Description copied from interface:AttributeResolverGets the active attribute of the AttributeResolver object- Specified by:
isActivein interfaceAttributeResolver- Parameters:
e- PARAM- Returns:
- The active value
-
isFocus
public boolean isFocus(java.lang.Object e)
Description copied from interface:AttributeResolverGets the focus attribute of the AttributeResolver object- Specified by:
isFocusin interfaceAttributeResolver- Parameters:
e- PARAM- Returns:
- The focus value
-
isHover
public boolean isHover(java.lang.Object e)
Description copied from interface:AttributeResolverGets the hover attribute of the AttributeResolver object- Specified by:
isHoverin interfaceAttributeResolver- Parameters:
e- PARAM- Returns:
- The hover value
-
isLink
public boolean isLink(java.lang.Object el)
Description copied from interface:AttributeResolverGets the link attribute of the AttributeResolver object- Specified by:
isLinkin interfaceAttributeResolver- Parameters:
el- PARAM- Returns:
- The link value
-
isVisited
public boolean isVisited(java.lang.Object e)
Description copied from interface:AttributeResolverGets the visited attribute of the AttributeResolver object- Specified by:
isVisitedin interfaceAttributeResolver- Parameters:
e- PARAM- Returns:
- The visited value
-
-