Package pyamf :: Class TypedObjectClassAlias
[hide private]
[frames] | no frames]

Class TypedObjectClassAlias

source code


The meta class for TypedObject used to adapt PyAMF.


Since: 0.4

Nested Classes [hide private]
  klass
This class is used when a strongly typed object is decoded but there is no registered class to apply it to.
Instance Methods [hide private]
 
__init__(self, *args, **kwargs)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
createInstance(self, codec=None)
Creates an instance of the klass.
source code
 
checkClass(kls, klass)
This function is used to check if the class being aliased fits certain criteria.
source code

Inherited from alias.ClassAlias: __eq__, __hash__, __repr__, __str__, applyAttributes, compile, getCustomProperties, getDecodableAttributes, getEncodableAttributes, is_compiled

Inherited from object: __delattr__, __format__, __getattribute__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, *args, **kwargs)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

createInstance(self, codec=None)

source code 

Creates an instance of the klass.

Returns:
Instance of self.klass.
Overrides: alias.ClassAlias.createInstance
(inherited documentation)

checkClass(kls, klass)

source code 

This function is used to check if the class being aliased fits certain criteria. The default is to check that __new__ is available or the __init__ constructor does not need additional arguments. If this is the case then TypeError will be raised.

Overrides: alias.ClassAlias.checkClass
(inherited documentation)