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

Class ClassAlias

source code


Class alias.

All classes are initially set to a dynamic state.

Instance Methods [hide private]
 
__init__(self, klass, alias, attrs=None, attr_func=None, metadata=[])
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
__call__(self, *args, **kwargs)
Creates an instance of the klass.
source code
 
__str__(self)
str(x)
source code
 
__repr__(self)
repr(x)
source code
 
__eq__(self, other) source code
 
__hash__(self)
hash(x)
source code
 
getAttrs(self, obj, attrs=None, traverse=True) source code

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

Instance Variables [hide private]
list attrs
A list of attributes to encode for this class.
list metadata
A list of metadata tags similar to ActionScript tags.
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, klass, alias, attrs=None, attr_func=None, metadata=[])
(Constructor)

source code 

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

Parameters:
  • klass (class) - The class to alias.
  • alias (str) - The alias to the class e.g. org.example.Person. If the value of this is None, then it is worked out based on the klass. The anonymous tag is also added to the class.
  • attrs ()
  • metadata ()
Raises:
  • TypeError - The klass must be a class type.
  • TypeError - The read_func must be callable.
  • TypeError - The write_func must be callable.
Overrides: object.__init__

__call__(self, *args, **kwargs)
(Call operator)

source code 

Creates an instance of the klass.

Returns:
Instance of self.klass.

__str__(self)
(Informal representation operator)

source code 

str(x)

Overrides: object.__str__
(inherited documentation)

__repr__(self)
(Representation operator)

source code 

repr(x)

Overrides: object.__repr__
(inherited documentation)

__hash__(self)
(Hashing function)

source code 

hash(x)

Overrides: object.__hash__
(inherited documentation)