Represents . @ivar parts: A list of message parts. @type parts: [I{Part},...]
| 416 | |
| 417 | |
| 418 | class Message(NamedObject): |
| 419 | """ |
| 420 | Represents <message/>. |
| 421 | @ivar parts: A list of message parts. |
| 422 | @type parts: [I{Part},...] |
| 423 | """ |
| 424 | |
| 425 | def __init__(self, root, definitions): |
| 426 | """ |
| 427 | @param root: An XML root element. |
| 428 | @type root: L{Element} |
| 429 | @param definitions: A definitions object. |
| 430 | @type definitions: L{Definitions} |
| 431 | """ |
| 432 | NamedObject.__init__(self, root, definitions) |
| 433 | self.parts = [] |
| 434 | for p in root.getChildren('part'): |
| 435 | part = Part(p, definitions) |
| 436 | self.parts.append(part) |
| 437 | |
| 438 | def __gt__(self, other): |
| 439 | return isinstance(other, (Import, Types)) |
| 440 | |
| 441 | |
| 442 | class PortType(NamedObject): |