Klasse Container

java.lang.Object
org.jupnp.support.model.DIDLObject
org.jupnp.support.model.container.Container
Bekannte direkte Unterklassen:
Album, GenreContainer, PersonContainer, PlaylistContainer, StorageFolder, StorageSystem, StorageVolume

public class Container extends DIDLObject
A container in DIDL content.

Note that although this container can have sub-containers, the DIDLParser will never read nor write this collection to and from XML. Its only purpose is convenience when creating and manipulating a recursive structure, that is, modelling the content tree as you see fit. You can then pick a list of containers and/or a list of items and hand them to the DIDL parser, which will render them flat in XML. The only nested structure that can optionally be rendered into and read from XML are the items of containers, never their sub-containers.

Also see ContentDirectory 1.0 specification, section 2.8.3: "Incremental navigation i.e. the full hierarchy is never returned in one call since this is likely to flood the resources available to the control point (memory, network bandwidth, etc.)."

Autor:
Christian Bauer - Initial Contribution, Amit Kumar Mondal - Code Refactoring