| Home | Trees | Indices | Help | 
 | 
|---|
|  | 
object --+
         |
        PyType
PyType(self, name, type_check, type_class, stringify=None) User defined type.
Named type that contains a type check function and a type class that inherits from ObjectifiedDataElement. The type check must take a string as argument and raise ValueError or TypeError if it cannot handle the string value. It may be None in which case it is not considered for type guessing.
Example:
PyType('int', int, MyIntClass).register()
Note that the order in which types are registered matters. The first matching type will be used.
| 
 | |||
| 
 | |||
| a new object with type S, a subtype of T | 
 | ||
| 
 | |||
| 
 | |||
| 
 | |||
| Inherited from  | |||
| 
 | |||
| name | |||
| stringify | |||
| type_check | |||
| xmlSchemaTypes The list of XML Schema datatypes this Python type maps to. | |||
| Inherited from  | |||
| 
 | |||
| 
 
 | 
| 
 
 | 
| 
 
 | 
| 
 Register the type. The additional keyword arguments 'before' and 'after' accept a sequence of type names that must appear before/after the new type in the type list. If any of them is not currently known, it is simply ignored. Raises ValueError if the dependencies cannot be fulfilled. | 
| 
 | |||
| xmlSchemaTypesThe list of XML Schema datatypes this Python type maps to. Note that this must be set before registering the type! | 
| Home | Trees | Indices | Help | 
 | 
|---|
| Generated by Epydoc 3.0.1 on Thu Mar 17 15:04:24 2016 | http://epydoc.sourceforge.net |