Home | Trees | Indices | Help |
---|
|
object --+ | monitored.Monitored --+ | Header
Header entry in PO catalogs.
The PO header is syntactically just another entry in the catalog, but with different semantics. Therefore, instead operating on it using Message, this class provides a different set of interface attributes and methods.
Like Message, this class implements monitoring; the
starred-types (e.g. list*
) are according to the same
convention as for messages, and also the strings are assumed unicode
unless otherwise noted.
There is no lightweight alternative to the monitored header, like that of MessageUnsafe for messages, because no performance demand is expected for the headers only.
See Also: Message
Instance Methods | |||
|
|||
|
|||
|
|||
bool |
|
||
bool |
|
||
the type that initialized the object |
|
||
|
|||
|
|||
list of pairs* |
|
||
string or default
|
|
||
bool |
|
||
int |
|
||
int |
|
||
Inherited from |
Method Details |
Initializes the header by the given message or header.
|
Attribute getter. Processes read-only attributes, and sends others to the base class.
|
Get attribute value. Allows accessing the header like a dictionary.
|
Reports wheter headers are equal in all apparent parts. "Apparent" parts include all those which are visible in the PO file. I.e. the check will ignore internal states, like line caches, etc.
|
Reports wheter headers are not equal in some apparent parts. Equivalent to
|
Convert the header into ordinary message object. The message object returned may be the modification of the one passed to the constructor. In that case, and if the message object has monitoring features, the force parameter will tell whether to modify all message elements, or to try to keep the changes minimal.
|
The line-representation of the header. Equivalent to the same-named method of message classes. See Also: Message_base |
The string-representation of the header. Equivalent to the same-named method of message classes. See Also: Message_base |
Find header fields with the given name. Header fields need not be unique.
|
Get the value of the given header field. If there are several fields with the same name, it is undefined which
of them will supply the value; this method should be used only for fields
which are expected to be unique. If there are no fields named as
requested,
|
Replace the value of the n-th occurence of the named header field. Header fields need not be unique, hence the n-th qualification.
|
Set a header field to a value. If the field already exists, its value is replaced with the given one.
If there are several same-named fields, it is undefined which one and how
many of them are going to have their values replaced; this method should
be used only for fields expected to be unique. If there is no such field
yet, it is inserted into the header; after the field
|
Remove header fields with the given name, if it exists.
|
Home | Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 | http://epydoc.sourceforge.net |