Home | Trees | Index | Help |
|
---|
Package lxml :: Module objectify :: Class PyType |
|
object
--+
|
PyType
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.
Method Summary | |
---|---|
x.__init__(...) initializes x; see x.__class__.__doc__ for signature | |
T.__new__(S, ...) -> a new object with type S, a subtype of T | |
x.__repr__() <==> repr(x) | |
Register the type. | |
unregister(...)
| |
Inherited from object | |
x.__delattr__('name') <==> del x.name | |
x.__getattribute__('name') <==> x.name | |
x.__hash__() <==> hash(x) | |
helper for pickle | |
helper for pickle | |
x.__setattr__('name', value) <==> x.name = value | |
x.__str__() <==> str(x) |
Class Variable Summary | |
---|---|
member_descriptor |
name = <member 'name' of 'lxml.objectify.PyType' objects...
|
member_descriptor |
type_check = <member 'type_check' of 'lxml.objectify.PyT...
|
getset_descriptor |
xmlSchemaTypes = <attribute 'xmlSchemaTypes' of 'lxml.ob...
|
Method Details |
---|
__init__(...)
x.__init__(...) initializes x; see x.__class__.__doc__ for
signature
|
__new__(T, S, ...)T.__new__(S, ...) -> a new object with type S, a subtype of T
|
__repr__(x)
x.__repr__() <==> repr(x)
|
register(...)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. |
Class Variable Details |
---|
name
|
type_check
|
xmlSchemaTypes
|
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.1 on Sat Aug 18 12:44:27 2007 | http://epydoc.sf.net |