Package pyamf :: Module amf3 :: Class ClassDefinition

[hide private]
[frames] | no frames]

# Class ClassDefinition

source code

I contain meta relating to the class definition.

Instance Methods | [hide private]

__init__(self, alias, encoding=2) x.__init__(...) initializes x; see x.__class__.__doc__ for signature | source code

_get_name(self) | source code

_getClass(self) If `alias` is `None`, an anonymous class is returned, otherwise the class is loaded externally. | source code

ClassAlias

getClassAlias(self) Gets the class alias that is held by this definition. | source code

getClass(self) Gets the referenced class that is held by this definition. | source code

getStaticAttrs(self, obj, codec=None) Returns a list of static attributes based on `obj`. | source code

getAttrs(self, obj, codec=None) Returns a `tuple` containing a dict of static and dynamic attributes for `obj`. | source code

createInstance(self, codec=None) Creates a new instance. | source code

applyAttributes(self, obj, attrs, codec=None) Applies a collection of attributes `attrs` to object `obj` | source code

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

Instance Variables | [hide private]

ClassAlias | alias The alias to this class definition.
`int` | encoding The type of encoding to use when serializing the object.

Properties | [hide private]

| name
| klass Gets the referenced class that is held by this definition.
Inherited from `object`: `__class__`

Method Details | [hide private]

### __init__(self, alias, encoding=2)
(Constructor)

source code

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__
  (inherited documentation)

### getClassAlias(self)

source code

Gets the class alias that is held by this definition.

Returns: ClassAlias
  Class alias.

See Also: get_class_alias.

### getStaticAttrs(self, obj, codec=None)

source code

Returns a list of static attributes based on `obj`. Once built, this list is immutable.

Parameters:
  - `obj` (`mixed`.) - The object to determine the static attributes from.

Since: 0.4

Instance Variable Details | [hide private]

### alias

The alias to this class definition. If this value is `None`, or an empty string, the class is considered to be anonymous.

Type:
  ClassAlias

Property Details | [hide private]

### name

Get Method:
  _get_name(self)

### klass

Gets the referenced class that is held by this definition.

Get Method:
  getClass(self) - Gets the referenced class that is held by this definition.