Flying Saucer Project Release ${app.version}

org.xhtmlrenderer.css.extend
Interface AttributeResolver

All Known Implementing Classes:
DOMStaticXhtmlAttributeResolver, StandardAttributeResolver

public interface AttributeResolver

In XML, an application may or may not know how to find the ID and/or class and/or attribute defaults of an element.

To enable matching of identity conditions, class conditions, language, and attribute defaults you need to provide an AttributeResolver to the StyleMap.

NOTE: The application is required to look in a document's internal subset for default attribute values, but the application is not required to use its built-in knowledge of a namespace or look in the external subset.

Author:
Torbjörn Gannholm

Method Summary
 java.lang.String getAttributeValue(java.lang.Object e, java.lang.String attrName)
          May return null.
 java.lang.String getAttributeValue(java.lang.Object e, java.lang.String namespaceURI, java.lang.String attrName)
          May return null.
 java.lang.String getClass(java.lang.Object e)
          may return null
 java.lang.String getElementStyling(java.lang.Object e)
          may return null
 java.lang.String getID(java.lang.Object e)
          may return null
 java.lang.String getLang(java.lang.Object e)
          may return null
 java.lang.String getNonCssStyling(java.lang.Object e)
          may return null
 boolean isActive(java.lang.Object e)
          Gets the active attribute of the AttributeResolver object
 boolean isFocus(java.lang.Object e)
          Gets the focus attribute of the AttributeResolver object
 boolean isHover(java.lang.Object e)
          Gets the hover attribute of the AttributeResolver object
 boolean isLink(java.lang.Object e)
          Gets the link attribute of the AttributeResolver object
 boolean isVisited(java.lang.Object e)
          Gets the visited attribute of the AttributeResolver object
 

Method Detail

getAttributeValue

java.lang.String getAttributeValue(java.lang.Object e,
                                   java.lang.String attrName)
May return null. Required to return null if attribute does not exist and not null if attribute exists.


getAttributeValue

java.lang.String getAttributeValue(java.lang.Object e,
                                   java.lang.String namespaceURI,
                                   java.lang.String attrName)
May return null. Required to return null if attribute does not exist and not null if attribute exists.


getClass

java.lang.String getClass(java.lang.Object e)
may return null

Parameters:
e - PARAM
Returns:
The class value

getID

java.lang.String getID(java.lang.Object e)
may return null

Parameters:
e - PARAM
Returns:
The iD value

getNonCssStyling

java.lang.String getNonCssStyling(java.lang.Object e)
may return null

Parameters:
e - PARAM
Returns:
The non css styling (specificity 0,0,0,0 on author styles, according to css 2.1)

getElementStyling

java.lang.String getElementStyling(java.lang.Object e)
may return null

Parameters:
e - PARAM
Returns:
The elementStyling value (corresponding to xhtml style attribute, specificity 1,0,0,0 according to css 2.1)

getLang

java.lang.String getLang(java.lang.Object e)
may return null

Parameters:
e - PARAM
Returns:
The lang value

isLink

boolean isLink(java.lang.Object e)
Gets the link attribute of the AttributeResolver object

Parameters:
e - PARAM
Returns:
The link value

isVisited

boolean isVisited(java.lang.Object e)
Gets the visited attribute of the AttributeResolver object

Parameters:
e - PARAM
Returns:
The visited value

isHover

boolean isHover(java.lang.Object e)
Gets the hover attribute of the AttributeResolver object

Parameters:
e - PARAM
Returns:
The hover value

isActive

boolean isActive(java.lang.Object e)
Gets the active attribute of the AttributeResolver object

Parameters:
e - PARAM
Returns:
The active value

isFocus

boolean isFocus(java.lang.Object e)
Gets the focus attribute of the AttributeResolver object

Parameters:
e - PARAM
Returns:
The focus value

Flying Saucer Project Release ${app.version}

Flying Saucer Project Home