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.
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. |
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.
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.
rpki::xml_utils.base_elt::attributes = () [static] |
XML attributes for this element.
Reimplemented in rpki.left_right.self_elt, rpki.left_right.bsc_elt, rpki.left_right.repository_elt, rpki.left_right.parent_elt, rpki.left_right.child_elt, rpki.left_right.list_resources_elt, rpki.left_right.list_roa_requests_elt, rpki.left_right.list_published_objects_elt, rpki.left_right.report_error_elt, rpki.publication.config_elt, rpki.publication.client_elt, rpki.publication.publication_object_elt, and rpki.publication.report_error_elt.
Definition at line 135 of file xml_utils.py.
rpki::xml_utils.base_elt::booleans = () [static] |
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.
rpki::xml_utils.base_elt::elements = () [static] |
XML elements contained by this element.
Reimplemented in rpki.left_right.self_elt, rpki.left_right.bsc_elt, rpki.left_right.repository_elt, rpki.left_right.parent_elt, rpki.left_right.child_elt, rpki.publication.config_elt, and rpki.publication.client_elt.
Definition at line 139 of file xml_utils.py.