Package pyamf :: Class TypedObjectClassAlias

[hide private]
[frames] | no frames]

# Class TypedObjectClassAlias

source code

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, klass, alias, *args, **kwargs) x.__init__(...) initializes x; see x.__class__.__doc__ 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 `ClassAlias`: `__eq__`, `__hash__`, `__repr__`, `__str__`, `applyAttributes`, `compile`, `getCustomProperties`, `getDecodableAttributes`, `getEncodableAttributes`, `getProxiedAttribute`, `is_compiled`

Inherited from `ClassAlias` (private): `_checkExternal`, `_compile_base_class`, `_finalise_compile`

Inherited from `object`: `__delattr__`, `__getattribute__`, `__new__`, `__reduce__`, `__reduce_ex__`, `__setattr__`

Properties | [hide private]

Inherited from `object`: `__class__`

Method Details | [hide private]

### __init__(self, klass, alias, *args, **kwargs)
(Constructor)

source code

x.__init__(...) initializes x; see x.__class__.__doc__ 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: 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 the `__init__` constructor does not pass in arguments.

Raises:
  - `TypeError` - `__init__` doesn't support additional arguments
Overrides: ClassAlias.checkClass
  (inherited documentation)