| Trees | Index | Help |
|---|
| Package flumotion :: Package common :: Module fxml :: Class Parser |
|
Loggable --+
|
Parser
BaseConfigParserXML parser base class.
I add some helper functions for specialized XML parsers, mostly the parseFromTable method.
I am here so that the config parser and the registry parser can share code.| Method Summary | |
|---|---|
Checks that a given XML node has all of the required attributes, and no unknown attributes. | |
Return the root of the XML tree for the the string or filename passed as an argument. | |
| tuple of string or None, as long as the combined length of the required and optional attributes. |
Checks the validity of the attributes on an XML node, via Parser.checkAttributes, then parses them out and returns them all as a tuple. |
A data-driven verifying XML parser. | |
| Inherited from Loggable | |
Log a debug message. | |
| dict |
Log a message at the given level, with the possibility of going higher up in the stack. |
Log an error. | |
Log an informational message. | |
Log a log message. | |
Overridable log function. | |
Overridable object name function. | |
Log a warning. | |
Log a warning about a Failure. | |
| Class Variable Summary | |
|---|---|
| Inherited from Loggable | |
Implements |
__implemented__ = <implementedBy flumotion.common.log.Lo...
|
ClassProvides |
__providedBy__ = <zope.interface.declarations.ClassProvi...
|
ClassProvides |
__provides__ = <zope.interface.declarations.ClassProvide...
|
str |
logCategory: Implementors can provide a category to log their messages under. |
| Method Details |
|---|
checkAttributes(self, node, required=None, optional=None)Checks that a given XML node has all of the required attributes, and no unknown attributes. Raises fxml.ParserError if unknown or missing attributes are detected.
|
getRoot(self, file)Return the root of the XML tree for the the string or filename passed as an argument. Raises fxml.ParserError if the XML could not be parsed.
|
parseAttributes(self, node, required=None, optional=None)Checks the validity of the attributes on an XML node, via Parser.checkAttributes, then parses them out and returns them all as a tuple.
|
parseFromTable(self, parent, parsers)A data-driven verifying XML parser. Raises fxml.ParserError if an unexpected child node is encountered.
|
| Trees | Index | Help |
|---|
| Generated by Epydoc 2.1 on Sun Oct 26 16:39:16 2008 | http://epydoc.sf.net |