getAttributeValue

open fun getAttributeValue(attribute: String, expectedType: <Error class: unknown class>? = null): <Error class: unknown class>?

Queries the named @attribute on @menu_item.

If @expected_type is specified and the attribute does not have this type, null is returned. null is also returned if the attribute simply does not exist.

Return

the attribute value, or null

Since

2.34

Parameters

attribute

the attribute name to query

expectedType

the expected type of the attribute