xplain.Attribute

class xplain.Attribute(object_name, dimension_name, attribute_name, ref_session)

Bases: object

get_levels()

Retrieves the hierarchy level names of this attribute.

Returns

List of hierarchy level names as strings.

Raises

ValueError – If attribute information is not found or data is invalid.

get_name()

Retrieves the name of the attribute. :return: Attribute name as a string.

get_root_state()

returns the root state of this attribute :return: string

get_state_hierarchy(state=None, levels=None)

state hierarchy of this attribute :return: hierarcy as JSON