Container¶
The META-INF/container.xml file, storing:
- the Rendition objects
- the Rendition Mapping Document
-
class
yael.container.
Container
(internal_path=None, obj=None, string=None)[source]¶ Build the META-INF/container.xml file or parse it from string or obj.
-
_parse_link
(obj)[source]¶ Parse the given <link> node object, and append the parsed RMDocument to this Container.
-
_parse_rootfile
(obj)[source]¶ Parse the given <rootfile> node object, and append the parsed Rendition to this Container.
-
add_rendition
(rendition)[source]¶ Add a Rendition to this Container.
Parameters: rendition ( yael.rendition.Rendition
) – Rendition to be added
-
default_rendition
¶ The Default Rendition object in this Container, or None if there are no Renditions.
Return type: yael.rendition.Rendition
-
renditions
¶ The list of Rendition objects in this Container.
Return type: list of yael.rendition.Rendition
-
rm_document
¶ The Rendition Mapping Document object in this Container, or None if it is not present.
Return type: yael.rmdocument.RMDocument
-