Top Description Methods
com.openhtmltopdf.css.extend

public Interface AttributeResolver

Known Direct Implementers
com.openhtmltopdf.context.StandardAttributeResolver

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.

Author
Torbjoern Gannholm

Method Summary

Modifier and TypeMethod and Description
public String
getAttributeValue(Object e, String attrName)

May return null.

public String
getAttributeValue(Object e, String namespaceURI, String attrName)

May return null.

public String

Returns:

The class value
getClass
(Object
PARAM
e
)

may return null

public String

Returns:

The elementStyling value (corresponding to xhtml style attribute, specificity 1,0,0,0 according to css 2.1)
getElementStyling
(Object
PARAM
e
)

may return null

public String

Returns:

The iD value
getID
(Object
PARAM
e
)

may return null

public String

Returns:

The lang value
getLang
(Object
PARAM
e
)

may return null

public String

Returns:

The non css styling (specificity 0,0,0,0 on author styles, according to css 2.1)
getNonCssStyling
(Object
PARAM
e
)

may return null

public boolean

Returns:

The active value
isActive
(Object
PARAM
e
)

Gets the active attribute of the AttributeResolver object

public boolean

Returns:

The focus value
isFocus
(Object
PARAM
e
)

Gets the focus attribute of the AttributeResolver object

public boolean

Returns:

The hover value
isHover
(Object
PARAM
e
)

Gets the hover attribute of the AttributeResolver object

public boolean

Returns:

The visited value
isVisited
(Object
PARAM
e
)

Gets the visited attribute of the AttributeResolver object

Method Detail

getAttributeValueback to summary
public String getAttributeValue(Object e, String attrName)

May return null. Required to return null if attribute does not exist and not null if attribute exists.

getAttributeValueback to summary
public String getAttributeValue(Object e, String namespaceURI, String attrName)

May return null. Required to return null if attribute does not exist and not null if attribute exists.

getClassback to summary
public String getClass(Object e)

may return null

Parameters
e:Object

PARAM

Returns:String

The class value

getElementStylingback to summary
public String getElementStyling(Object e)

may return null

Parameters
e:Object

PARAM

Returns:String

The elementStyling value (corresponding to xhtml style attribute, specificity 1,0,0,0 according to css 2.1)

getIDback to summary
public String getID(Object e)

may return null

Parameters
e:Object

PARAM

Returns:String

The iD value

getLangback to summary
public String getLang(Object e)

may return null

Parameters
e:Object

PARAM

Returns:String

The lang value

getNonCssStylingback to summary
public String getNonCssStyling(Object e)

may return null

Parameters
e:Object

PARAM

Returns:String

The non css styling (specificity 0,0,0,0 on author styles, according to css 2.1)

isActiveback to summary
public boolean isActive(Object e)

Gets the active attribute of the AttributeResolver object

Parameters
e:Object

PARAM

Returns:boolean

The active value

isFocusback to summary
public boolean isFocus(Object e)

Gets the focus attribute of the AttributeResolver object

Parameters
e:Object

PARAM

Returns:boolean

The focus value

isHoverback to summary
public boolean isHover(Object e)

Gets the hover attribute of the AttributeResolver object

Parameters
e:Object

PARAM

Returns:boolean

The hover value

isVisitedback to summary
public boolean isVisited(Object e)

Gets the visited attribute of the AttributeResolver object

Parameters
e:Object

PARAM

Returns:boolean

The visited value