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

# Class BaseContext

source code

I hold the AMF context for en/decoding streams.

Instance Methods | [hide private]
__init__(self, exceptions=True) x.__init__(...) initializes x; see x.__class__.__doc__ for signature | source code
clear(self) Completely clears the context. | source code
getObject(self, ref) Gets an object based on a reference. | source code
getObjectReference(self, obj) Gets a reference for an object. | source code
`int` |
addObject(self, obj) Adds a reference to `obj`. | source code
getClassAlias(self, klass) Gets a class alias based on the supplied `klass`. | source code
__copy__(self) | source code
Inherited from `object`: `__delattr__`, `__getattribute__`, `__hash__`, `__new__`, `__reduce__`, `__reduce_ex__`, `__repr__`, `__setattr__`, `__str__`

Instance Variables | [hide private]
| class_aliases A `dict` of `class` to ClassAlias
`bool` | exceptions If `True` then reference errors will be propagated.
util.IndexedCollection | objects An indexed collection of referencable objects encountered during en/decoding.

Properties | [hide private]
Inherited from `object`: `__class__`

Method Details | [hide private]

### __init__(self, exceptions=True) (Constructor) | source code
x.__init__(...) initializes x; see x.__class__.__doc__ for signature Overrides: object.__init__ (inherited documentation)

### getObject(self, ref) | source code
Gets an object based on a reference. Raises: `ReferenceError` - Unknown object reference, if exceptions is `True`, otherwise `None` will be returned.

### getObjectReference(self, obj) | source code
Gets a reference for an object. Raises: `ReferenceError` - Object not a valid reference,

### addObject(self, obj) | source code
Adds a reference to `obj`. Parameters: `obj` (`mixed`) - The object to add to the context. Returns: `int` Reference to `obj`.