Package org.xhtmlrenderer.context
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 Summary
Constructors Constructor Description StandardAttributeResolver(NamespaceHandler nsh, UserAgentCallback uac, UserInterface ui)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetAttributeValue(Object e, String attrName)Gets the attributeValue attribute of the StandardAttributeResolver objectStringgetAttributeValue(Object e, String namespaceURI, String attrName)Required to return null if attribute does not exist and not null if attribute exists.StringgetClass(Object e)Gets the class attribute of the StandardAttributeResolver objectStringgetElementStyling(Object e)Gets the elementStyling attribute of the StandardAttributeResolver objectStringgetID(Object e)Gets the iD attribute of the StandardAttributeResolver objectStringgetLang(Object e)Gets the lang attribute of the StandardAttributeResolver objectStringgetNonCssStyling(Object e)booleanisActive(Object e)Gets the active attribute of the StandardAttributeResolver objectbooleanisFocus(Object e)Gets the focus attribute of the StandardAttributeResolver objectbooleanisHover(Object e)Gets the hover attribute of the StandardAttributeResolver objectbooleanisLink(Object e)Gets the link attribute of the StandardAttributeResolver objectbooleanisVisited(Object e)Gets the visited attribute of the StandardAttributeResolver object
-
-
-
Constructor Detail
-
StandardAttributeResolver
public StandardAttributeResolver(NamespaceHandler nsh, UserAgentCallback uac, UserInterface ui)
-
-
Method Detail
-
getAttributeValue
public String getAttributeValue(Object e, String attrName)
Gets the attributeValue attribute of the StandardAttributeResolver object- Specified by:
getAttributeValuein interfaceAttributeResolver
-
getAttributeValue
public String getAttributeValue(Object e, String namespaceURI, String attrName)
Description copied from interface:AttributeResolverRequired to return null if attribute does not exist and not null if attribute exists.- Specified by:
getAttributeValuein interfaceAttributeResolver
-
getClass
public String getClass(Object e)
Gets the class attribute of the StandardAttributeResolver object- Specified by:
getClassin interfaceAttributeResolver
-
getID
public String getID(Object e)
Gets the iD attribute of the StandardAttributeResolver object- Specified by:
getIDin interfaceAttributeResolver
-
getNonCssStyling
public String getNonCssStyling(Object e)
- Specified by:
getNonCssStylingin interfaceAttributeResolver- 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:
getElementStylingin interfaceAttributeResolver- Returns:
- The elementStyling value (corresponding to xhtml style attribute, specificity 1,0,0,0 according to css 2.1)
-
getLang
public String getLang(Object e)
Gets the lang attribute of the StandardAttributeResolver object- Specified by:
getLangin interfaceAttributeResolver
-
isLink
public boolean isLink(Object e)
Gets the link attribute of the StandardAttributeResolver object- Specified by:
isLinkin interfaceAttributeResolver
-
isVisited
public boolean isVisited(Object e)
Gets the visited attribute of the StandardAttributeResolver object- Specified by:
isVisitedin interfaceAttributeResolver
-
isHover
public boolean isHover(Object e)
Gets the hover attribute of the StandardAttributeResolver object- Specified by:
isHoverin interfaceAttributeResolver
-
isActive
public boolean isActive(Object e)
Gets the active attribute of the StandardAttributeResolver object- Specified by:
isActivein interfaceAttributeResolver
-
isFocus
public boolean isFocus(Object e)
Gets the focus attribute of the StandardAttributeResolver object- Specified by:
isFocusin interfaceAttributeResolver
-
-