Merge the contained schemas into one. @return: The merged schema. @rtype: L{Schema}
(self)
| 129 | return self.namespaces.get(ns[1]) |
| 130 | |
| 131 | def merge(self): |
| 132 | """ |
| 133 | Merge the contained schemas into one. |
| 134 | @return: The merged schema. |
| 135 | @rtype: L{Schema} |
| 136 | """ |
| 137 | if len(self): |
| 138 | schema = self.children[0] |
| 139 | for s in self.children[1:]: |
| 140 | schema.merge(s) |
| 141 | return schema |
| 142 | else: |
| 143 | return None |
| 144 | |
| 145 | def __len__(self): |
| 146 | return len(self.children) |