Package com.openhtmltopdf.context
Class StandardAttributeResolver
- java.lang.Object
-
- com.openhtmltopdf.context.StandardAttributeResolver
-
- All Implemented Interfaces:
AttributeResolver
public class StandardAttributeResolver extends java.lang.Object implements AttributeResolver
An instance which works together with a w3c DOM tree
-
-
Field Summary
Fields Modifier and Type Field Description private NamespaceHandlernshDescription of the Fieldprivate UserAgentCallbackuacDescription of the Fieldprivate UserInterfaceuiDescription of the Field
-
Constructor Summary
Constructors Constructor Description StandardAttributeResolver(NamespaceHandler nsh, UserAgentCallback uac, UserInterface ui)Constructor for the StandardAttributeResolver object
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetAttributeValue(java.lang.Object e, java.lang.String attrName)Gets the attributeValue attribute of the StandardAttributeResolver objectjava.lang.StringgetAttributeValue(java.lang.Object e, java.lang.String namespaceURI, java.lang.String attrName)May return null.java.lang.StringgetClass(java.lang.Object e)Gets the class attribute of the StandardAttributeResolver objectjava.lang.StringgetElementStyling(java.lang.Object e)Gets the elementStyling attribute of the StandardAttributeResolver objectjava.lang.StringgetID(java.lang.Object e)Gets the iD attribute of the StandardAttributeResolver objectjava.lang.StringgetLang(java.lang.Object e)Gets the lang attribute of the StandardAttributeResolver objectjava.lang.StringgetNonCssStyling(java.lang.Object e)may return nullbooleanisActive(java.lang.Object e)Gets the active attribute of the StandardAttributeResolver objectbooleanisFocus(java.lang.Object e)Gets the focus attribute of the StandardAttributeResolver objectbooleanisHover(java.lang.Object e)Gets the hover attribute of the StandardAttributeResolver objectbooleanisLink(java.lang.Object e)Gets the link attribute of the StandardAttributeResolver objectbooleanisVisited(java.lang.Object e)Gets the visited attribute of the StandardAttributeResolver object
-
-
-
Field Detail
-
nsh
private NamespaceHandler nsh
Description of the Field
-
uac
private UserAgentCallback uac
Description of the Field
-
ui
private UserInterface ui
Description of the Field
-
-
Constructor Detail
-
StandardAttributeResolver
public StandardAttributeResolver(NamespaceHandler nsh, UserAgentCallback uac, UserInterface ui)
Constructor for the StandardAttributeResolver object- Parameters:
nsh- PARAMuac- PARAMui- PARAM
-
-
Method Detail
-
getAttributeValue
public java.lang.String getAttributeValue(java.lang.Object e, java.lang.String attrName)Gets the attributeValue attribute of the StandardAttributeResolver object- Specified by:
getAttributeValuein interfaceAttributeResolver- Parameters:
e- PARAMattrName- PARAM- Returns:
- The attributeValue value
-
getAttributeValue
public java.lang.String getAttributeValue(java.lang.Object e, java.lang.String namespaceURI, java.lang.String attrName)Description copied from interface:AttributeResolverMay return null. Required to return null if attribute does not exist and not null if attribute exists.- Specified by:
getAttributeValuein interfaceAttributeResolver
-
getClass
public java.lang.String getClass(java.lang.Object e)
Gets the class attribute of the StandardAttributeResolver object- Specified by:
getClassin interfaceAttributeResolver- Parameters:
e- PARAM- Returns:
- The class value
-
getID
public java.lang.String getID(java.lang.Object e)
Gets the iD attribute of the StandardAttributeResolver object- Specified by:
getIDin interfaceAttributeResolver- Parameters:
e- PARAM- Returns:
- The iD value
-
getNonCssStyling
public java.lang.String getNonCssStyling(java.lang.Object e)
Description copied from interface:AttributeResolvermay return null- Specified by:
getNonCssStylingin interfaceAttributeResolver- Parameters:
e- PARAM- Returns:
- The non css styling (specificity 0,0,0,0 on author styles, according to css 2.1)
-
getElementStyling
public java.lang.String getElementStyling(java.lang.Object e)
Gets the elementStyling attribute of the StandardAttributeResolver object- Specified by:
getElementStylingin interfaceAttributeResolver- Parameters:
e- PARAM- Returns:
- The elementStyling value
-
getLang
public java.lang.String getLang(java.lang.Object e)
Gets the lang attribute of the StandardAttributeResolver object- Specified by:
getLangin interfaceAttributeResolver- Parameters:
e- PARAM- Returns:
- The lang value
-
isLink
public boolean isLink(java.lang.Object e)
Gets the link attribute of the StandardAttributeResolver object- Specified by:
isLinkin interfaceAttributeResolver- Parameters:
e- PARAM- Returns:
- The link value
-
isVisited
public boolean isVisited(java.lang.Object e)
Gets the visited attribute of the StandardAttributeResolver object- Specified by:
isVisitedin interfaceAttributeResolver- Parameters:
e- PARAM- Returns:
- The visited value
-
isHover
public boolean isHover(java.lang.Object e)
Gets the hover attribute of the StandardAttributeResolver object- Specified by:
isHoverin interfaceAttributeResolver- Parameters:
e- PARAM- Returns:
- The hover value
-
isActive
public boolean isActive(java.lang.Object e)
Gets the active attribute of the StandardAttributeResolver object- Specified by:
isActivein interfaceAttributeResolver- Parameters:
e- PARAM- Returns:
- The active value
-
isFocus
public boolean isFocus(java.lang.Object e)
Gets the focus attribute of the StandardAttributeResolver object- Specified by:
isFocusin interfaceAttributeResolver- Parameters:
e- PARAM- Returns:
- The focus value
-
-