+
Point of view
XML_PARSER
deferred class XML_REPOSITORY_IMPL [O_ -> STORABLE]
Summary
Overview
exported features
Error handling on repository update
Getting and setting objects in the repository:
  • has (object_name: STRING): BOOLEAN
    Is object_name the name of some stored object.
  • at (object_name: STRING): O_
    Return the object currently associated to object_name.
  • add (object: O_, object_name: STRING)
    Update or add a new object in the Current repository.
  • put (object: O_, object_name: STRING)
    Update or add a new object in the Current repository.
  • remove (object_name: STRING)
    Remove entry object_name from the Current repository.
Counting:
Iterating facilities:
Really storing data:
  • update
    Update the repository objects.
  • commit
    Commit all the repository objects to the physical store.
  • is_connected: BOOLEAN
    True if the repository is connected to a physical store.
  • is_updateable: BOOLEAN
    True if the repository can be updated from data in the physical store.
  • is_commitable: BOOLEAN
    True if the repository can be committed to the underlying physical store.
with_attribute (attribute_name: STRING, attribute_value: STRING, line: INTEGER_32, column: INTEGER_32)
effective procedure
Called by the parser to add an attribute of a node BEFORE calling open_node
open_node (node_name: STRING, line: INTEGER_32, column: INTEGER_32)
effective procedure
When the parser reads an opening node
close_node (node_name: STRING, line: INTEGER_32, column: INTEGER_32)
effective procedure
When the parser reads a closing node
open_close_node (node_name: STRING, line: INTEGER_32, column: INTEGER_32)
effective procedure
When the parser reads a node that opens and closes immediately (syntax "<node/>")
current_node: STRING
effective function
The current node
xml_header (line: INTEGER_32, column: INTEGER_32)
effective procedure
Called by the parser if a "<?xml ... ?>"
processing_instruction (a_target: STRING, a_data: STRING)
effective procedure
Called by the parser if a "<?...?>"
entity (a_entity: STRING, line: INTEGER_32, column: INTEGER_32): STRING
effective function
Called by the parser when an &entity; is found.
data (a_data: STRING, line: INTEGER_32, column: INTEGER_32)
effective procedure
Called by the parser when the node contains raw data
parse_error (line: INTEGER_32, column: INTEGER_32, message: STRING)
effective procedure
Called by the parser if there is an error
at_error: BOOLEAN
writable attribute
True if there was at least an error
set_validator (a_validator: XML_VALIDATOR)
effective procedure
Sets a validator for this XML file.
validator: XML_VALIDATOR
writable attribute
The XML validator for this file (DTD, XML Schema...)
register_update_error_handler (a_error_handler: PROCEDURE[TUPLE 3[INTEGER_32, INTEGER_32, STRING]])
effective procedure
has (object_name: STRING): BOOLEAN
frozen
effective function
Is object_name the name of some stored object.
at (object_name: STRING): O_
frozen
effective function
Return the object currently associated to object_name.
add (object: O_, object_name: STRING)
frozen
effective procedure
Update or add a new object in the Current repository.
put (object: O_, object_name: STRING)
frozen
effective procedure
Update or add a new object in the Current repository.
remove (object_name: STRING)
effective procedure
Remove entry object_name from the Current repository.
count: INTEGER_32
effective function
Actual count of stored elements.
is_empty: BOOLEAN
effective function
Is it empty ?
lower: INTEGER_32
constant attribute
upper: INTEGER_32
effective function
valid_index (index: INTEGER_32): BOOLEAN
effective function
item (index: INTEGER_32): O_
effective function
key (index: INTEGER_32): STRING
effective function
get_new_iterator_on_items: ITERATOR[O_]
effective function
get_new_iterator_on_keys: ITERATOR[STRING]
effective function
key_map_in (buffer: COLLECTION[STRING])
effective procedure
Append in buffer, all available keys (this may be useful to speed up the traversal).
item_map_in (buffer: COLLECTION[O_])
effective procedure
Append in buffer, all available items (this may be useful to speed up the traversal).
update
deferred procedure
Update the repository objects.
commit
deferred procedure
Commit all the repository objects to the physical store.
is_connected: BOOLEAN
deferred function
True if the repository is connected to a physical store.
is_updateable: BOOLEAN
deferred function
True if the repository can be updated from data in the physical store.
is_commitable: BOOLEAN
deferred function
True if the repository can be committed to the underlying physical store.