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.

  • Method Details

    • getAttributeValue

      @Nullable String getAttributeValue(Node e, String attrName)
      Required to return null if attribute does not exist, and not null if attribute exists.
    • getAttributeValue

      @Nullable String getAttributeValue(Node e, String namespaceURI, String attrName)
      Required to return null if attribute does not exist and not null if attribute exists.
    • getClass

      @Nullable String getClass(Node e)
    • getID

      @Nullable String getID(Node e)
    • getNonCssStyling

      @Nullable String getNonCssStyling(Node e)
      Returns:
      The non css styling (specificity 0,0,0,0 on author styles, according to css 2.1)
    • getElementStyling

      @Nullable String getElementStyling(Node e)
      Returns:
      The elementStyling value (corresponding to xhtml style attribute, specificity 1,0,0,0 according to css 2.1)
    • getLang

      @Nullable String getLang(Node e)
    • isLink

      boolean isLink(Node e)
      Gets the link attribute of the AttributeResolver object
    • isVisited

      boolean isVisited(Node e)
      Gets the visited attribute of the AttributeResolver object
    • isHover

      boolean isHover(Node e)
      Gets the hover attribute of the AttributeResolver object
    • isActive

      boolean isActive(Node e)
      Gets the active attribute of the AttributeResolver object
    • isFocus

      boolean isFocus(Node e)
      Gets the focus attribute of the AttributeResolver object