xbrl.table.layout.Axis¶
An xbrl.table.layout.Axis class represents an axis of a layout table.
-
class
xbrl.table.layout.Axis¶ Proper instances of this class will be created within RaptorXML only, instantiation from script code will throw a
NotImplementedErrorexception.
Attributes¶
-
xbrl.table.layout.Axis.axis¶ Returns the type of this axis as an
xbrl.table.AxisTypeenumeration.
-
xbrl.table.layout.Axis.row_count¶ Returns the number of header rows in this axis.
-
xbrl.table.layout.Axis.shape¶ Returns the dimensions of the axis headers in this axis as a (slice_count,row_count) tuple.
-
xbrl.table.layout.Axis.slice_count¶ Returns the number of slices along this axis.
-
xbrl.table.layout.Axis.table¶ Returns an
xbrl.table.layout.Tableobject which represents the parent layout table.
Methods¶
-
xbrl.table.layout.Axis.definition_breakdown(row)¶ Returns an
xbrl.table.Breakdownobject which represents the corresponding breakdown in the definition model whose contribution includes the given header row. Raises anIndexErrorif the row is out of bounds.
-
xbrl.table.layout.Axis.header(*args, **kargs)¶ Returns an
xbrl.table.layout.AxisHeaderobject for the given coordinate. The coordinate can be specified by x and y or slice and row arguments or an iterable yielding 2 integer values. Raises anIndexErrorif the coordinate is out of bounds.
-
xbrl.table.layout.Axis.row(row)¶ Returns an iterator of
xbrl.table.layout.AxisHeaderobjects representing the header cells in the given header row. Raises anIndexErrorif the row is out of bounds.
-
xbrl.table.layout.Axis.slice(slice)¶ Returns an iterator of
xbrl.table.layout.AxisHeaderobjects representing the header cells in the given slice. Raises anIndexErrorif the slice is out of bounds.
-
xbrl.table.layout.Axis.structural_breakdown(row)¶ Returns an
xbrl.table.structural.Breakdownobject which represents the corresponding breakdown in the structural model whose contribution includes the given header row. Raises anIndexErrorif the row is out of bounds.
Special methods¶
__bool__, __eq__, __ge__, __gt__, __le__, __lt__, __ne__