Class StandardAttributeResolver

java.lang.Object
org.xhtmlrenderer.context.StandardAttributeResolver
All Implemented Interfaces:
AttributeResolver

@ParametersAreNonnullByDefault public class StandardAttributeResolver extends Object implements AttributeResolver
An instance which works together with a w3c DOM tree
Author:
Torbjoern Gannholm
  • Constructor Details

  • Method Details

    • getAttributeValue

      public String getAttributeValue(Node e, String attrName)
      Gets the attributeValue attribute of the StandardAttributeResolver object
      Specified by:
      getAttributeValue in interface AttributeResolver
    • getAttributeValue

      public String getAttributeValue(Node e, String namespaceURI, String attrName)
      Description copied from interface: AttributeResolver
      Required to return null if attribute does not exist and not null if attribute exists.
      Specified by:
      getAttributeValue in interface AttributeResolver
    • getClass

      public String getClass(Node e)
      Gets the class attribute of the StandardAttributeResolver object
      Specified by:
      getClass in interface AttributeResolver
    • getID

      public String getID(Node e)
      Gets the iD attribute of the StandardAttributeResolver object
      Specified by:
      getID in interface AttributeResolver
    • getNonCssStyling

      public String getNonCssStyling(Node e)
      Specified by:
      getNonCssStyling in interface AttributeResolver
      Returns:
      The non css styling (specificity 0,0,0,0 on author styles, according to css 2.1)
    • getElementStyling

      public String getElementStyling(Node e)
      Gets the elementStyling attribute of the StandardAttributeResolver object
      Specified by:
      getElementStyling in interface AttributeResolver
      Returns:
      The elementStyling value (corresponding to xhtml style attribute, specificity 1,0,0,0 according to css 2.1)
    • getLang

      public String getLang(Node e)
      Gets the lang attribute of the StandardAttributeResolver object
      Specified by:
      getLang in interface AttributeResolver
    • isLink

      public boolean isLink(Node e)
      Gets the link attribute of the StandardAttributeResolver object
      Specified by:
      isLink in interface AttributeResolver
    • isVisited

      public boolean isVisited(Node e)
      Gets the visited attribute of the StandardAttributeResolver object
      Specified by:
      isVisited in interface AttributeResolver
    • isHover

      public boolean isHover(Node e)
      Gets the hover attribute of the StandardAttributeResolver object
      Specified by:
      isHover in interface AttributeResolver
    • isActive

      public boolean isActive(Node e)
      Gets the active attribute of the StandardAttributeResolver object
      Specified by:
      isActive in interface AttributeResolver
    • isFocus

      public boolean isFocus(Node e)
      Gets the focus attribute of the StandardAttributeResolver object
      Specified by:
      isFocus in interface AttributeResolver