Trees | Indices | Help |
|
---|
|
object --+ | meta.WithMetaMixin --+ | object --+ | | | events.WithEventsMixin --+ | object --+ | | | tales.WithAbsoluteUrlMixin --+ | object --+ | element.PackageElement --+ | content.WithContentMixin --+ | Annotation
FIXME: missing docstring.
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from |
|||
Inherited from element.PackageElement | |||
---|---|---|---|
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from meta.WithMetaMixin | |||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from events.WithEventsMixin | |||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from tales.WithAbsoluteUrlMixin | |||
|
|||
|
|||
Inherited from content.WithContentMixin | |||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|
|||
|
|||
|
|||
Inherited from meta.WithMetaMixin | |||
---|---|---|---|
|
|||
Inherited from content.WithContentMixin | |||
|
|
|||
Inherited from element.PackageElement | |||
---|---|---|---|
|
|
|||
ADVENE_TYPE =
|
|||
_begin = None
|
|||
_end = None
|
|||
_media_id = None
|
|||
_media = None
|
|||
Inherited from element.PackageElement | |||
---|---|---|---|
_id = None
|
|||
_owner = None
|
|||
_weight = 0
|
|
|||
relations | |||
incoming_relations List of incoming relations. |
|||
outgoing_relations List of outgoing relations. |
|||
related List (iterator) of related annotations |
|||
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) |
|||
begin | |||
duration The duration of this annotation. |
|||
end | |||
media Return the media associated to this annotation. |
|||
media_id The id-ref of this annotation's media. |
|||
Inherited from |
|||
Inherited from element.PackageElement | |||
---|---|---|---|
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. |
|||
Inherited from meta.WithMetaMixin | |||
meta | |||
Inherited from content.WithContentMixin | |||
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. |
|
Factory method to create an instance based on backend data.
|
Factory method to create a new instance both in memory and backend.
|
:see-also: `advene.model.core.element.PackageElement._update_caches`
|
str(x)
|
Common implementation for __lt__, __gt__, __le__ and __ge__. Do not rename it to __cmp__ because it would be used for __eq__ as well, which is not what we want. |
Return the media associated to this annotation. If the media is unreachable, the ``default`` value is returned. See also `media` and `media_id`. |
Return the media associated to this annotation. If the media instance is unreachable, an exception is raised. See also `get_media` and `media_id`.
|
|
The id-ref of this annotation's media. This is a read-only property giving the id-ref of the resource held by `media`. Note that this property is accessible even if the corresponding media is unreachable. See also `get_media` and `media`.
|
|
|
|
|
The duration of this annotation. This property is a shortcut for ``self.end - self.begin``. Setting it will update self.end accordingly, leaving self.begin unmodified. return self._end - self._begin. This property will also be modified by setting self.begin or self.end, since each one of these properties leaves the other one unmodified when set.
|
|
Iter over all the relations involving this annotation, from the point of view of `package`. If `position` is provided, only the relation where this annotations is in the given position are yielded. If `inherited` is True (default), all the relations imported by the package are searched, else only proper relations of the package are searched. If ``package`` is not provided, the ``package`` session variable is used. If the latter is unset, a TypeError is raised. |
Count all the relations involving this annotation, from the point of view of `package`. If `position` is providsed, only the relation where this annotations is in the given position are counted. If ``package`` is not provided, the ``package`` session variable is used. If the latter is unset, a TypeError is raised. |
|
|
|
Dictionary of tuples (relation type id, list of related incoming annotations)
|
Dictionary of tuples (relation type id, list of related outgoing annotations)
|
|
|
|
relations
|
incoming_relationsList of incoming relations.
|
outgoing_relationsList of outgoing relations.
|
relatedList (iterator) of related annotations
|
typed_related_inList of tuples (relation type, list of related incoming annotations)
|
typed_related_outList of tuples (relation type, list of related outgoing annotations)
|
begin
|
durationThe duration of this annotation. This property is a shortcut for ``self.end - self.begin``. Setting it will update self.end accordingly, leaving self.begin unmodified. return self._end - self._begin. This property will also be modified by setting self.begin or self.end, since each one of these properties leaves the other one unmodified when set.
|
mediaReturn the media associated to this annotation. If the media instance is unreachable, an exception is raised. See also `get_media` and `media_id`.
|
media_idThe id-ref of this annotation's media. This is a read-only property giving the id-ref of the resource held by `media`. Note that this property is accessible even if the corresponding media is unreachable. See also `get_media` and `media`.
|
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Wed Jul 8 16:00:02 2009 | http://epydoc.sourceforge.net |