xbrl.formula.ConsistencyAssertion¶
An xbrl.formula.ConsistencyAssertion class represents a <ca:consistencyAsertion> resource in the formula linkbase.
Base class: xbrl.formula.Assertion -> xbrl.taxonomy.Resource
-
class
xbrl.formula.ConsistencyAssertion¶ Proper instances of this class will be created within RaptorXML only, instantiation from script code will throw a
NotImplementedErrorexception.
Attributes¶
-
xbrl.formula.ConsistencyAssertion.absolute_acceptance_radius¶ Returns an
xbrl.XPathExpressionobject representing the XPath expression in the ‘absoluteAcceptanceRadius’ attribute, or None if the ‘absoluteAcceptanceRadius’ attribute is absent.
-
xbrl.taxonomy.Resource.document Returns an
xml.Documentobject which represents the XBRL taxonomy document which contains this resource.
-
xbrl.taxonomy.Resource.documentation_label Returns an
xbrl.taxonomy.Labelobject which represents the standard generic label assigned in the documentation generic linkrole, otherwise None. In case of mulitple labels (e.g. in different languages) only the first label (according to the order attribute on the labelArc) is returned.
-
xbrl.taxonomy.Resource.effective_role Returns the value of the ‘xlink:role’ attribute as a string, or the standard role for this resource if the XML element information item doesn’t have an ‘xlink:role’ attribute. If no default standard role has been defined for this resource None is returned.
-
xbrl.taxonomy.Resource.element Returns an
xml.ElementInformationItemobject which represents the XML element information item of the <xl:resource> resource.
-
xbrl.taxonomy.Resource.extended_link Returns an
xbrl.taxonomy.ExtendedLinkobject which represents the containin XLink extended link.
-
xbrl.formula.ConsistencyAssertion.formula_relationships¶ Returns an iterator of
xbrl.formula.ConsistencyAssertionFormulaRelationshipobjects which represent the consistency-assertion-formula relationships from this <ca:consistencyAssertion> resource.
-
xbrl.taxonomy.Resource.id Returns the value of the ‘id’ attribute as a string, or None if the XML element information item doesn’t have an ‘id’ attribute.
-
xbrl.taxonomy.Resource.label Returns an
xbrl.taxonomy.Labelobject which represents the standard generic label assigned in the standard generic linkrole, otherwise None. In case of mulitple labels (e.g. in different languages) only the first label (according to the order attribute on the labelArc) is returned.
-
xbrl.formula.ConsistencyAssertion.parameter_relationships¶ Returns an iterator of
xbrl.formula.ConsistencyAssertionParameterRelationshipobjects which represent the consistency-assertion-paramter relationships from this <ca:consistencyAssertion> resource.
-
xbrl.formula.ConsistencyAssertion.proportional_acceptance_radius¶ Returns an
xbrl.XPathExpressionobject representing the XPath expression in the ‘proportionalAcceptanceRadius’ attribute, or None if the ‘proportionalAcceptanceRadius’ attribute is absent.
-
xbrl.taxonomy.Resource.qname Returns an
xml.QNameobject which represents the XML qualified name of the resource element information item.
-
xbrl.formula.Assertion.satisfied_message_relationships Returns an iterator of
xbrl.formula.AssertionSatisfiedMessageRelationshipobjects which represent the assertion-satisfied-message relationships from this <validation:assertion> resource.
-
xbrl.formula.ConsistencyAssertion.strict¶ Returns the inferred value of the ‘bindAsSequence’ attribute as bool.
-
xbrl.taxonomy.Resource.terse_label Returns an
xbrl.taxonomy.Labelobject which represents the standard generic label assigned in the terse generic linkrole, otherwise None. In case of mulitple labels (e.g. in different languages) only the first label (according to the order attribute on the labelArc) is returned.
-
xbrl.formula.Assertion.unsatisfied_message_relationships Returns an iterator of
xbrl.formula.AssertionUnsatisfiedMessageRelationshipobjects which represent the assertion-unsatisfied-message relationships from this <validation:assertion> resource.
-
xbrl.formula.Assertion.unsatisfied_severity Returns either the associated or default severity level as an
xbrl.formula.SeverityLevelenumeration.
-
xbrl.formula.Assertion.unsatisfied_severity_relationships Returns an iterator of
xbrl.formula.AssertionUnsatisfiedSeverityRelationshipobjects which represent the assertion-unsatisfied-severity relationships from this <validation:assertion> resource.
-
xbrl.taxonomy.Resource.verbose_label Returns an
xbrl.taxonomy.Labelobject which represents the standard generic label assigned in the verbose generic linkrole, otherwise None. In case of mulitple labels (e.g. in different languages) only the first label (according to the order attribute on the labelArc) is returned.
-
xbrl.taxonomy.Resource.xlink_label Returns the value of the ‘xlink:label’ attribute as a string, or None if the XML element information item doesn’t have an ‘xlink:label’ attribute.
-
xbrl.taxonomy.Resource.xlink_role Returns the value of the ‘xlink:role’ attribute as a string, or None if the XML element information item doesn’t have an ‘xlink:role’ attribute.
-
xbrl.taxonomy.Resource.xlink_title Returns the value of the ‘xlink:title’ attribute as a string, or None if the XML element information item doesn’t have an ‘xlink:title’ attribute.
Methods¶
-
xbrl.formula.Assertion.evaluate(Instance instance, **kargs) Processes this assertion against the given XBRL instance and returns an
xbrl.formula.AssertionProcessingResult,xml.ErrorLogtuple. Formula parameters can be set using the ‘formula_parameters’ argument by supplying a dict with the user-supplied parameter values. Use the same JSON format as accepted by the –formula-parameters CLI option. Other assertion processing options can be specified using additional kargs. Please consult the RaptorXML CLI documentation http://manual.altova.com/RaptorXML/raptorxmlxbrlserver/rxcli_xbrl_valxbrl.htm for a list of available options. Any errors and warnings reported during the assertion processing can be accessed through the returnedxml.ErrorLogobject.
-
xbrl.formula.ConsistencyAssertion.find_parameter(qname)¶ [Deprected: Use resolve_parameter() instead!] Returns an
xbrl.formula.Parameterobject which represents the formula paramter with the given XML qualified name within the scope of this assertion, or None if no parameter was found.
-
xbrl.taxonomy.Resource.label_relationships(link_role=None) Returns an iterator of
xbrl.taxonomy.ElementLabelRelationshipobjects. If called without any arguments, all element-label <gen:arc> relationships starting from this resource will be returned. Use the link_role argument to constrain the returned relationships.
-
xbrl.taxonomy.Resource.labels(label_role=None, link_role=None, lang=None) Returns an iterator of
xbrl.taxonomy.Labelobjects. If called without any arguments, all assigned generic labels will be returned. Use label_role, link_role and lang arguments to constrain the returned labels.
-
xbrl.taxonomy.Resource.reference_relationships(link_role=None) Returns an iterator of
xbrl.taxonomy.ElementReferenceRelationshipobjects. If called without any arguments, all element-reference <gen:arc> relationships starting from this resource will be returned. Use the link_role argument to constrain the returned relationships.
-
xbrl.formula.ConsistencyAssertion.referenced_parameters()¶ Returns an iterator of
xbrl.formula.Parameterobjects representing the referenced formula parameters by this <ca:consistencyAssertion> resource and any other associated resources.
-
xbrl.taxonomy.Resource.references(reference_role=None, link_role=None) Returns an iterator of
xbrl.taxonomy.Referenceobjects. If called without any arguments, all assigned generic references will be returned. Use reference_role and link_role arguments to constrain the returned references.
-
xbrl.formula.ConsistencyAssertion.resolve_parameter(qname)¶ Returns an
xbrl.formula.Parameterobject which represents the formula paramter with the given XML qualified name within the scope of this assertion, or None if no parameter was found.
-
xbrl.taxonomy.Resource.xpointer(bForceElementScheme=False) Returns an URI with XPointer fragment that points to this XML element as a string. If the XML element information item has an id attribute, a shorthand pointer with the id attribute value will be generated, otherwise the XPointer element scheme will be used. Set force_element_scheme to True to prevent generation of shorthand pointers.
Special methods¶
__bool__, __eq__, __ge__, __gt__, __le__, __lt__, __ne__