MCPcopy Index your code
hub / github.com/python-openxml/python-docx / CT_Parent

Class CT_Parent

tests/oxml/test_xmlchemy.py:707–721  ·  view source on GitHub ↗

`` `` element, an invented element for use in testing.

Source from the content-addressed store, hash-verified

705
706
707class CT_Parent(BaseOxmlElement):
708 """
709 ``<w:parent>`` element, an invented element for use in testing.
710 """
711
712 eg_zooChoice = ZeroOrOneChoice(
713 (Choice("w:choice"), Choice("w:choice2")),
714 successors=("w:oomChild", "w:oooChild"),
715 )
716 oomChild = OneOrMore("w:oomChild", successors=("w:oooChild", "w:zomChild", "w:zooChild"))
717 oooChild = OneAndOnlyOne("w:oooChild")
718 zomChild = ZeroOrMore("w:zomChild", successors=("w:zooChild",))
719 zooChild = ZeroOrOne("w:zooChild", successors=())
720 optAttr = OptionalAttribute("w:optAttr", ST_IntegerType)
721 reqAttr = RequiredAttribute("reqAttr", ST_IntegerType)
722
723
724class CT_Choice(BaseOxmlElement):

Callers

nothing calls this directly

Calls 8

ZeroOrOneChoiceClass · 0.90
ChoiceClass · 0.90
OneOrMoreClass · 0.90
OneAndOnlyOneClass · 0.90
ZeroOrMoreClass · 0.90
ZeroOrOneClass · 0.90
OptionalAttributeClass · 0.90
RequiredAttributeClass · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…