rpki.xml_utils.base_elt Class Reference

Inheritance diagram for rpki.xml_utils.base_elt:

Inheritance graph

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 101 of file xml_utils.py.


Member Function Documentation

def rpki.xml_utils.base_elt.__str__ (   self  ) 

Convert a base_elt object to string format.

Definition at line 163 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, and rpki.xml_utils.data_elt.

Definition at line 125 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 156 of file xml_utils.py.

def rpki.xml_utils.base_elt.make_elt (   self  ) 

XML element constructor.

Definition at line 144 of file xml_utils.py.

def rpki.xml_utils.base_elt.make_pdu (   cls,
  kargs 
)

Generic PDU constructor.

Definition at line 168 of file xml_utils.py.

def rpki.xml_utils.base_elt.read_attrs (   self,
  attrs 
)

Template-driven attribute reader.

Definition at line 134 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.route_origin_elt, rpki.left_right.list_resources_elt, and rpki.publication.config_elt.

Definition at line 119 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, and rpki.xml_utils.data_elt.

Definition at line 130 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, rpki.left_right.child_elt, and rpki.left_right.route_origin_elt.

Definition at line 117 of file xml_utils.py.


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

Generated on Sat Jun 21 07:55:40 2008 for RPKI Engine by  doxygen 1.5.5