Home | Trees | Indices | Help |
|
---|
|
object --+ | ElementRepresentative
|
|||
|
__init__(self,
xsdElement,
parent) See the documentation for the ElementRepresentative system at the top of the ElementRepresentative module. |
||
|
__str__(self) sets the str() function to print the ER information for a tag in the form: ClassName[TagName] |
||
|
processChildren(self) Calls the factory on all of the children of an element. |
||
|
describe(self) A debugging function that prints out the contents of the dictionary. |
||
|
findLayerNum(self) Called by the ER __init__. |
||
|
checkTopLevelType(self) Checks to see if an element is at the top-level. |
||
|
addSuperClassName(self,
name) Adds a base class name to containing type for a particular element. |
||
|
getContainingType(self) Returns the parent's getContainingType() function. |
||
|
getSchema(self) This method returns the parent's getSchema() function. |
||
|
getContainingTypeName(self) Returns the name of the containingType. |
||
|
getName(self) Returns the name field in the ElementTree element. |
||
Inherited from |
|
|||
|
factory(cls,
xsdElement,
parent) A classmethod. |
||
|
typeFromName(cls,
xsdTypeName,
pyXSD) A classmethod. |
||
|
register(cls,
name,
obj) The registry stores all ER objs in a dictionary with their name as a key. |
||
|
getFromName(cls,
name) Retrieve an entry in the registry by its name. |
||
|
classNameFor(cls,
xsdElement,
parent) returns the name of the class that the factory should find. |
|
|||
|
tryConvert(variable) Tries to convert a variable from a string in the xsd to a python value. |
|
|||
Inherited from |
|
|
|
Calls the factory on all of the children of an element. No parameters. |
A classmethod. Initializes the tag-specific class for a particular ElementTree schema element. See the ER system documentation. usage: ElementRepresentative.factory(xsdElement, parent) Parameters:
|
A debugging function that prints out the contents of the dictionary. No parameters |
|
Checks to see if an element is at the top-level. Returns True if it is, False if it is not. The top level elements are all the children of the root Schema tag. No parameters |
A classmethod. Used with the clsFor() function in Parameters:
|
Adds a base class name to containing type for a particular element. Calls come from Restiction and Extension. Parameters:
|
Returns the parent's getContainingType() function. If this function is being called from schema, an error is returned. This method is one of a few getContaingType() functions. When a function is a containing type, the function should return that ER. No parameters. |
This method returns the parent's getSchema() function. getSchema() should return the containing instance when it is a schema tag from the getSchema() function in the schema class. No parameters |
Returns the name of the containingType. No parameters. |
Returns the name field in the ElementTree element. One of many getName() function. No parameters. |
The registry stores all ER objs in a dictionary with their name as a key. This is why all names must be unique. Helps find objs. A classmethod, but could be changed to staticmethod. Parameters:
|
Retrieve an entry in the registry by its name. A classmethod, but could be staticmethod. Parameters:
|
Tries to convert a variable from a string in the xsd to a python value. Returns the entry if it cannot be converted. Parameters:
|
returns the name of the class that the factory should find. A classmethod. usage: ElementRepresentative.classNameFor(xsdElement, parent) Parameters:
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0alpha3 on Thu Sep 07 21:19:38 2006 | http://epydoc.sourceforge.net |