Refnamediv#

class pyconverter.xml2py.ast_tree.Refnamediv(element, terms=None)#

Provides the refnamediv element, which contains the name, purpose, and classification of a reference.

Methods

Refnamediv.find(_type[, terms])

Find the first type matching a given type string.

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

Find all types matching a given type string.

Refnamediv.get(entry)

Get an item from an element.

Refnamediv.has_children()

Return wether the element has children.

Refnamediv.print_tree()

Print the tree.

Refnamediv.rec_find(_type[, terms])

Find the first type matching a given type string recursively.

Refnamediv.to_rst([prefix, links, base_url, ...])

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

Refnamediv.types_repr()

Return the string types.

Attributes

Refnamediv.added

Has the revision flag added.

Refnamediv.any_isalnum

Returns True if any characters are alphanumeric.

Refnamediv.children

Children of the tree.

Refnamediv.content

Text content.

Refnamediv.id

ID of the element.

Refnamediv.next_elem

Next element.

Refnamediv.prev_elem

Previous element.

Refnamediv.purpose

Refpurpose of the element.

Refnamediv.raw

Raw string of the element.

Refnamediv.refname

Refname of the element.

Refnamediv.tag

Element tag.

Refnamediv.tail

Tail of the element as a string.

Refnamediv.terms

Terms of the element.

Refnamediv.text_content

Text content.

Refnamediv.title

Element title.

Refnamediv.tostring

Attributes of the element as a dictionary.