Back to index

rabbitmq-server  2.8.4
Public Member Functions | Public Attributes
amqp_codegen.AmqpClass Class Reference
Inheritance diagram for amqp_codegen.AmqpClass:
Inheritance graph
[legend]
Collaboration diagram for amqp_codegen.AmqpClass:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def __init__
def allMethods
def __repr__

Public Attributes

 spec
 index
 methods
 hasContentProperties
 fields
 element
 name

Detailed Description

Definition at line 176 of file amqp_codegen.py.


Constructor & Destructor Documentation

def amqp_codegen.AmqpClass.__init__ (   self,
  spec,
  element 
)

Definition at line 177 of file amqp_codegen.py.

00177 
00178     def __init__(self, spec, element):
00179         AmqpEntity.__init__(self, element)
00180         self.spec = spec
00181         self.index = int(self.element['id'])
00182 
00183         self.methods = []
00184         for method_element in self.element['methods']:
00185             self.methods.append(AmqpMethod(self, method_element))
00186 
00187         self.hasContentProperties = False
00188         for method in self.methods:
00189             if method.hasContent:
00190                 self.hasContentProperties = True
00191                 break
00192 
00193         self.fields = []
00194         if self.element.has_key('properties'):
00195             index = 0
00196             for e in self.element['properties']:
00197                 self.fields.append(AmqpField(self, e, index))
00198                 index = index + 1
            

Member Function Documentation

Definition at line 202 of file amqp_codegen.py.

00202 
00203     def __repr__(self):
00204         return 'AmqpClass("' + self.name + '")'

Definition at line 199 of file amqp_codegen.py.

00199 
00200     def allMethods(self):
00201         return self.methods


Member Data Documentation

Definition at line 173 of file amqp_codegen.py.

Definition at line 192 of file amqp_codegen.py.

Definition at line 186 of file amqp_codegen.py.

Definition at line 180 of file amqp_codegen.py.

Definition at line 182 of file amqp_codegen.py.

Definition at line 174 of file amqp_codegen.py.

Definition at line 179 of file amqp_codegen.py.


The documentation for this class was generated from the following file: