Flying Saucer Project Release ${app.version}

org.xhtmlrenderer.css.extend.lib
Class DOMStaticXhtmlAttributeResolver

java.lang.Object
  extended by 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
DOMStaticXhtmlAttributeResolver()
           
 
Method Summary
 java.lang.String getAttributeValue(java.lang.Object e, java.lang.String attrName)
          May return null.
 java.lang.String getAttributeValue(java.lang.Object o, 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 el)
          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 el)
          Gets the link attribute of the AttributeResolver object
 boolean isVisited(java.lang.Object e)
          Gets the visited attribute of the AttributeResolver object
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DOMStaticXhtmlAttributeResolver

public DOMStaticXhtmlAttributeResolver()
Method Detail

getAttributeValue

public java.lang.String getAttributeValue(java.lang.Object e,
                                          java.lang.String attrName)
Description copied from interface: AttributeResolver
May return null. Required to return null if attribute does not exist and not null if attribute exists.

Specified by:
getAttributeValue in interface AttributeResolver

getAttributeValue

public java.lang.String getAttributeValue(java.lang.Object o,
                                          java.lang.String namespaceURI,
                                          java.lang.String attrName)
Description copied from interface: AttributeResolver
May return null. Required to return null if attribute does not exist and not null if attribute exists.

Specified by:
getAttributeValue in interface AttributeResolver

getClass

public java.lang.String getClass(java.lang.Object e)
Description copied from interface: AttributeResolver
may return null

Specified by:
getClass in interface AttributeResolver
Parameters:
e - PARAM
Returns:
The class value

getID

public java.lang.String getID(java.lang.Object e)
Description copied from interface: AttributeResolver
may return null

Specified by:
getID in interface AttributeResolver
Parameters:
e - PARAM
Returns:
The iD value

getNonCssStyling

public java.lang.String getNonCssStyling(java.lang.Object e)
Description copied from interface: AttributeResolver
may return null

Specified by:
getNonCssStyling in interface AttributeResolver
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: AttributeResolver
may return null

Specified by:
getLang in interface AttributeResolver
Parameters:
e - PARAM
Returns:
The lang value

getElementStyling

public java.lang.String getElementStyling(java.lang.Object el)
Description copied from interface: AttributeResolver
may return null

Specified by:
getElementStyling in interface AttributeResolver
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: AttributeResolver
Gets the active attribute of the AttributeResolver object

Specified by:
isActive in interface AttributeResolver
Parameters:
e - PARAM
Returns:
The active value

isFocus

public boolean isFocus(java.lang.Object e)
Description copied from interface: AttributeResolver
Gets the focus attribute of the AttributeResolver object

Specified by:
isFocus in interface AttributeResolver
Parameters:
e - PARAM
Returns:
The focus value

isHover

public boolean isHover(java.lang.Object e)
Description copied from interface: AttributeResolver
Gets the hover attribute of the AttributeResolver object

Specified by:
isHover in interface AttributeResolver
Parameters:
e - PARAM
Returns:
The hover value

isLink

public boolean isLink(java.lang.Object el)
Description copied from interface: AttributeResolver
Gets the link attribute of the AttributeResolver object

Specified by:
isLink in interface AttributeResolver
Parameters:
el - PARAM
Returns:
The link value

isVisited

public boolean isVisited(java.lang.Object e)
Description copied from interface: AttributeResolver
Gets the visited attribute of the AttributeResolver object

Specified by:
isVisited in interface AttributeResolver
Parameters:
e - PARAM
Returns:
The visited value

Flying Saucer Project Release ${app.version}

Flying Saucer Project Home