Declared in module xml.arch.xmlarch
class Architecture: def __init__(self, attrs=None) # Initialize a new instance. def get_auto(self) # Get the architecture automatic form mapping type. def get_bridge_form(self) # Get the architecture bridge form name. def get_broadcaster(self) # Get the current event broadcaster. def get_data_form(self) # Get the architecture data form name. def get_doc_elem_form(self) # Get the architecture document element form name. def get_dtd_public_id(self) # Get the public identifier of the architectural meta-DTD. def get_dtd_system_id(self) # Get the system identifier of the architectural meta-DTD. def get_form_att(self) # Get the architectural form attribute name. def get_ignore_data_att(self) # Get the architecture ignore data attribute name. def get_name(self) # Get the architecture name. def get_parse_state(self, parse_state) # Get the architecture parse_state. def get_public_id(self) # Get the public identifier of the architecture specification document. def get_renamer_att(self) # Get the architectural attribute renamer attribute name. def get_suppressor_att(self) # Get the architecture suppressor attribute name. def is_declared(self) # Has the architecture been declared? def load(self, attrs) # Load information about the architecture based on preparsed attribute list. def reset(self) # Reset the architecure. def set_auto(self, auto) # Set the architecture automatic form mapping type. def set_bridge_form(self, bridge_form) # Set the architecture bridge form name. def set_broadcaster(self, broadcaster) # Set the event broadcaster to use. def set_data_form(self, data_form) # Set the architecture data form name. def set_doc_elem_form(self, doc_elem_form) # Set the architecture document element form name. def set_dtd_public_id(self, dtd_public_id) # Set the public identifier of the architectural meta-DTD. def set_dtd_system_id(self, dtd_system_id) # Set the system identifier of the architectural meta-DTD. def set_form_att(self, form_att) # Set the architectural form attribute name. def set_ignore_data_att(self, ignore_data_att) # Set the architecture ignore data attribute name. def set_name(self, name) # Set the architecture name. def set_parse_state(self, parse_state) # Set the architecture parse_state. def set_public_id(self, public_id) # Set the public identifier of the architecture specification document. def set_renamer_att(self, renamer_att) # Set the architectural attribute renamer attribute name. def set_suppressor_att(self, suppressor_att) # Set the architecture suppressor attribute name.
Get the current event broadcaster.
The default broadcaster is xml.sax.saxutils.EventBroadcaster([]).
Load information about the architecture based on preparsed attribute list.
The prepared attribute list usually comes from the architecture use declaration. You may also supply your own when needed. This is more or less the same as using the setter/getter methods.
Reset the architecure.
This method clears all architectual information stored within the Architecture object.
get_name(), get_public_id(), get_dtd_public_id(), get_dtd_system_id(), get_form_att(), get_renamer_att(), get_suppressor_att, get_ignore_data_att(), get_doc_elem_form(), get_bridge_form(), get_data_form(), get_auto is set to None. is_declared() returns 0.
Set the event broadcaster to use.
The default broadcaster is xml.sax.saxutils.EventBroadcaster([]). See the python SAX modules for more information about EventBroadcaster.