Process L{Types} objects and create the schema collection
(self)
| 207 | c.resolve(self) |
| 208 | |
| 209 | def build_schema(self): |
| 210 | """ Process L{Types} objects and create the schema collection """ |
| 211 | container = SchemaCollection(self) |
| 212 | for t in [t for t in self.types if t.local()]: |
| 213 | for root in t.contents(): |
| 214 | schema = Schema(root, self.url, self.options, container) |
| 215 | container.add(schema) |
| 216 | if not len(container): # empty |
| 217 | root = Element.buildPath(self.root, 'types/schema') |
| 218 | schema = Schema(root, self.url, self.options, container) |
| 219 | container.add(schema) |
| 220 | self.schema = container.load(self.options) |
| 221 | for s in [t.schema() for t in self.types if t.imported()]: |
| 222 | self.schema.merge(s) |
| 223 | return self.schema |
| 224 | |
| 225 | def add_methods(self, service): |
| 226 | """ Build method view for service """ |