Lines Matching refs:child
56 def __init__(self, parent, child):
58 self.child = child
62 return 'Unable to find the child "%s" in "%s"' % (self.child, self.parent)
66 return 'Add existing child "%s" in "%s".' % (self.child, self.parent)
100 for child in self.children:
101 yield child
102 for descendant in child._getDescendants() :
107 for child in self.children :
109 if child.getName() == childName :
110 return child
112 self.debug('Child "%s" not found' % childName, logging.ERROR)
114 self.debug("Child list :")
116 for child in self.children :
117 self.debug(" - %s" % child)
122 def addChild(self, child):
123 self.debug("new child: " + child.name)
124 self.children.append(child)
125 child._adoptedBy(self)
149 If the element has no coverage dependency (usually child) return 0 or 1.
196 for child in self.children :
197 for dumpedDescription in child._dumpDescription(withCoverage, withNbUse) :
213 for child in self.children :
214 domElement.appendChild(child.exportToXML(document))
237 def childUsed(self, child):
250 for child in self.children :
251 child.parentUsed()
267 child = self.getChildFromName(childName)
269 return child.operationOnChild(path, operation)
324 """Default child populate
335 self.debug("Looking for child %s in path %s" % (
373 childApplicability = (child.usedIfApplicable(criteria)
374 for child in self.children)
390 If at least one child is applicable, return true"""
467 """Add criteria to child if not exist, if exist increase it's nbUse"""
470 matches = [child for child in self.children if child == criteria]
659 def childUsed(self, child):
660 self.currentState = child
661 super().childUsed(child)
702 for child in self.children :
703 exported.addChild(child.export())
706 def addChild(self, child):
707 if child in self.children:
708 raise self.DuplicatedCriterionError(self, child)
709 super().addChild(child)