RefMeta#

class pyconverter.xml2py.ast_tree.RefMeta(element, parse_children=True)#

Provides the reference metadata element.

Methods

RefMeta.find(_type[, terms])

Find the first type matching a given type string.

RefMeta.find_all(_type[, recursive, terms])

Find all types matching a given type string.

RefMeta.get(entry)

Get an item from an element.

RefMeta.has_children()

Return wether the element has children.

RefMeta.print_tree()

Print the tree.

RefMeta.rec_find(_type[, terms])

Find the first type matching a given type string recursively.

RefMeta.to_rst([prefix, links, base_url, fcache])

Return a string to enable converting the element to an RST format.

RefMeta.types_repr()

Return the string types.

Attributes

RefMeta.added

Has the revision flag added.

RefMeta.any_isalnum

Returns True if any characters are alphanumeric.

RefMeta.children

Children of the tree.

RefMeta.content

Text content.

RefMeta.id

ID of the element.

RefMeta.next_elem

Next element.

RefMeta.prev_elem

Previous element.

RefMeta.raw

Raw string of the element.

RefMeta.refentry_title

Title of the referency entry.

RefMeta.tag

Element tag.

RefMeta.tail

Tail of the element as a string.

RefMeta.text_content

Text content.

RefMeta.title

Element title.

RefMeta.tostring

Attributes of the element as a dictionary.