xbrl.taxonomy.ArcroleType
¶
An xbrl.taxonomy.ArcroleType
class represents an XBRL arcroleType element in the DTS.
Nested classes: xbrl.taxonomy.ArcroleType.Definition
, xbrl.taxonomy.ArcroleType.UsedOn
-
class
xbrl.taxonomy.
ArcroleType
¶ Proper instances of this class will be created within RaptorXML only, instantiation from script code will throw a
NotImplementedError
exception.
Attributes¶
-
xbrl.taxonomy.ArcroleType.
arcrole_uri
¶ Returns the value of the ‘arcroleURI’ attribute as a string, or None if the XML element information item doesn’t have an ‘arcroleURI’ attribute.
-
xbrl.taxonomy.ArcroleType.
cycles_allowed
¶ Returns the ‘cycles_allowed’ value as an xbrl.taxonomy.CycleAllowed enumeration.
-
xbrl.taxonomy.ArcroleType.
definition
¶ Returns an
xbrl.taxonomy.ArcroleType.Definition
object which represents the definition child element.
-
xbrl.taxonomy.ArcroleType.
definition_text
¶ Returns the definition text as string if the roleType has a definition child element, otherwise None.
-
xbrl.taxonomy.ArcroleType.
document
¶ Returns an
xml.Document
object which represents the XBRL taxonomy document which contains this arcroleType element .
-
xbrl.taxonomy.ArcroleType.
documentation_label
¶ Returns an
xbrl.taxonomy.Label
object 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.ArcroleType.
element
¶ Returns an
xml.ElementInformationItem
object which represents the arcroleType element information item.
-
xbrl.taxonomy.ArcroleType.
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.ArcroleType.
label
¶ Returns an
xbrl.taxonomy.Label
object 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.taxonomy.ArcroleType.
qname
¶ Returns an
xml.QName
object which represents the XML qualified name of the element information item.
-
xbrl.taxonomy.ArcroleType.
terse_label
¶ Returns an
xbrl.taxonomy.Label
object 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.taxonomy.ArcroleType.
used_on
¶ Returns an iterator of
xbrl.taxonomy.ArcroleType.UsedOn
objects which represent the usedOn child elements.
-
xbrl.taxonomy.ArcroleType.
verbose_label
¶ Returns an
xbrl.taxonomy.Label
object 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.
Methods¶
-
xbrl.taxonomy.ArcroleType.
label_relationships
(link_role=None)¶ Returns an iterator of
xbrl.taxonomy.ElementLabelRelationship
objects. If called without any arguments, all element-label <gen:arc> relationships starting from this arcroleType will be returned. Use the link_role argument to constrain the returned relationships.
-
xbrl.taxonomy.ArcroleType.
labels
(label_role=None, link_role=None, lang=None)¶ Returns an iterator of
xbrl.taxonomy.Label
objects. 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.ArcroleType.
reference_relationships
(link_role=None)¶ Returns an iterator of
xbrl.taxonomy.ElementReferenceRelationship
objects. If called without any arguments, all element-reference <gen:arc> relationships starting from this arcroleType will be returned. Use the link_role argument to constrain the returned relationships.
-
xbrl.taxonomy.ArcroleType.
references
(reference_role=None, link_role=None)¶ Returns an iterator of
xbrl.taxonomy.Reference
objects. 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.taxonomy.ArcroleType.
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__