rpki.xml_utils.base_elt Class Reference

Inherits object.

Inherited by rpki.left_right.list_resources_elt, rpki.left_right.list_roa_requests_elt, rpki.publication.publication_object_elt, rpki.xml_utils.data_elt, and rpki.xml_utils.text_elt.

List of all members.

Public Member Functions

def __str__
def endElement
def make_b64elt
def make_elt
def make_pdu
def read_attrs
def startElement
def toXML

Static Public Attributes

tuple attributes = ()
 XML attributes for this element.
tuple booleans = ()
 Boolean attributes (value "yes" or "no") for this element.
tuple elements = ()
 XML elements contained by this element.

Detailed Description

Virtual base class for XML message elements.  The left-right and
publication protocols use this.  At least for now, the up-down
protocol does not, due to different design assumptions.

Definition at line 126 of file xml_utils.py.


Member Function Documentation

def rpki.xml_utils.base_elt.__str__ (   self  ) 
Convert a base_elt object to string format.

Reimplemented in rpki.publication.report_error_elt.

Definition at line 201 of file xml_utils.py.

def rpki.xml_utils.base_elt.endElement (   self,
  stack,
  name,
  text 
)
Default endElement() handler: just pop the stack.

Reimplemented in rpki.left_right.child_elt, rpki.publication.client_elt, rpki.publication.publication_object_elt, rpki.xml_utils.text_elt, and rpki.xml_utils.data_elt.

Definition at line 153 of file xml_utils.py.

def rpki.xml_utils.base_elt.make_b64elt (   self,
  elt,
  name,
  value = None 
)
Constructor for Base64-encoded subelement.

Definition at line 192 of file xml_utils.py.

def rpki.xml_utils.base_elt.make_elt (   self  ) 
XML element constructor.

Definition at line 178 of file xml_utils.py.

def rpki.xml_utils.base_elt.make_pdu (   cls,
  kargs 
)
Generic PDU constructor.

Definition at line 208 of file xml_utils.py.

def rpki.xml_utils.base_elt.read_attrs (   self,
  attrs 
)
Template-driven attribute reader.

Definition at line 166 of file xml_utils.py.

def rpki.xml_utils.base_elt.startElement (   self,
  stack,
  name,
  attrs 
)
Default startElement() handler: just process attributes.

Reimplemented in rpki.left_right.list_resources_elt, rpki.left_right.list_roa_requests_elt, and rpki.publication.config_elt.

Definition at line 145 of file xml_utils.py.

def rpki.xml_utils.base_elt.toXML (   self  ) 
Default toXML() element generator.

Reimplemented in rpki.left_right.list_resources_elt, rpki.publication.publication_object_elt, rpki.xml_utils.text_elt, and rpki.xml_utils.data_elt.

Definition at line 160 of file xml_utils.py.


Member Data Documentation

Boolean attributes (value "yes" or "no") for this element.

Reimplemented in rpki.left_right.self_elt, rpki.left_right.bsc_elt, rpki.left_right.parent_elt, and rpki.left_right.child_elt.

Definition at line 143 of file xml_utils.py.


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

Generated on Tue Jan 12 07:56:03 2010 for RPKI Engine by  doxygen 1.6.1