def __iterate(self, xmlNode, parNode): # If current node doesn't create a new namespace, it will share its parent's curYinNode = yc.yinNode(xmlNode, parNode.namespace, parNode) if not self.__handle_node(curYinNode, xmlNode): # If the node is not what we intrested in , don't make it on the tree return None for xmlChild in xmlNode: subNode = self.__iterate(xmlChild, curYinNode) if subNode: curYinNode.subNodes.append(subNode) return curYinNode
def __init__(self): self.name = None self.prefix = None self.imports = {} self.includes = {} self.belongs_to = None self.par_module = None self.sub_modules = {} self.groupings = {} self.uses = [] self.choices = [] self.cases = [] self.augments = [] self.typedefs = {} self.typeCoverts = [] self.identities = [] self.beAugmentedBy = {} #issue self.rootYinNode = yc.yinNode(None, 'ORM', None) self.rootYinNode.identifier = 'ORM' self.rootYinNode.token = 'container'