RPKI Engine  1.0
Public Member Functions | Static Public Attributes
rpki::xml_utils::base_elt Class Reference
Inheritance diagram for rpki::xml_utils::base_elt:
Inheritance graph
Collaboration diagram for rpki::xml_utils::base_elt:
Collaboration 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 132 of file xml_utils.py.


Member Function Documentation

def rpki::xml_utils::base_elt::__str__ (   self)
def rpki::xml_utils::base_elt::endElement (   self,
  stack,
  name,
  text 
)
def rpki::xml_utils::base_elt::make_b64elt (   self,
  elt,
  name,
  value 
)
def rpki::xml_utils::base_elt::make_elt (   self)
XML element constructor.

Definition at line 184 of file xml_utils.py.

References rpki::publication::config_elt::attributes, rpki::publication::client_elt::attributes, rpki::left_right::self_elt::attributes, attributes, rpki::publication::publication_object_elt::attributes, rpki::publication::report_error_elt::attributes, rpki::left_right::bsc_elt::attributes, rpki::left_right::repository_elt::attributes, rpki::left_right::parent_elt::attributes, rpki::left_right::child_elt::attributes, rpki::left_right::list_resources_elt::attributes, rpki::left_right::list_roa_requests_elt::attributes, rpki::left_right::list_ghostbuster_requests_elt::attributes, rpki::left_right::list_published_objects_elt::attributes, rpki::left_right::list_received_resources_elt::attributes, rpki::left_right::report_error_elt::attributes, rpki::left_right::self_elt::booleans, booleans, rpki::left_right::bsc_elt::booleans, rpki::left_right::parent_elt::booleans, rpki::left_right::child_elt::booleans, rpki::publication::config_elt::element_name, rpki::publication::client_elt::element_name, rpki::left_right::self_elt::element_name, rpki::publication::certificate_elt::element_name, rpki::publication::crl_elt::element_name, rpki::publication::manifest_elt::element_name, rpki::publication::roa_elt::element_name, rpki::publication::ghostbuster_elt::element_name, rpki::publication::report_error_elt::element_name, rpki::left_right::bsc_elt::element_name, rpki::left_right::repository_elt::element_name, rpki::left_right::parent_elt::element_name, rpki::left_right::child_elt::element_name, rpki::left_right::list_resources_elt::element_name, rpki::left_right::list_roa_requests_elt::element_name, rpki::left_right::list_ghostbuster_requests_elt::element_name, rpki::left_right::list_published_objects_elt::element_name, rpki::left_right::list_received_resources_elt::element_name, rpki::left_right::report_error_elt::element_name, rpki::publication::publication_namespace::nsmap, rpki::left_right::left_right_namespace::nsmap, rpki::publication::publication_namespace::xmlns, and rpki::left_right::left_right_namespace::xmlns.

Referenced by rpki::up_down::certificate_elt::toXML(), toXML(), rpki::publication::publication_object_elt::toXML(), rpki::up_down::class_elt::toXML(), rpki::xml_utils::text_elt::toXML(), rpki::xml_utils::data_elt::toXML(), rpki::up_down::issue_pdu::toXML(), rpki::up_down::revoke_syntax::toXML(), rpki::up_down::error_response_pdu::toXML(), rpki::up_down::message_pdu::toXML(), and rpki::left_right::list_resources_elt::toXML().

Here is the caller graph for this function:

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

Definition at line 212 of file xml_utils.py.

Referenced by rpki::left_right::list_published_objects_elt::make_reply(), and rpki::left_right::list_received_resources_elt::make_reply().

Here is the caller graph for this function:

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

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

Definition at line 151 of file xml_utils.py.

References rpki::publication::config_elt::element_name, rpki::publication::client_elt::element_name, rpki::left_right::self_elt::element_name, rpki::publication::certificate_elt::element_name, rpki::publication::crl_elt::element_name, rpki::publication::manifest_elt::element_name, rpki::publication::roa_elt::element_name, rpki::publication::ghostbuster_elt::element_name, rpki::publication::report_error_elt::element_name, rpki::left_right::bsc_elt::element_name, rpki::left_right::repository_elt::element_name, rpki::left_right::parent_elt::element_name, rpki::left_right::child_elt::element_name, rpki::left_right::list_resources_elt::element_name, rpki::left_right::list_roa_requests_elt::element_name, rpki::left_right::list_ghostbuster_requests_elt::element_name, rpki::left_right::list_published_objects_elt::element_name, rpki::left_right::list_received_resources_elt::element_name, rpki::left_right::report_error_elt::element_name, rpki::publication::config_elt::elements, rpki::publication::client_elt::elements, rpki::left_right::self_elt::elements, elements, rpki::left_right::bsc_elt::elements, rpki::left_right::repository_elt::elements, rpki::left_right::parent_elt::elements, rpki::left_right::child_elt::elements, and read_attrs().

Here is the call graph for this function:

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

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

Definition at line 166 of file xml_utils.py.

References rpki::up_down::base_elt::make_elt(), and make_elt().

Referenced by __str__(), and rpki::xml_utils::msg::__str__().

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

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

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

Definition at line 149 of file xml_utils.py.

Referenced by irbe_cli::cmd_elt_mixin::client_getopt(), make_elt(), and read_attrs().


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Properties