xbrl.formula.OCCXPathRule

An xbrl.formula.OCCXPathRule class represents an XPath OCC rule in a <formula:formula> or <table:table> resource.

Base class: xbrl.formula.OCCRule -> xbrl.formula.AspectRule

class xbrl.formula.OCCXPathRule

Proper instances of this class will be created within RaptorXML only, instantiation from script code will throw a NotImplementedError exception.

Attributes

xbrl.formula.AspectRule.element

Returns an xml.ElementInformationItem object which represents the XML element information item of the aspect rule.

xbrl.formula.OCCRule.occ

Returns the value of the @occ attribute as an OCCType enumeration.

xbrl.formula.OCCXPathRule.select

If the XPath OCC rule has a @select attribute, an xbrl.XPathExpression object is returned. Otherwise None is returned.

xbrl.formula.AspectRule.source

Returns the inferred value of the ‘source’ attribute as xml.QName.

Special methods

__bool__, __eq__, __ge__, __gt__, __le__, __lt__, __ne__