FIXME: missing docstring.
|
|
|
|
Inherited from object :
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__repr__
|
|
|
|
|
|
|
|
|
|
|
|
|
|
_cmp(self,
other)
Common implementation for __lt__, __gt__, __le__ and __ge__. |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
_update_caches(self,
old_idref,
new_idref,
element,
relation)
:see-also: `advene.model.core.element.PackageElement._update_caches` |
source code
|
|
|
count_relations(self,
package=None,
position=None)
Count all the relations involving this annotation, from the point of
view of `package`. |
source code
|
|
|
|
|
iter_relations(self,
package=None,
position=None,
inherited=True)
Iter over all the relations involving this annotation, from the point
of view of `package`. |
source code
|
|
|
_iter_my_tag_ids_nowarn(self,
package=None,
inherited=True)
Allows to call iter_my_tag_ids internally without raising a warning. |
source code
|
|
|
_iter_my_tags_nowarn(self,
package=None,
inherited=True)
Allows to call iter_my_tags internally without raising a warning. |
source code
|
|
|
_set_camsys_type(self,
value,
val_is_idref=False) |
source code
|
|
|
_tales_my_tags(self,
context_package)
Iter over all the user-tags of this element in the context of the
reference package. |
source code
|
|
|
iter_my_tag_ids(self,
package=None,
inherited=True)
This method is inherited from core.Package but is unsafe on
cam.Package. |
source code
|
|
|
iter_my_tags(self,
package=None,
inherited=True)
This method is inherited from core.Package but is unsafe on
cam.Package. |
source code
|
|
|
iter_my_user_tag_ids(self,
package=None,
inherited=True)
FIXME: missing docstring |
source code
|
|
|
iter_my_user_tags(self,
package=None,
inherited=True) |
source code
|
|
|
|
|
|
|
|
|
|
|
_decrease_weight(self)
:see: _increase_weight |
source code
|
|
|
_get_id(self)
The identifier of this element in the context of its owner package. |
source code
|
|
|
|
|
|
|
|
|
|
|
_make_event_delegate(self)
Required by WithEventsMixin |
source code
|
|
|
_self_connect(self,
detailed_signal,
handler,
*args)
This alternative to `connect` can only be used by the element itself. |
source code
|
|
|
_set_id(self,
new_id)
Rename this element to `new_id`, if it is not already in use in the
package, else raises an AssertionError. |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
emit(self,
detailed_signal,
*args)
Override WithEventsMixin.emit in order to automatically emit the
package signal corresponding to each element signal. |
source code
|
|
|
has_tag(self,
tag,
package=None,
inherited=True)
Is this element associated to ``tag`` by ``package``. |
source code
|
|
|
|
|
|
|
make_id_in(self,
pkg)
Compute an id-ref for this element in the context of the given
package. |
source code
|
|
|
|
|
|
|
|
|
get_meta(self,
key,
default=_RAISE)
Return the metadata (string or element) associated to the given key. |
source code
|
|
|
get_meta_id(self,
key,
default=_RAISE,
_return_id=True)
Return the metadata id (string or element) associated to the given
key. |
source code
|
|
|
|
|
|
|
block_handler(self,
handler_id)
Prevent the handler identified by handler_id to be invoked until it
is unblocked. |
source code
|
|
|
emit_lazy(self,
lazy_params)
Like emit, but lazy_params is assumed to be a function returning an
iterable of the params to send to emit. |
source code
|
|
|
|
|
|
|
handler_block(self,
handler_id)
Prevent the handler identified by handler_id to be invoked until it
is unblocked. |
source code
|
|
|
|
|
|
|
has_handler(self,
handler_id)
Return True iff the given handler_id represents a connected handler. |
source code
|
|
|
|
|
|
|
|
|
|
|
_check_content(self,
mimetype=None,
model_id=None,
url=None)
Check that the provided values (assumed to be the future values of
the corresponding attributes) are valid and consistent (with each
other *and* with unmodified attributes). |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
_instantiate_content(self,
mimetype,
model,
url)
This is method is for optimization only: it is not strictly required
(though recommended) to call it at instantiate time (see class
docstring). |
source code
|
|
|
_load_content_info(self)
Load the content info (mimetype, model, url). |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
_update_content_handler(self)
See :class:`WithContentMixin` documentation. |
source code
|
|
|
|
|
|
|
type
The type of this annotation, created with
Package.create_annotation_type().
|
Inherited from object :
__class__
|
|
begin
|
|
duration
The duration of this annotation.
|
|
end
|
|
incoming_relations
List of incoming relations.
|
|
media
Return the media associated to this annotation.
|
|
media_id
The id-ref of this annotation's media.
|
|
outgoing_relations
List of outgoing relations.
|
|
related
List (iterator) of related annotations
|
|
relations
|
|
typed_related_in
List of tuples (relation type, list of related incoming annotations)
|
|
typed_related_out
List of tuples (relation type, list of related outgoing annotations)
|
|
contributor
shortcut for metadata with key
<http://purl.org/dc/elements/1.1/contributor>
|
|
created
shortcut for metadata with key
<http://purl.org/dc/elements/1.1/created>
|
|
creator
shortcut for metadata with key
<http://purl.org/dc/elements/1.1/creator>
|
|
description
shortcut for metadata with key
<http://purl.org/dc/elements/1.1/description>
|
|
modified
shortcut for metadata with key
<http://purl.org/dc/elements/1.1/modified>
|
|
seeAlso
shortcut for metadata with key
<http://www.w3.org/2000/01/rdf-schema#seeAlso>
|
|
title
shortcut for metadata with key
<http://purl.org/dc/elements/1.1/title>
|
|
id
The identifier of this element in the context of its owner package.
|
|
owner
The package containing (or owner package) this element.
|
|
uriref
The URI-ref identifying this element.
|
|
meta
|
|
content
Return a `Content` instance representing the content.
|
|
content_as_file
This property returns a *copy* of this element's content data wrapped
in a file-like object.
|
|
content_data
This property holds the data of the content.
|
|
content_is_textual
This property indicates if this element's content data can be handled
as text.
|
|
content_mimetype
The mimetype of this element's content.
|
|
content_model
The resource used as the model of the content of this element.
|
|
content_model_id
The id-ref of the content model, or an empty string.
|
|
content_parsed
|
|
content_url
This property holds the URL of the content, or an empty string.
|