public class Container extends DIDLObject
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.)."
DIDLObject.Class, DIDLObject.Property<V>
Modifier and Type | Field and Description |
---|---|
protected Integer |
childCount |
protected List<Container> |
containers |
protected List<DIDLObject.Class> |
createClasses |
protected List<Item> |
items |
protected boolean |
searchable |
protected List<DIDLObject.Class> |
searchClasses |
clazz, creator, descMetadata, id, parentID, properties, resources, restricted, title, writeStatus
Constructor and Description |
---|
Container() |
Container(Container other) |
Container(String id,
Container parent,
String title,
String creator,
DIDLObject.Class clazz,
Integer childCount) |
Container(String id,
Container parent,
String title,
String creator,
DIDLObject.Class clazz,
Integer childCount,
boolean searchable,
List<DIDLObject.Class> createClasses,
List<DIDLObject.Class> searchClasses,
List<Item> items) |
Container(String id,
String parentID,
String title,
String creator,
boolean restricted,
WriteStatus writeStatus,
DIDLObject.Class clazz,
List<Res> resources,
List<DIDLObject.Property> properties,
List<DescMeta> descMetadata) |
Container(String id,
String parentID,
String title,
String creator,
boolean restricted,
WriteStatus writeStatus,
DIDLObject.Class clazz,
List<Res> resources,
List<DIDLObject.Property> properties,
List<DescMeta> descMetadata,
Integer childCount,
boolean searchable,
List<DIDLObject.Class> createClasses,
List<DIDLObject.Class> searchClasses,
List<Item> items) |
Container(String id,
String parentID,
String title,
String creator,
DIDLObject.Class clazz,
Integer childCount) |
Container(String id,
String parentID,
String title,
String creator,
DIDLObject.Class clazz,
Integer childCount,
boolean searchable,
List<DIDLObject.Class> createClasses,
List<DIDLObject.Class> searchClasses,
List<Item> items) |
Modifier and Type | Method and Description |
---|---|
Container |
addContainer(Container container) |
Container |
addItem(Item item) |
Integer |
getChildCount() |
List<Container> |
getContainers() |
List<DIDLObject.Class> |
getCreateClasses() |
Container |
getFirstContainer() |
List<Item> |
getItems() |
List<DIDLObject.Class> |
getSearchClasses() |
boolean |
isSearchable() |
void |
setChildCount(Integer childCount) |
void |
setContainers(List<Container> containers) |
void |
setCreateClasses(List<DIDLObject.Class> createClasses) |
void |
setItems(List<Item> items) |
void |
setSearchable(boolean searchable) |
void |
setSearchClasses(List<DIDLObject.Class> searchClasses) |
addDescMetadata, addProperties, addProperty, addResource, equals, getClazz, getCreator, getDescMetadata, getFirstProperty, getFirstPropertyValue, getFirstResource, getId, getLastProperty, getParentID, getProperties, getProperties, getPropertiesByNamespace, getPropertyValues, getResources, getTitle, getWriteStatus, hashCode, hasProperty, isRestricted, removeProperties, replaceFirstProperty, replaceProperties, setClazz, setCreator, setDescMetadata, setId, setParentID, setProperties, setResources, setRestricted, setTitle, setWriteStatus
protected Integer childCount
protected boolean searchable
protected List<DIDLObject.Class> createClasses
protected List<DIDLObject.Class> searchClasses
public Container()
public Container(Container other)
public Container(String id, String parentID, String title, String creator, boolean restricted, WriteStatus writeStatus, DIDLObject.Class clazz, List<Res> resources, List<DIDLObject.Property> properties, List<DescMeta> descMetadata)
public Container(String id, String parentID, String title, String creator, boolean restricted, WriteStatus writeStatus, DIDLObject.Class clazz, List<Res> resources, List<DIDLObject.Property> properties, List<DescMeta> descMetadata, Integer childCount, boolean searchable, List<DIDLObject.Class> createClasses, List<DIDLObject.Class> searchClasses, List<Item> items)
public Container(String id, Container parent, String title, String creator, DIDLObject.Class clazz, Integer childCount)
public Container(String id, String parentID, String title, String creator, DIDLObject.Class clazz, Integer childCount)
public Container(String id, Container parent, String title, String creator, DIDLObject.Class clazz, Integer childCount, boolean searchable, List<DIDLObject.Class> createClasses, List<DIDLObject.Class> searchClasses, List<Item> items)
public Container(String id, String parentID, String title, String creator, DIDLObject.Class clazz, Integer childCount, boolean searchable, List<DIDLObject.Class> createClasses, List<DIDLObject.Class> searchClasses, List<Item> items)
public Integer getChildCount()
public void setChildCount(Integer childCount)
public boolean isSearchable()
public void setSearchable(boolean searchable)
public List<DIDLObject.Class> getCreateClasses()
public void setCreateClasses(List<DIDLObject.Class> createClasses)
public List<DIDLObject.Class> getSearchClasses()
public void setSearchClasses(List<DIDLObject.Class> searchClasses)
public Container getFirstContainer()
Copyright © 2016 4th Line GmbH, Switzerland. All rights reserved.