public class MediaListItem extends Object
MediaList
.
An item comprises a name, a media resource locator (MRL) that may be passed to a media player instance to play it, and possibly a sub-item list.
The sub-item list should be an empty list rather than null
if
there are no items.
Constructor and Description |
---|
MediaListItem(String name,
String mrl,
List<MediaListItem> subItems)
Create a media list item.
|
Modifier and Type | Method and Description |
---|---|
String |
mrl()
Get the MRL of this item.
|
String |
name()
Get the name/description of this item.
|
List<MediaListItem> |
subItems()
Get the sub-item list.
|
String |
toString() |
public MediaListItem(String name, String mrl, List<MediaListItem> subItems)
name
- name/descriptionmrl
- MRLsubItems
- list of sub-itemspublic final String name()
public final String mrl()
public final List<MediaListItem> subItems()
Copyright © 2009–2015 Caprica Software Limited. All rights reserved.