Class StandardAttributeResolver

  • All Implemented Interfaces:
    AttributeResolver

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

      • StandardAttributeResolver

        public StandardAttributeResolver​(NamespaceHandler nsh,
                                         UserAgentCallback uac,
                                         UserInterface ui)
        Constructor for the StandardAttributeResolver object
        Parameters:
        nsh - PARAM
        uac - PARAM
        ui - PARAM
    • Method Detail

      • getAttributeValue

        public String getAttributeValue​(Object e,
                                        String attrName)
        Gets the attributeValue attribute of the StandardAttributeResolver object
        Specified by:
        getAttributeValue in interface AttributeResolver
        Parameters:
        e - PARAM
        attrName - PARAM
        Returns:
        The attributeValue value
      • getClass

        public String getClass​(Object e)
        Gets the class attribute of the StandardAttributeResolver object
        Specified by:
        getClass in interface AttributeResolver
        Parameters:
        e - PARAM
        Returns:
        The class value
      • getID

        public String getID​(Object e)
        Gets the iD attribute of the StandardAttributeResolver object
        Specified by:
        getID in interface AttributeResolver
        Parameters:
        e - PARAM
        Returns:
        The iD value
      • getNonCssStyling

        public String getNonCssStyling​(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)
      • getElementStyling

        public String getElementStyling​(Object e)
        Gets the elementStyling attribute of the StandardAttributeResolver object
        Specified by:
        getElementStyling in interface AttributeResolver
        Parameters:
        e - PARAM
        Returns:
        The elementStyling value
      • getLang

        public String getLang​(Object e)
        Gets the lang attribute of the StandardAttributeResolver object
        Specified by:
        getLang in interface AttributeResolver
        Parameters:
        e - PARAM
        Returns:
        The lang value
      • isLink

        public boolean isLink​(Object e)
        Gets the link attribute of the StandardAttributeResolver object
        Specified by:
        isLink in interface AttributeResolver
        Parameters:
        e - PARAM
        Returns:
        The link value
      • isVisited

        public boolean isVisited​(Object e)
        Gets the visited attribute of the StandardAttributeResolver object
        Specified by:
        isVisited in interface AttributeResolver
        Parameters:
        e - PARAM
        Returns:
        The visited value
      • isHover

        public boolean isHover​(Object e)
        Gets the hover attribute of the StandardAttributeResolver object
        Specified by:
        isHover in interface AttributeResolver
        Parameters:
        e - PARAM
        Returns:
        The hover value
      • isActive

        public boolean isActive​(Object e)
        Gets the active attribute of the StandardAttributeResolver object
        Specified by:
        isActive in interface AttributeResolver
        Parameters:
        e - PARAM
        Returns:
        The active value
      • isFocus

        public boolean isFocus​(Object e)
        Gets the focus attribute of the StandardAttributeResolver object
        Specified by:
        isFocus in interface AttributeResolver
        Parameters:
        e - PARAM
        Returns:
        The focus value