Load the schema objects for the root nodes. - de-references schemas - merge schemas @param options: An options dictionary. @type options: L{options.Options} @return: The merged schema. @rtype: L{Schema}
(self, options)
| 74 | existing.root.nsprefixes.update(schema.root.nsprefixes) |
| 75 | |
| 76 | def load(self, options): |
| 77 | """ |
| 78 | Load the schema objects for the root nodes. |
| 79 | - de-references schemas |
| 80 | - merge schemas |
| 81 | @param options: An options dictionary. |
| 82 | @type options: L{options.Options} |
| 83 | @return: The merged schema. |
| 84 | @rtype: L{Schema} |
| 85 | """ |
| 86 | if options.autoblend: |
| 87 | self.autoblend() |
| 88 | for child in self.children: |
| 89 | child.build() |
| 90 | for child in self.children: |
| 91 | child.open_imports(options) |
| 92 | for child in self.children: |
| 93 | child.dereference() |
| 94 | log.debug('loaded:\n%s', self) |
| 95 | merged = self.merge() |
| 96 | log.debug('MERGED:\n%s', merged) |
| 97 | return merged |
| 98 | |
| 99 | def autoblend(self): |
| 100 | """ |
no test coverage detected