xbrl.formula.UnitRule
¶
An xbrl.formula.UnitRule
class represents an unit rule in a <formula:formula> or <table:table> resource.
Base class: xbrl.formula.AspectRule
Nested classes: xbrl.formula.UnitRule.DivideBy
, xbrl.formula.UnitRule.MultiplyBy
- class xbrl.formula.UnitRule¶
Proper instances of this class will be created within RaptorXML only, instantiation from script code will throw a
NotImplementedError
exception.
Attributes¶
- xbrl.formula.UnitRule.augment¶
Returns the inferred value of the ‘augment’ attribute as bool.
- xbrl.formula.UnitRule.divide_by¶
Returns an iterator of xbrl.formula.DivideBy objects representing the <formula:divideBy> child element information items of the unit rule.
- xbrl.formula.AspectRule.element
Returns an xml.ElementInformationItem object which represents the XML element information item of the aspect rule.
- xbrl.formula.UnitRule.multiply_by¶
Returns an iterator of xbrl.formula.MultiplyBy objects representing the <formula:multiplyBy> child element information items of the unit rule.
- xbrl.formula.AspectRule.source
Returns the inferred value of the ‘source’ attribute as xml.QName.
Special methods¶
__bool__, __eq__, __ge__, __gt__, __le__, __lt__, __ne__