Public Member Functions | |
| def | __init__ |
| def | Parse |
| def | ParseDefinitions |
| def | AddTypes |
| def | AddMessages |
| def | AddMessageParts |
| def | AddPortTypes |
| def | AddOperations |
| def | AddServices |
| def | AddPorts |
| def | ParseResponse |
| def | AddUsed |
| def | AddMessageInstance |
Data Fields | |
| error | |
Parses the three different Bio-SPHERE XML representations into their respective classes.
Definition at line 12 of file xlate.py.
| def biosphere::xlate::XMLParser::__init__ | ( | self | ) |
| def biosphere::xlate::XMLParser::Parse | ( | self, | ||
| xmldata | ||||
| ) |
| def biosphere::xlate::XMLParser::ParseDefinitions | ( | self, | ||
| dom | ||||
| ) |
| def biosphere::xlate::XMLParser::AddTypes | ( | self, | ||
| dom, | ||||
| bsdef | ||||
| ) |
| def biosphere::xlate::XMLParser::AddMessages | ( | self, | ||
| dom, | ||||
| bsdef | ||||
| ) |
| def biosphere::xlate::XMLParser::AddMessageParts | ( | self, | ||
| msg, | ||||
| bsmsg, | ||||
| bsdef | ||||
| ) |
Add the parts of the message, whose DOM is in msg, to the bs_message class (bsmsg), searching for the correct type in bsdef. Args: msg -- Part of the DOM tree related to the message. bsmsg -- bs_message class to add the parts to. bsdef -- bs_definition class for cross-referencing.
| def biosphere::xlate::XMLParser::AddPortTypes | ( | self, | ||
| dom, | ||||
| bsdef | ||||
| ) |
| def biosphere::xlate::XMLParser::AddOperations | ( | self, | ||
| pt, | ||||
| bspt, | ||||
| bsdef | ||||
| ) |
Add all the operations in pt (DOM) to the given bs_port_type class, while cross-referencing in the bs_definition class. Args: pt -- Part of the DOM related to the portType. bspt -- bs_port_type class to add operations to. bsdef -- bs_definition class to use for crossreferencing.
| def biosphere::xlate::XMLParser::AddServices | ( | self, | ||
| dom, | ||||
| bsdef | ||||
| ) |
| def biosphere::xlate::XMLParser::AddPorts | ( | self, | ||
| svc, | ||||
| bssvc, | ||||
| bsdef | ||||
| ) |
Add the ports to the service, by using a partially completed/parsed bs_definition class as a reference. Args: svc -- Part of the DOM used for searching the services. bssvc -- bs_service class to add the ports to. bsdef -- bs_definition class to search for port types.
| def biosphere::xlate::XMLParser::ParseResponse | ( | self, | ||
| dom | ||||
| ) |
| def biosphere::xlate::XMLParser::AddUsed | ( | self, | ||
| dom, | ||||
| resp | ||||
| ) |
| def biosphere::xlate::XMLParser::AddMessageInstance | ( | self, | ||
| dom, | ||||
| message, | ||||
| direction | ||||
| ) |
1.5.1