Package pyamf :: Class TypedObjectClassAlias

[hide private]
[frames] | no frames]

# Class TypedObjectClassAlias

source code

Since: 0.4

Instance Methods | [hide private]

createInstance(self, codec=None) Creates an instance of the klass. | source code

checkClass(kls, klass) This function is used to check the class being aliased to fits certain criteria. | source code

Inherited from `ClassAlias`: `__eq__`, `__hash__`, `__init__`, `__repr__`, `__str__`, `applyAttributes`, `getAttributes`, `getAttrs` Inherited from `ClassAlias` (private): `_getAttrs` Inherited from `object`: `__delattr__`, `__getattribute__`, `__new__`, `__reduce__`, `__reduce_ex__`, `__setattr__`

Instance Variables | [hide private]

Inherited from `ClassAlias`: `attrs`, `metadata`

Properties | [hide private]

Inherited from `object`: `__class__`

Method Details | [hide private]

### 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 the class being aliased to 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)