Package com.openhtmltopdf.css.extend.lib
Class DOMStaticXhtmlAttributeResolver
- java.lang.Object
-
- com.openhtmltopdf.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
Modifier and Type Method Description StringgetAttributeValue(Object e, String attrName)May return null.StringgetAttributeValue(Object o, String namespaceURI, String attrName)May return null.StringgetClass(Object e)may return nullStringgetElementStyling(Object el)may return nullStringgetID(Object e)may return nullStringgetLang(Object e)may return nullStringgetNonCssStyling(Object e)may return nullbooleanisActive(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:AttributeResolverMay return null. Required 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:AttributeResolverMay return null. Required to return null if attribute does not exist and not null if attribute exists.- Specified by:
getAttributeValuein interfaceAttributeResolver
-
getClass
public String getClass(Object e)
Description copied from interface:AttributeResolvermay return null- Specified by:
getClassin interfaceAttributeResolver- Parameters:
e- PARAM- Returns:
- The class value
-
getID
public String getID(Object e)
Description copied from interface:AttributeResolvermay return null- Specified by:
getIDin interfaceAttributeResolver- Parameters:
e- PARAM- Returns:
- The iD value
-
getNonCssStyling
public String getNonCssStyling(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 String getLang(Object e)
Description copied from interface:AttributeResolvermay return null- Specified by:
getLangin interfaceAttributeResolver- Parameters:
e- PARAM- Returns:
- The lang value
-
getElementStyling
public String getElementStyling(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(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(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(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(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(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
-
-